-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (41 loc) · 942 Bytes
/
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
apply plugin: 'java'
repositories {
mavenCentral()
}
sourceSets {
java7 {
java.srcDir file('src/java7/java')
resources.srcDir file('src/java7/resources')
compileClasspath += main.output
}
release {
java.srcDir file('src/release/java')
resources.srcDir file('src/release/resources')
compileClasspath += main.output
}
}
task java7Jar(type: Jar) {
from sourceSets.main.output
from sourceSets.java7.output
}
task releaseJar(type: Jar) {
from sourceSets.main.output
from sourceSets.release.output
}
task java7Javadoc(type: Javadoc) {
source sourceSets.java7.allJava
}
task releaseJavadoc(type: Javadoc) {
source sourceSets.release.allJava
}
configurations {
java7Compile {
extendsFrom compile
}
releaseCompile {
extendsFrom compile
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}