-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (53 loc) · 1.53 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
ext.TASK_RELPATH=project.properties['TASK_RELPATH'] ?: 'src/hr_test'
ext.TASK_BINARY=project.properties['TASK_BINARY'] ?: 'hr_test'
ext.TASK_MAIN=project.properties['TASK_MAIN'] ?: 'Main'
apply plugin: 'java'
sourceCompatibility = 1.8
version = '1.1'
archivesBaseName=TASK_BINARY
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'lib', include: '*.jar')
compile group: 'it.unimi.dsi', name: 'fastutil', version: '7.0.12'
compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.12'
compile group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.12'
compile group: 'com.google.guava', name: 'guava', version: '18.0'
compile group: 'joda-time', name: 'joda-time', version: '2.7'
compile group: 'org.apache.commons', name: "commons-lang3", version: "3.0"
testCompile group: 'org.testng', name: 'testng', version: '6.8.21'
}
sourceSets {
main{
java {
srcDirs = [TASK_RELPATH]
include '**'
exclude '**/*Test.java'
}
resources {
srcDirs = [TASK_RELPATH]
include '**'
}
}
test {
java {
srcDirs = [TASK_RELPATH]
include '**/*Test.java'
}
}
}
test{
useTestNG()
}
apply plugin: 'application'
mainClassName = TASK_MAIN
jar {
manifest {
attributes "Main-Class": "$mainClassName"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}