Skip to content

Commit

Permalink
jdk22
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Aug 22, 2024
1 parent 5af9235 commit 9306855
Show file tree
Hide file tree
Showing 321 changed files with 66,109 additions and 33,588 deletions.
25 changes: 8 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,42 +45,33 @@ tasks.withType(Test) {
useJUnitPlatform()
}


// MR jar
multiRelease {
targetVersions 8, 21
}

compileJava21Java {
options.compilerArgs += ["--enable-preview"]
}

compileJava21TestJava {
options.compilerArgs += ["--enable-preview"]
targetVersions 8, 22
}

java21Test {
jvmArgs += ["--enable-preview", "--enable-native-access=ALL-UNNAMED"]
java22Test {
jvmArgs += ["--enable-native-access=ALL-UNNAMED"]
}

configurations {
java21Implementation.extendsFrom(implementation)
java22Implementation.extendsFrom(implementation)
}

def noLibTestTask = tasks.register('noLibTest', Test) {
description = 'Runs tests without lib'
group = 'verification'

classpath = files(jar.archiveFile.get().asFile) +
configurations[sourceSets.java21.runtimeClasspathConfigurationName] +
configurations[sourceSets.java22.runtimeClasspathConfigurationName] +
configurations[sourceSets.test.runtimeClasspathConfigurationName] +
sourceSets.test.output
testClassesDirs = sourceSets.test.output.classesDirs

jvmArgs += ["--enable-preview", "--enable-native-access=ALL-UNNAMED"]
systemProperty "java.library.path", ''
jvmArgs += ["--enable-native-access=ALL-UNNAMED"]
systemProperty 'java.library.path', ''
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(21)
languageVersion = JavaLanguageVersion.of(22)
}

dependsOn jar
Expand Down
16 changes: 0 additions & 16 deletions src/main/java21/com/github/gotson/nightcompress/panama/FILE.java

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9306855

Please sign in to comment.