-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(java17): conditional compilation to Java 17 bytecode
- Loading branch information
1 parent
8bb8d8f
commit e4b2724
Showing
4 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
spinnaker-project-plugin/src/main/groovy/com/netflix/spinnaker/gradle/Flags.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.netflix.spinnaker.gradle | ||
|
||
import org.gradle.api.Project | ||
|
||
class Flags { | ||
|
||
/** | ||
* Whether or not the {@code targetJava17} property was set. | ||
*/ | ||
static boolean targetJava17(Project project) { | ||
return Boolean.valueOf(project.findProperty("targetJava17")?.toString()) | ||
} | ||
|
||
/** | ||
* Whether cross-compilation should be enabled. | ||
* | ||
* Determined by the project property 'enableCrossCompilerPlugin', and | ||
* disabled by default. | ||
* | ||
* @param project the project from which to read the property | ||
* @return whether cross-compilation should be enabled | ||
*/ | ||
static boolean shouldEnableCrossCompilation(Project project) { | ||
return Boolean.valueOf(project.findProperty("enableCrossCompilerPlugin")?.toString()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters