Commit 58ab3f5
authored
Use Java 8 as Target for Gradle Example (#339)
As discussed in gradle/gradle#33964 and apache/logging-log4j2#3754, Gradle fails the build if a `compileOnly` dependency is not compatible with the Java version specified via `options.release`, even though such dependencies don’t impact runtime behavior.
This PR updates the Gradle example to explicitly target **Java 8**, allowing us to surface and detect such compatibility issues through our regression tests. This helps ensure our published artifacts remain usable in Gradle builds targeting Java 8, and catches potential issues earlier in our release cycle.1 parent 09b14de commit 58ab3f5
File tree
3 files changed
+7
-22
lines changed- log4j-samples-gradle-metadata
- src/main/java
- org/example
3 files changed
+7
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | | - | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
65 | | - | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
0 commit comments