Skip to content

Commit

Permalink
Upgrade to Gradle 8.7, kotlinPoet 1.16.0, Kotlinx Serialization 1.6.4…
Browse files Browse the repository at this point in the history
…, Gradle Nexus 2.0.0.
  • Loading branch information
edwinRNDR committed Apr 6, 2024
1 parent 937d5b2 commit 4448a5e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ dependencies {
"demoRuntimeOnly"(libs.slf4j.simple)
}

kotlin {
jvmToolchain(libs.versions.jvmTarget.get().toInt())
}

tasks {
@Suppress("UNUSED_VARIABLE")
Expand All @@ -71,14 +68,19 @@ tasks {
}
}
withType<KotlinCompile>() {
kotlinOptions.jvmTarget = libs.versions.jvmTarget.get()
kotlinOptions.apiVersion = libs.versions.kotlinApi.get()
kotlinOptions.languageVersion = libs.versions.kotlinLanguage.get()
kotlinOptions.freeCompilerArgs += "-Xexpect-actual-classes"
kotlinOptions.freeCompilerArgs += "-Xjdk-release=${libs.versions.jvmTarget.get()}"
}
}

java {
withJavadocJar()
withSourcesJar()
targetCompatibility = JavaVersion.valueOf("VERSION_${libs.versions.jvmTarget.get()}")
sourceCompatibility = JavaVersion.valueOf("VERSION_${libs.versions.jvmTarget.get()}")
}

val isReleaseVersion = !(version.toString()).endsWith("SNAPSHOT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ package org.openrndr.orsl.convention
import CollectScreenshotsTask
import org.gradle.accessors.dm.LibrariesForLibs
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.net.URI
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile

val libs = the<LibrariesForLibs>()

Expand All @@ -27,14 +29,17 @@ repositories {

group = "org.openrndr.extra"

tasks.withType<KotlinCompile>() {
tasks.withType<KotlinCompile<*>> {
kotlinOptions.apiVersion = libs.versions.kotlinApi.get()
kotlinOptions.languageVersion = libs.versions.kotlinLanguage.get()
kotlinOptions.freeCompilerArgs += "-Xexpect-actual-classes"
kotlinOptions.freeCompilerArgs += "-Xjdk-release=${libs.versions.jvmTarget.get()}"
}
tasks.withType<KotlinJvmCompile>().configureEach {
compilerOptions.jvmTarget.set(JvmTarget.fromTarget(libs.versions.jvmTarget.get()))
}

kotlin {
jvm {
jvmToolchain(libs.versions.jvmTarget.get().toInt())
compilations {
val main by getting

Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
ksp = "1.9.23-1.0.19"
kotlinPoet = "1.15.3"
kotlinPoet = "1.16.0"
kotlinApi = "1.9"
kotlinLanguage = "1.9"
kotlin = "1.9.23"
Expand All @@ -9,10 +9,10 @@ openrndr = { require = "[0.4.2, 0.5.0)" }
orx = { require = "[0.4.2, 0.5.0)" }
kotlinxCoroutines = "1.8.0"
kotlinLogging = "6.0.3"
kotlinxSerialization = "1.6.3"
kotlinxSerialization = "1.6.4"
dokka = "1.7.10"
nebulaRelease = "18.0.7"
gradleNexusPublish = "2.0.0-rc-1"
gradleNexusPublish = "2.0.0"
kluent = "1.73"
junitJupiter = "5.10.1"
slf4j = "2.0.12"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
1 change: 0 additions & 1 deletion orsl-demos/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ dependencies {
implementation(libs.orx.camera)
implementation(libs.orx.mesh.generators)
implementation(libs.orx.olive)

testImplementation(libs.kluent)
}
2 changes: 1 addition & 1 deletion orsl-shader-generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinCompile

plugins {
org.openrndr.orsl.convention.`kotlin-multiplatform`
id("com.google.devtools.ksp") version "1.9.22-1.0.16"
id("com.google.devtools.ksp") version "1.9.23-1.0.19"

}

Expand Down

0 comments on commit 4448a5e

Please sign in to comment.