Skip to content

Commit

Permalink
Target JVM 17 with APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Nov 9, 2024
1 parent 29169f6 commit d23adfe
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 1 deletion.
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

allprojects {
group = "dev.schlaubi.tonbrett"
version = "2.1.0"
version = "2.1.1"

repositories {
mavenCentral()
Expand Down
2 changes: 2 additions & 0 deletions buildSrc/src/main/kotlin/published-module.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import org.gradle.kotlin.dsl.`maven-publish`
import org.gradle.kotlin.dsl.signing
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinTopLevelExtension
import java.util.Base64

plugins {
Expand Down
9 changes: 9 additions & 0 deletions client/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@file:OptIn(ExperimentalKotlinGradlePluginApi::class)

import dev.schlaubi.tonbrett.gradle.androidSdk
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.targets.jvm.KotlinJvmTarget

plugins {
`multiplatform-module`
Expand All @@ -12,6 +16,11 @@ repositories {
}

kotlin {
targets.named<KotlinJvmTarget>("desktop") {
compilerOptions {
jvmTarget = JvmTarget.JVM_17
}
}
macosArm64()
macosX64()
mingwX64()
Expand Down
11 changes: 11 additions & 0 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
@file:OptIn(ExperimentalKotlinGradlePluginApi::class)

import dev.schlaubi.tonbrett.gradle.androidSdk
import org.gradle.kotlin.dsl.named
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.targets.jvm.KotlinJvmTarget

plugins {
`multiplatform-module`
Expand All @@ -7,6 +13,11 @@ plugins {
}

kotlin {
targets.named<KotlinJvmTarget>("desktop") {
compilerOptions {
jvmTarget = JvmTarget.JVM_17
}
}
explicitApi()

macosArm64()
Expand Down
12 changes: 12 additions & 0 deletions lavalink-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
kotlin("jvm")
alias(libs.plugins.lavalink)
Expand All @@ -10,6 +12,16 @@ dependencies {
implementation(libs.kord.common)
}

java {
sourceCompatibility = JavaVersion.VERSION_17
}

kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_17
}
}

lavalinkPlugin {
name = "tonbrett"
apiVersion = libs.versions.lavalink.api
Expand Down

0 comments on commit d23adfe

Please sign in to comment.