commit 3a53d8825b47d71232d6d1a4e19164515be29020
parent fd7f50ca8f4d846350493de840e6c341e9e75543
Author: Florian Dold <florian.dold@gmail.com>
Date: Fri, 25 Oct 2019 11:24:06 +0200
share less build settings between gradle modules
Each module will have its own set of dependencies, they should be
declared separately. Furthermore, the old configuration broke running
"./gradlew build" from the top level directory.
Diffstat:
3 files changed, 79 insertions(+), 57 deletions(-)
diff --git a/build.gradle b/build.gradle
@@ -1,49 +1,6 @@
-plugins {
- id "org.jetbrains.kotlin.jvm" version "1.3.50"
-}
-
allprojects {
- apply plugin : "org.jetbrains.kotlin.jvm"
- apply plugin : "application"
- apply plugin : "java"
-
repositories {
mavenCentral()
jcenter()
}
}
-
-subprojects {
-
- version '1.0-SNAPSHOT'
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
-
- compileKotlin {
- kotlinOptions {
- jvmTarget = "1.8"
- }
- }
-
- compileTestKotlin {
- kotlinOptions {
- jvmTarget = "1.8"
- }
- }
-
- dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
- implementation "io.ktor:ktor-gson:1.1.5"
- compile group: 'io.ktor', name: 'ktor-gson', version: '0.9.0'
- compile "org.jetbrains.exposed:exposed:0.17.3"
- compile "io.ktor:ktor-server-netty:1.2.4"
- compile "ch.qos.logback:logback-classic:1.2.3"
- compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
- compile "javax.xml.bind:jaxb-api:2.3.0"
- compile group: 'xerces', name: 'xercesImpl', version: '2.6.2-jaxb-1.0.6'
- compile "javax.activation:activation:1.1"
- compile "org.glassfish.jaxb:jaxb-runtime:2.3.1"
- testCompile group: 'junit', name: 'junit', version: '4.12'
- runtime rootProject.files("resources")
- }
-}
-\ No newline at end of file
diff --git a/nexus/build.gradle b/nexus/build.gradle
@@ -1,3 +1,42 @@
+plugins {
+ id 'java'
+ id 'org.jetbrains.kotlin.jvm' version '1.3.50'
+ id 'application'
+}
+
+
+version '1.0-snapshot'
+sourceCompatibility = 1.8
+targetCompatibility = 1.8
+
+compileKotlin {
+ kotlinOptions {
+ jvmTarget = "1.8"
+ }
+}
+
+compileTestKotlin {
+ kotlinOptions {
+ jvmTarget = "1.8"
+ }
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
+ implementation "io.ktor:ktor-gson:1.1.5"
+ compile group: 'io.ktor', name: 'ktor-gson', version: '0.9.0'
+ compile "org.jetbrains.exposed:exposed:0.17.3"
+ compile "io.ktor:ktor-server-netty:1.2.4"
+ compile "ch.qos.logback:logback-classic:1.2.3"
+ compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
+ compile "javax.xml.bind:jaxb-api:2.3.0"
+ compile group: 'xerces', name: 'xercesImpl', version: '2.6.2-jaxb-1.0.6'
+ compile "javax.activation:activation:1.1"
+ compile "org.glassfish.jaxb:jaxb-runtime:2.3.1"
+ testCompile group: 'junit', name: 'junit', version: '4.12'
+ runtime rootProject.files("resources")
+}
+
application {
mainClassName = "tech.libeufin.nexus.MainKt"
}
@@ -11,8 +50,4 @@ jar {
manifest {
attributes "Main-Class": "tech.libeufin.nexus.MainKt"
}
-
- from {
- configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
- }
-}
-\ No newline at end of file
+}
diff --git a/sandbox/build.gradle b/sandbox/build.gradle
@@ -1,3 +1,41 @@
+plugins {
+ id 'java'
+ id 'org.jetbrains.kotlin.jvm' version '1.3.50'
+ id 'application'
+}
+
+version '1.0-snapshot'
+sourceCompatibility = 1.8
+targetCompatibility = 1.8
+
+compileKotlin {
+ kotlinOptions {
+ jvmTarget = "1.8"
+ }
+}
+
+compileTestKotlin {
+ kotlinOptions {
+ jvmTarget = "1.8"
+ }
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
+ implementation "io.ktor:ktor-gson:1.1.5"
+ compile group: 'io.ktor', name: 'ktor-gson', version: '0.9.0'
+ compile "org.jetbrains.exposed:exposed:0.17.3"
+ compile "io.ktor:ktor-server-netty:1.2.4"
+ compile "ch.qos.logback:logback-classic:1.2.3"
+ compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
+ compile "javax.xml.bind:jaxb-api:2.3.0"
+ compile group: 'xerces', name: 'xercesImpl', version: '2.6.2-jaxb-1.0.6'
+ compile "javax.activation:activation:1.1"
+ compile "org.glassfish.jaxb:jaxb-runtime:2.3.1"
+ testCompile group: 'junit', name: 'junit', version: '4.12'
+ runtime rootProject.files("resources")
+}
+
application {
mainClassName = "tech.libeufin.sandbox.MainKt"
}
@@ -5,10 +43,5 @@ application {
jar {
manifest {
attributes "Main-Class": "tech.libeufin.sandbox.MainKt"
-
}
-
- from {
- configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
- }
-}
-\ No newline at end of file
+}