Skip to content

Commit

Permalink
build with jdk 17
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Dec 14, 2024
1 parent 709f6a3 commit 25eac93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
- name: Fetch Sources
uses: actions/checkout@v4

# Setup Java 11 environment for the next steps
# Setup Java environment for the next steps
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 11
java-version: 17
cache: gradle

# Set environment variables
Expand Down Expand Up @@ -87,12 +87,12 @@ jobs:
- name: Fetch Sources
uses: actions/checkout@v4

# Setup Java 11 environment for the next steps
# Setup Java environment for the next steps
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 11
java-version: 17

# Set environment variables
- name: Export Properties
Expand Down
11 changes: 4 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ repositories {
mavenCentral()
}

kotlin {
jvmToolchain(17)
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
}
Expand All @@ -40,13 +44,6 @@ tasks {
enabled = false
}

withType<JavaCompile> {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}

patchPluginXml {
version.set(properties("pluginVersion"))
Expand Down

0 comments on commit 25eac93

Please sign in to comment.