Interface JavaPluginExtension
Common configuration for Java based projects. This is added by the
JavaBasePlugin.- Since:
- 4.10
-
Method Summary
Modifier and TypeMethodDescriptionReturns the source compatibility used for compiling Java sources.Returns the target compatibility used for compiling Java sources.voidSets the source compatibility used for compiling Java sources.voidSets the target compatibility used for compiling Java sources.
-
Method Details
-
getSourceCompatibility
JavaVersion getSourceCompatibility()Returns the source compatibility used for compiling Java sources. -
setSourceCompatibility
Sets the source compatibility used for compiling Java sources.- Parameters:
value- The value for the source compatibility
-
getTargetCompatibility
JavaVersion getTargetCompatibility()Returns the target compatibility used for compiling Java sources. -
setTargetCompatibility
Sets the target compatibility used for compiling Java sources.- Parameters:
value- The value for the target compatibility
-