Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 44 for isCompatibleWith (0.22 sec)

  1. platforms/core-runtime/internal-instrumentation-processor/src/test/groovy/org/gradle/internal/instrumentation/InstrumentationCodeGenTest.groovy

        }
    
        private static com.google.testing.compile.Compiler getCompiler() {
            assumeTrue("Java 20+ do not support --release=8", Jvm.current().javaVersion < JavaVersion.VERSION_20)
            if (Jvm.current().javaVersion.isCompatibleWith(JavaVersion.VERSION_1_9)) {
                return javac().withOptions(COMPILE_OPTIONS + "--release=8")
            }
            return javac().withOptions(COMPILE_OPTIONS)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 02 15:44:14 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DaemonCompatibilitySpec.java

        }
    
        private boolean jvmCompatible(DaemonContext potentialContext) {
            if (desiredContext.getJvmCriteria() != null) {
                return desiredContext.getJvmCriteria().isCompatibleWith(potentialContext.getJavaVersion());
            } else {
                try {
                    File potentialJavaHome = potentialContext.getJavaHome();
                    JavaInfo desiredJavaHome = desiredContext.getJavaHome();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 28 21:41:57 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/GrettySmokeTest.groovy

            ]
        }
    
        static def grettyConfigForCurrentJavaVersion() {
            TestedVersions.gretty.findAll {
                JavaVersion.current().isCompatibleWith(it.javaMinVersion as JavaVersion) &&
                    (it.javaMaxVersion == null || JavaVersion.current() <= JavaVersion.toVersion(it.javaMaxVersion))
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 04:11:37 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. platforms/jvm/jacoco/src/testFixtures/groovy/org/gradle/testing/jacoco/plugins/fixtures/JacocoCoverage.groovy

            (JavaVersion.VERSION_1_9): JacocoVersion.SUPPORTS_JDK_9,
        ]
    
        static List<String> getSupportedVersionsByJdk() {
            for (def cutoff : JDK_CUTOFFS) {
                if (JavaVersion.current().isCompatibleWith(cutoff.key)) {
                    return filter(cutoff.value)
                }
            }
            return filter(JacocoVersion.SUPPORTS_JDK_8)
        }
    
        private static List<String> filter(JacocoVersion threshold) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 15 16:50:44 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/stdlib-java-extensions/src/test/groovy/org/gradle/api/JavaVersionSpec.groovy

        }
    
        def "isCompatibleWith works as expected"() {
            expect:
            lhVersion.isCompatibleWith(rhVersion) == compatible
    
            where:
            lhVersion                | rhVersion                | compatible
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocIntegrationTest.groovy

            when:
            succeeds 'javadoc'
    
            then:
            file('build/docs/javadoc/Foo.html').text.contains("'some text'")
    
            where:
            option << (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_16) ? ['header'] : ['header', 'footer'])
        }
    
        def "can configure options with an Action"() {
            given:
            buildFile << '''
                apply plugin: "java"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 06:04:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/http/AbstractHttpsRepoResolveIntegrationTest.groovy

            // depending on JVM version, the error might occur either during SSL context initialization or during request
            if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_18)) {
                failure.assertHasCause("Got SSL handshake exception during request. It might be caused by SSL misconfiguration")
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/ApplyPluginIntegSpec.groovy

                public AddOpensArgProvider(Test test) {
                    this.test = test;
                }
                @Override
                Iterable<String> asArguments() {
                    return test.javaVersion.isCompatibleWith(JavaVersion.VERSION_1_9)
                        ? ["--add-opens=java.base/java.lang=ALL-UNNAMED"]
                        : []
                }
            }
            tasks.withType(Test).configureEach {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  9. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/MavenConversionDynamicPomIntegrationTest.groovy

            // if the source and target are different, we can't actually compile because javac requires them to be the same
            failure.assertHasDescription("Execution failed for task ':compileJava'.")
            if (source.isCompatibleWith(JavaVersion.VERSION_22)) {
                failure.assertHasCause("error: specified target release 1.8 is too old for the specified source release 22")
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/process/internal/DefaultJavaForkOptions.java

                    target.jvmArgs(jvmArgumentProvider.asArguments());
                }
            }
            return this;
        }
    
        @Override
        public boolean isCompatibleWith(JavaForkOptions options) {
            if (hasJvmArgumentProviders(this) || hasJvmArgumentProviders(options)) {
                throw new UnsupportedOperationException("Cannot compare options with jvmArgumentProviders.");
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top