Skip to content

Commit

Permalink
Merge pull request #9 from navikt/feature/migration-kotlin-1-9-22
Browse files Browse the repository at this point in the history
F - Migrasjon kotlin 1.9.10 -> 1.9.22
  • Loading branch information
dskarpas authored Dec 22, 2023
2 parents 624d050 + 932e857 commit 9554f7f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
buildscript {
ext {
kotlinVersion = '1.9.22'
tokenSupportVersion = '3.2.0'
}
}

plugins {
id "org.jetbrains.kotlin.jvm" version "$kotlinVersion"
}

apply from: "buildSrc/ep-module.gradle"
apply from: "buildSrc/ep-library.gradle"

Expand Down
23 changes: 6 additions & 17 deletions buildSrc/ep-module.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
buildscript {
ext {
kotlinVersion = '1.9.10'
}
repositories {
mavenCentral()
maven {
Expand All @@ -14,13 +11,9 @@ buildscript {
classpath "se.patrikerdes:gradle-use-latest-versions-plugin:0.2.18"
classpath "org.owasp:dependency-check-gradle:8.1.0"
classpath "com.adarshr:gradle-test-logger-plugin:4.0.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion"
}
}

apply plugin: org.jetbrains.kotlin.gradle.plugin.KotlinPlatformJvmPlugin
apply plugin: org.jetbrains.kotlin.allopen.gradle.SpringGradleSubplugin
apply plugin: com.github.benmanes.gradle.versions.VersionsPlugin
apply plugin: se.patrikerdes.UseLatestVersionsPlugin
apply plugin: org.owasp.dependencycheck.gradle.DependencyCheckPlugin
Expand Down Expand Up @@ -54,19 +47,15 @@ java {
}

compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "17"
allWarningsAsErrors = true
}
kotlinOptions.jvmTarget = "17"
kotlinOptions.allWarningsAsErrors = true
kotlinOptions.freeCompilerArgs += "-Xjsr305=strict"
}

compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '17'
allWarningsAsErrors = true
}
kotlinOptions.jvmTarget = "17"
kotlinOptions.allWarningsAsErrors = true
kotlinOptions.freeCompilerArgs += "-Xjsr305=strict"
}

test {
Expand Down

0 comments on commit 9554f7f

Please sign in to comment.