-
Notifications
You must be signed in to change notification settings - Fork 180
/
build.gradle.kts
66 lines (59 loc) · 2 KB
/
build.gradle.kts
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
plugins {
java
application
}
repositories {
jcenter()
google()
mavenLocal()
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
maven {
url = uri("https://plugins.gradle.org/m2/")
}
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
}
maven {
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
}
}
dependencies {
implementation("org.hl7.fhir:kindling:${property("kindlingVersion")}")
}
task("publish", JavaExec::class) {
dependsOn(":printVersion")
if (properties["logback.configurationFile"] != null) {
jvmArgs = listOf("-Dlogback.configurationFile=${properties["logback.configurationFile"]}")
}
main = "org.hl7.fhir.tools.publisher.Publisher"
classpath = sourceSets["main"].compileClasspath
}
task("publishFull", JavaExec::class) {
dependsOn(":printVersion")
if (properties["logback.configurationFile"] != null) {
jvmArgs = listOf("-Dlogback.configurationFile=${properties["logback.configurationFile"]}")
}
main = "org.hl7.fhir.tools.publisher.Publisher"
classpath = sourceSets["main"].compileClasspath
args("-nopartial")
}
task("printVersion") {
println("\nKicking off FHIR publishing job!" +
"\n\n==============================" +
"\nGenerating code using kindling version ${properties["kindlingVersion"]}" +
"\nFor more information on kindling, and to check latest version, check here:" +
"\nhttps://github.com/HL7/kindling" +
"\n"+
"\nVerbose or customized output can be further configured using the logback.configurationFile gradle property:"+
"\n"+
"\n ./gradlew publish -Plogback.configurationFile=~/my-logback-config.xml"+
"\n"+
"\n==============================")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}