Skip to content

Commit

Permalink
Define upper version.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Nov 22, 2023
1 parent f88de0f commit f8a2c36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions byte-buddy-gradle-plugin/common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def sourceVersion = System.getProperty("net.bytebuddy.gradle.version.source")
def source
if (sourceVersion != null) {
source = JavaVersion.toVersion(sourceVersion)
} else if (current > JavaVersion.VERSION_19) {
source = JavaVersion.VERSION_1_8
} else if (current > JavaVersion.VERSION_1_9) {
source = JavaVersion.VERSION_1_7
} else if (current > JavaVersion.VERSION_1_8) {
Expand All @@ -36,6 +38,8 @@ def targetVersion = System.getProperty("net.bytebuddy.gradle.version.target")
def target
if (targetVersion != null) {
target = JavaVersion.toVersion(targetVersion)
} else if (current > JavaVersion.VERSION_19) {
target = JavaVersion.VERSION_1_8
} else if (current > JavaVersion.VERSION_1_9) {
target = JavaVersion.VERSION_1_7
} else if (current > JavaVersion.VERSION_1_8) {
Expand Down

0 comments on commit f8a2c36

Please sign in to comment.