- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 198 for toVersion (0.45 sec)
-
platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileToolchainIntegrationTest.groovy
then: executedAndNotSkipped(":compileJava") outputContains("Compiling with toolchain '${targetJdk.javaHome.absolutePath}'") classJavaVersion(javaClassFile("Foo.class")) == JavaVersion.toVersion(compileWithVersion) where: // Some cases are skipped, because forkOptions (when configured) must match the resulting toolchain, otherwise the build fails
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 10:21:26 UTC 2024 - 23.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/metrics.go
start := time.Now() obj, err := m.delegate.Convert(in, targetGV) fromVersion := in.GetObjectKind().GroupVersionKind().Version toVersion := targetGV.Version // only record this observation if the version is different if fromVersion != toVersion { m.latencies.WithLabelValues( m.crdName, fromVersion, toVersion, strconv.FormatBool(err == nil)).Observe(time.Since(start).Seconds()) } return obj, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 07 19:34:33 UTC 2023 - 5.7K bytes - Viewed (0) -
platforms/jvm/language-groovy/src/integTest/groovy/org/gradle/groovy/compile/GroovyCompileToolchainIntegrationTest.groovy
} } compileGroovy { ${source != 'none' ? "sourceCompatibility = JavaVersion.toVersion($source)" : ''} ${target != 'none' ? "targetCompatibility = JavaVersion.toVersion($target)" : ''} def projectSourceCompat = project.java.sourceCompatibility def projectTargetCompat = project.java.targetCompatibility
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Feb 06 17:37:16 UTC 2024 - 9.9K bytes - Viewed (0) -
testing/soak/src/testFixtures/groovy/org/gradle/launcher/daemon/fixtures/FullyQualifiedGarbageCollector.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.3K bytes - Viewed (0) -
platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/EclipseJdt.java
setSourceCompatibility((Object) sourceCompatibility); } public void setSourceCompatibility(Object sourceCompatibility) { JavaVersion version = JavaVersion.toVersion(sourceCompatibility); if (version != null) { this.sourceCompatibility = version; } } /** * The target JVM to generate {@code .class} files for. * <p>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 5.2K bytes - Viewed (0) -
platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/ScalaCompileJavaToolchainIntegrationTest.groovy
compileScala { scalaCompileOptions.additionalParameters = ["${targetJava8}"] ${source != 'none' ? "sourceCompatibility = JavaVersion.toVersion($source)" : ''} ${target != 'none' ? "targetCompatibility = JavaVersion.toVersion($target)" : ''} def projectSourceCompat = project.java.sourceCompatibility def projectTargetCompat = project.java.targetCompatibility
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 07 03:32:33 UTC 2024 - 10K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/toolchain/DaemonJavaToolchainQueryServiceTest.groovy
when: def filter = createSpec(JavaLanguageVersion.of(versionToFind)) def toolchain = queryService.findMatchingToolchain(filter) then: toolchain.languageVersion == JavaVersion.toVersion(versionToFind) toolchain.javaHome.toString() == systemSpecificAbsolutePath(expectedPath) where: versionToFind | expectedPath 9 | "/path/9" 12 | "/path/12"
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/jvm/plugins-java-base/src/main/java/org/gradle/api/plugins/JavaPluginConvention.java
/** * Sets the source compatibility used for compiling Java sources. * * @param value The value for the source compatibility as defined by {@link JavaVersion#toVersion(Object)} */ public abstract void setSourceCompatibility(Object value); /** * Sets the source compatibility used for compiling Java sources. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 12:15:28 UTC 2023 - 6.1K bytes - Viewed (0) -
platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/TargetJdk.java
* @return The version, or null if the provided value is null. * @throws IllegalArgumentException when the provided value cannot be converted. */ @Nullable public static TargetJdk toVersion(@Nullable Object value) throws IllegalArgumentException { if (value == null) { return null; } if (value instanceof TargetJdk) { return (TargetJdk) value; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 21 12:23:38 UTC 2023 - 2.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/typeconversion/JavaVersionFromCharSequenceNotationConverter.java
@Override public void convert(CharSequence notation, NotationConvertResult<? super JavaVersion> result) throws TypeConversionException { try { result.converted(JavaVersion.toVersion(notation)); } catch (IllegalArgumentException e) { throw new TypeConversionException(e.getMessage(), e); } } @Override public void describe(DiagnosticsVisitor visitor) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 15:43:28 UTC 2024 - 1.3K bytes - Viewed (0)