Skip to content

Commit

Permalink
chore(build): bump kotlin settings to match orca
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldju committed Jan 15, 2021
1 parent bf6c47e commit baa471e
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 6 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@

plugins {
id "io.spinnaker.project" version "$spinnakerGradleVersion" apply false
id "nebula.kotlin" version "$kotlinVersion" apply false
id "org.jetbrains.kotlin.jvm" version "$kotlinVersion" apply false
id "org.jetbrains.kotlin.plugin.allopen" version "$kotlinVersion" apply false
id "io.gitlab.arturbosch.detekt" version "1.7.4" apply false
id "org.jetbrains.dokka" version "1.4.10" apply false
id 'idea'
}

Expand All @@ -28,7 +31,6 @@ subprojects { project ->
if (name != "kayenta-bom") {
apply plugin: "java-library"
apply plugin: "groovy"
apply plugin: "nebula.kotlin"

def localVersions = [orcaVersion].find { it.endsWith('-SNAPSHOT') }
if (localVersions) {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kotlinVersion=1.3.70
kotlinVersion=1.4.0
orcaVersion=8.12.0
org.gradle.parallel=true
spinnakerGradleVersion=8.10.0
Expand Down
33 changes: 30 additions & 3 deletions gradle/kotlin.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,46 @@
* limitations under the License.
*/

apply plugin: "nebula.kotlin"
apply plugin: "kotlin"
apply plugin: "kotlin-spring"
apply plugin: "io.gitlab.arturbosch.detekt"

compileKotlin {
kotlinOptions {
languageVersion = "1.3"
languageVersion = "1.4"
jvmTarget = "11"
}
}

compileTestKotlin {
kotlinOptions {
languageVersion = "1.3"
languageVersion = "1.4"
jvmTarget = "11"
}
}


configurations.all {
resolutionStrategy {
eachDependency { details ->
if (details.requested.group == "org.jetbrains.kotlin") {
details.useVersion kotlinVersion
}
}
}
}

detekt {
parallel = false
config = files("$rootDir/.detekt.yml")
buildUponDefaultConfig = true
ignoreFailures = true
reports {
xml {
enabled = false
}
txt {
enabled = false
}
}
}
2 changes: 2 additions & 0 deletions kayenta-core/kayenta-core.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apply from: "$rootDir/gradle/kotlin.gradle"

dependencies {
api "redis.clients:jedis"
api "com.netflix.spinnaker.kork:kork-core"
Expand Down

0 comments on commit baa471e

Please sign in to comment.