Update to Kotlin 1.60 and Gradle 4.9

Removes the dependency on legacy script compilation and now relies on script
discovery.  In addition, the Gradle build scripts were refactored and updated
to be compatible with Gradle 5.0 and make use of the new java-library
configurations.
This commit is contained in:
Gary Tierney
2018-08-19 19:26:51 +01:00
parent 7fee8277ab
commit 0651d535fa
20 changed files with 171 additions and 181 deletions
+13 -42
View File
@@ -1,52 +1,23 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version "1.2.60" apply(false)
}
wrapper {
gradleVersion = "4.9"
distributionType = Wrapper.DistributionType.ALL
}
allprojects {
group = 'apollo'
version = '0.0.1'
}
apply from: 'properties.gradle'
subprojects {
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
maven { url "https://repo.maven.apache.org/maven2" }
maven { url "https://dl.bintray.com/kotlin/kotlinx/" }
}
dependencies {
compile group: 'org.apache.commons', name: 'commons-compress', version: '1.10'
compile group: 'org.jruby', name: 'jruby-complete', version: '9.0.5.0'
compile group: 'com.google.guava', name: 'guava', version: '19.0'
compile group: 'io.netty', name: 'netty-all', version: '4.0.34.Final'
compile group: 'com.lambdaworks', name: 'scrypt', version: '1.4.0'
compile group: 'com.mchange', name: 'c3p0', version: '0.9.5.2'
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.54'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.6.4'
testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.4'
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
}
test {
java {
srcDirs = ['src/test/java']
}
}
}
test {
testLogging {
events "passed", "skipped", "failed"
}
}
}
apply from: 'gradle/properties.gradle'
apply from: 'gradle/kotlin.gradle'
apply from: 'gradle/jacoco.gradle'