-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
63 lines (50 loc) · 1.19 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
62
63
apply plugin: 'java'
apply plugin: 'application'
version = '0.2'
mainClassName = 'com.coprtools.main.CopyrightToolsMain'
sourceCompatibility = 1.8
targetCompatibility = 1.8
jar {
from {
(configurations.runtime).collect {
it.isDirectory() ? it : zipTree(it)
}
}
manifest {
attributes 'Implementation-Title': 'Copyright Tools',
'Implementation-Version': version,
'Main-Class': mainClassName
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile 'commons-cli:commons-cli:1.4'
compile 'commons-io:commons-io:2.5'
testCompile 'junit:junit:4.12'
}
libsDirName = 'lib'
task testJar(type: Jar)
run {
//if ( project.hasProperty("appArgs") ) {
// args Eval.me(appArgs)
//}
standardInput = System.in
}
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
//tasks.withType(Test) {
// scanForTestClasses = false
// include "**/*Test.class"
//}