forked from nsoft/uno-jar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
39 lines (33 loc) · 804 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
plugins {
id 'java'
}
version = '2.0.0-SNAPSHOT'
allprojects {
repositories {
mavenCentral()
}
compileJava {
sourceCompatibility = 8
targetCompatibility = 8
}
}
dependencies {
testImplementation 'junit:junit:4.13.1'
}
def GHOME = project.gradle.gradleUserHomeDir.toString()
def JHOME = System.getProperty("java.home")
println "Found Java Home for sub builds:" + JHOME
tasks.register("testSuite", Exec.class) {
dependsOn(":core:publishToMavenLocal")
workingDir = rootProject.file('test-suite')
commandLine = ["./gradlew", "clean", "build", "-g", GHOME+"/uno-jar-sub-builds"]
environment JAVA_HOME: JHOME
}
test {
testLogging {
events = ['PASSED', 'FAILED', 'SKIPPED']
}
}
build.dependsOn ':core:build'
test.dependsOn testSuite
testSuite.dependsOn ':ant:build'