- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 143 for JavaLanguageVersion (0.22 sec)
-
platforms/documentation/docs/src/snippets/java/toolchain-filters/kotlin/build.gradle.kts
// tag::toolchain-known-vendor[] java { toolchain { languageVersion = JavaLanguageVersion.of(11) vendor = JvmVendorSpec.ADOPTIUM } } // end::toolchain-known-vendor[] } else if (testToolchain == "matchingVendor") { // tag::toolchain-matching-vendor[] java { toolchain { languageVersion = JavaLanguageVersion.of(11) vendor = JvmVendorSpec.matching("customString") } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1000 bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/toolchain/DaemonJavaToolchainQueryServiceTest.groovy
import org.gradle.internal.jvm.inspection.JvmToolchainMetadata import org.gradle.internal.jvm.inspection.JvmVendor import org.gradle.internal.os.OperatingSystem import org.gradle.jvm.toolchain.JavaLanguageVersion import org.gradle.jvm.toolchain.JvmImplementation import org.gradle.jvm.toolchain.JvmVendorSpec import org.gradle.jvm.toolchain.internal.DefaultJvmVendorSpec import org.gradle.jvm.toolchain.internal.InstallationLocation
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 00:09:57 UTC 2024 - 9.9K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/configuration/DaemonParametersTest.groovy
parameters.applyDefaultsFor(JavaLanguageVersion.of(8)) then: parameters.effectiveJvmArgs.containsAll(["-Xmx17m"]) parameters.effectiveJvmArgs.intersect(parameters.DEFAULT_JVM_ARGS).empty } def "can apply defaults for Java 7 and earlier"() { when: parameters.applyDefaultsFor(JavaLanguageVersion.of(7)) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 00:09:57 UTC 2024 - 5.7K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/plugins/pluginProject/groovy/buildSrc/src/main/groovy/my-java-library.gradle
id 'org.jetbrains.kotlin.jvm' } repositories { mavenCentral() } java { toolchain.languageVersion.set(JavaLanguageVersion.of(11)) } tasks.test { useJUnitPlatform() } kotlin { jvmToolchain { languageVersion.set(JavaLanguageVersion.of(11)) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 22 06:14:51 UTC 2024 - 309 bytes - Viewed (0) -
platforms/jvm/language-java/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainIntegrationTest.groovy
toolchain { languageVersion = JavaLanguageVersion.of(${jdkMetadata1.languageVersion.majorVersion}) } } project.getExtensions().getByType(JavaToolchainService.class) .launcherFor(java.toolchain) .get() java.toolchain.languageVersion.set(JavaLanguageVersion.of(${jdkMetadata2.languageVersion.majorVersion})) """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 01 15:18:26 UTC 2023 - 7.8K bytes - Viewed (0) -
platforms/jvm/toolchains-jvm-shared/src/main/java/org/gradle/jvm/toolchain/internal/JavaToolchain.java
import org.gradle.jvm.toolchain.JavaLanguageVersion; public class JavaToolchain implements Describable, JavaInstallationMetadata { static JavaLanguageVersion getJavaLanguageVersion(JvmInstallationMetadata metadata) { return JavaLanguageVersion.of(metadata.getLanguageVersion().getMajorVersion()); } private final Directory javaHome; private final JavaLanguageVersion javaVersion;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 01 16:57:19 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/java/toolchain-filters/groovy/build.gradle
// tag::toolchain-known-vendor[] java { toolchain { languageVersion = JavaLanguageVersion.of(11) vendor = JvmVendorSpec.ADOPTIUM } } // end::toolchain-known-vendor[] } else if (testToolchain == "matchingVendor") { // tag::toolchain-matching-vendor[] java { toolchain { languageVersion = JavaLanguageVersion.of(11) vendor = JvmVendorSpec.matching("customString") } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1004 bytes - Viewed (0) -
platforms/documentation/docs/src/samples/java/jvm-multi-project-with-toolchains/groovy/list/build.gradle
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 417 bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/DaemonJavaCompiler.java
javaForkOptions.setExecutable(jvm.getJavaExecutable()); ClassPath compilerClasspath = classPathRegistry.getClassPath("JAVA-COMPILER"); JavaLanguageVersion javaLanguageVersion = JavaLanguageVersion.of(forkingSpec.getJavaLanguageVersion()); if (javaLanguageVersion.canCompileOrRun(9)) { // In JDK 9 and above the compiler internal classes are bundled with the rest of the JDK, but we need to export it to gain access.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 13:00:39 UTC 2024 - 5.4K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/java/toolchain-task/groovy/build.gradle
id 'java' } java { toolchain { // <1> languageVersion = JavaLanguageVersion.of(8) } } tasks.register('showDefaultToolchain', CustomTaskUsingToolchains) // <2> tasks.register('showCustomToolchain', CustomTaskUsingToolchains) { launcher = javaToolchains.launcherFor { // <3> languageVersion = JavaLanguageVersion.of(17) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.2K bytes - Viewed (0)