-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild2.gradle
72 lines (54 loc) · 1.3 KB
/
build2.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
64
65
66
67
68
69
70
71
apply plugin: 'java'
apply plugin: 'eclipse'
// set the source java folder to another non maven standard path
// default src/main/java
sourceSets.main.java.srcDirs = ['src/java']
// default src test
//src/test/java
// default src resources.
// src/main/resources
// default src test resources.
// src/test/resources
// default build
// build
// default jar built
// build/libs
// dependencies of external jar, we reference the very good from maven.
repositories {
mavenCentral()
}
// actual libs dependencies
dependencies {
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
test {
testLogging {
// Show that tests are run in the command-line output
events 'started', 'passed'
}
}
sourceCompatibility = 1.8
version = '1.0'
jar {
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart',
'Implementation-Version': version
}
}
// import ant build file.
//ant.importBuild 'build.xml'
// common for subprojects
subprojects {
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.12'
}
version = '1.0'
jar {
manifest.attributes provider: 'gradle'
}
}