Skip to content

Commit

Permalink
Fix Java 21 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenetics committed Nov 6, 2023
1 parent d35bc44 commit 07ff7fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ allprojects {
}

configurations.all {
resolutionStrategy.failOnVersionConflict()
resolutionStrategy.preferProjectModules()
}
}

Expand Down
6 changes: 6 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

/*
* Java GPX Library (@__identifier__@).
* Copyright (c) @__year__@ Franz Wilhelmstötter
Expand Down Expand Up @@ -33,6 +35,10 @@ repositories {
gradlePluginPortal()
}

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "17"
}

configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencyResolutionManagement {
create("libs") {
library("assertj", "org.assertj:assertj-core:3.24.2")
library("commons-math", "org.apache.commons:commons-math3:3.6.1")
library("equalsverifier", "nl.jqno.equalsverifier:equalsverifier:3.7.2")
library("equalsverifier", "nl.jqno.equalsverifier:equalsverifier:3.15.3")
library("guava", "com.google.guava:guava:32.1.3-jre")
library("prngine", "io.jenetics:prngine:2.0.0")
library("rxjava", "io.reactivex.rxjava2:rxjava:2.2.21")
Expand Down

0 comments on commit 07ff7fe

Please sign in to comment.