Class BaselineJavaVersionExtension


  • public class BaselineJavaVersionExtension
    extends java.lang.Object
    Extension named javaVersion used to set the target and runtime java versions used for a single project.
    • Constructor Detail

      • BaselineJavaVersionExtension

        @Inject
        public BaselineJavaVersionExtension​(org.gradle.api.Project project)
    • Method Detail

      • target

        public final org.gradle.api.provider.Property<ChosenJavaVersion> target()
        Target ChosenJavaVersion for compilation. Also determines whether the `--enable-preview` flag should be used for compilation, producing bytecode with a minor version of '65535'. Unlike normal bytecode, this bytecode cannot be run by a higher version of Java that it was compiled by.
      • setTarget

        public final void setTarget​(int value)
      • setTarget

        public final void setTarget​(java.lang.String value)
      • setRuntime

        public final void setRuntime​(int value)
      • setRuntime

        public final void setRuntime​(java.lang.String value)
      • overrideLibraryAutoDetection

        public final org.gradle.api.provider.Property<java.lang.Boolean> overrideLibraryAutoDetection()
        Overrides auto-detection if a value is present to force this module to be a library (true) or a distribution false).
      • library

        public final void library()