Skip to content

Commit

Permalink
Bump min Java requirement to 11 (#1242)
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler authored Feb 7, 2025
1 parent 348d340 commit 49fb93f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ plugins {
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

kotlin {
explicitApi()
compilerOptions {
// https://docs.gradle.org/current/userguide/compatibility.html#kotlin
apiVersion = KotlinVersion.KOTLIN_1_8
jvmTarget = JvmTarget.JVM_1_8
jvmTarget = JvmTarget.JVM_11
freeCompilerArgs.addAll(
"-Xjvm-default=all",
)
Expand Down
1 change: 1 addition & 0 deletions src/docs/changes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
**Changed**

- **BREAKING CHANGE:** Mark `RelocatorRemapper` as `internal`. ([#1227](https://github.com/GradleUp/shadow/pull/1227))
- Bump min Java requirement to 11. ([#1242](https://github.com/GradleUp/shadow/pull/1242))

**Removed**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ class TransformersTest : BaseTransformerTest() {
run(shadowJarTask)

val actualFileBytes = outputShadowJar.use { jar ->
@Suppress("Since15")
jar.getStream(PLUGIN_CACHE_FILE).use { it.readAllBytes() }
}
assertThat(actualFileBytes.contentHashCode()).all {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ class Log4j2PluginsCacheFileTransformerTest : BaseTransformerTest<Log4j2PluginsC
if (jarEntry == null) {
fail("No expected resource in the output jar.")
} else if (jarEntry.name == PLUGIN_CACHE_FILE) {
@Suppress("Since15")
assertThat(inputStream.readAllBytes().contentHashCode()).all {
// Hash of the original plugin cache file.
isNotEqualTo(-2114104185)
Expand Down

0 comments on commit 49fb93f

Please sign in to comment.