Skip to content

Commit 048066f

Browse files
committed
Upgrade examples to Java 25
1 parent 9287927 commit 048066f

File tree

31 files changed

+520
-54
lines changed

31 files changed

+520
-54
lines changed

examples/enum_windows/app/build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
33

44
plugins {
55
// Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
6-
alias(libs.plugins.kotlin.jvm)
6+
alias(libs.plugins.kotlin.jvm) version "2.3.0"
77

88
id("net.codecrete.windows-api") version "0.8.2"
99

@@ -50,14 +50,18 @@ dependencies {
5050

5151
java {
5252
toolchain {
53-
languageVersion = JavaLanguageVersion.of(23)
53+
languageVersion = JavaLanguageVersion.of(25)
5454
}
5555
}
5656

5757
application {
5858
mainClass = "net.codecrete.windowsapi.examples.enumwindows.AppKt"
5959
}
6060

61+
tasks.compileTestKotlin {
62+
dependsOn("generateTestWindowsApi")
63+
}
64+
6165
tasks.named<Test>("test") {
6266
useJUnitPlatform()
6367
}
1.83 KB
Binary file not shown.

examples/enum_windows/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

examples/enum_windows/gradlew

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/enum_windows/gradlew.bat

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
plugins {
2-
// Apply the foojay-resolver plugin to allow automatic download of JDKs
3-
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
4-
}
5-
61
rootProject.name = "enum_windows"
72
include("app")

examples/medium_story/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = '1.0-SNAPSHOT'
88

99
java {
1010
toolchain {
11-
languageVersion = JavaLanguageVersion.of(24)
11+
languageVersion = JavaLanguageVersion.of(25)
1212
}
1313
}
1414

1.83 KB
Binary file not shown.

examples/medium_story/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

examples/medium_story/gradlew

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)