-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (53 loc) · 1.76 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
64
65
66
67
import static org.gradle.api.JavaVersion.*
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.jetbrains.kotlin.jvm' apply false
id 'base'
id 'java'
}
subprojects {
group 'com.example.osgi.launcher.sandbox'
version = '1.0.0-SNAPSHOT'
repositories {
maven {
url = "$artifactoryContextUrl/corda-dependencies-dev"
}
mavenCentral()
}
tasks.withType(JavaCompile).configureEach {
sourceCompatibility = VERSION_1_8
targetCompatibility = VERSION_1_8
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
languageVersion = '1.4'
apiVersion = '1.4'
jvmTarget = VERSION_1_8
freeCompilerArgs = ['-Xjvm-default=enable']
//allWarningsAsErrors = true
}
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
// Prevent the project from creating temporary files outside of the build directory.
systemProperty 'java.io.tmpdir', buildDir.absolutePath
}
}
wrapper {
gradleVersion = '6.6.1'
distributionType = Wrapper.DistributionType.ALL
}
task copyYoJarToResources(type: Copy) {
from 'yo/build/libs/yo-1.0.0-SNAPSHOT.jar'
into "launcher/src/main/resources/yo/"
}
task copyGreetingsJarToResources(type: Copy) {
from 'greetings/build/libs/greetings-1.0.0-SNAPSHOT.jar'
into "launcher/src/main/resources/greetings/"
}
task copyLogReaderJarToResources(type: Copy) {
from 'log-reader/build/libs/log-reader-1.0.0-SNAPSHOT.jar'
into "launcher/src/main/resources/logger/"
}
task copyJarsToLauncherResources(dependsOn: [copyYoJarToResources, copyGreetingsJarToResources, copyLogReaderJarToResources])
build.finalizedBy(copyJarsToLauncherResources)