Skip to content

Commit

Permalink
Bump Kotlin til 2.0.0 (#593)
Browse files Browse the repository at this point in the history
* Bump Kotlin til 2.0.0

* Gi Gradle mer minne for å kjøre test-workflow
  • Loading branch information
bjerga authored Jul 9, 2024
1 parent e231d8b commit 63a5a6b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
- uses: gradle/actions/setup-gradle@v3

- name: Test
run: ./gradlew test --tests --parallel --build-cache '*Test' jacocoTestReport
run: ./gradlew test --tests --parallel --build-cache '*Test' jacocoTestReport -Dorg.gradle.jvmargs=-Xmx32g
env:
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }}
14 changes: 7 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
kotlin("jvm")
Expand All @@ -23,14 +23,14 @@ dependencies {
}
}

kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_21
}
}

allprojects {
tasks {
val jvmTargetVersion: String by project

withType<KotlinCompile> {
kotlinOptions.jvmTarget = jvmTargetVersion
}

withType<Test> {
useJUnitPlatform()
testLogging {
Expand Down
5 changes: 1 addition & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
kotlin.code.style=official

# Build versions
jvmTargetVersion=21

# Plugin versions
kotlinVersion=1.9.24
kotlinVersion=2.0.0
kotlinterVersion=4.3.0

# Dependency versions
Expand Down

0 comments on commit 63a5a6b

Please sign in to comment.