-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
72 lines (61 loc) · 1.77 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
68
69
70
71
72
import static org.gradle.api.JavaVersion.*
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.jetbrains.kotlin.jvm' apply false
id 'base'
id 'idea'
}
subprojects {
buildscript {
configurations.classpath {
// Ensure we find the latest SNAPSHOTs of the plugins.
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
}
group 'com.example.osgi'
version = '1.0.0-SNAPSHOT'
repositories {
mavenCentral()
maven {
url "$artifactory_contextUrl/corda-dependencies"
}
}
configurations {
all {
// Ensure we find the latest SNAPSHOTs of our dependencies.
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
}
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=all',
// Prevent Kotlin from warning about kotlin.* classes inside the OSGi bundle.
'-Xskip-runtime-version-check'
]
//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.8.3'
distributionType = Wrapper.DistributionType.ALL
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}