Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for withInstallations (0.4 sec)

  1. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/scaladoc/ScalaDocIntegrationTest.groovy

                    }
                }
            """
    
            when:
            withInstallations(jdk8, jdk11).run scaladoc
    
            then:
            executedAndNotSkipped scaladoc
    
            when:
            withInstallations(jdk8, jdk11).run scaladoc
            then:
            skipped scaladoc
    
            when:
            withInstallations(jdk8, jdk11).run scaladoc, '-Pchanged', '--info'
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainIntegrationTest.groovy

                    ${vendor ? "vendor = JvmVendorSpec.matching('${jdkMetadata.vendor.rawVendor}')" : ""}
                }.getOrNull()
            """
    
            when:
            withInstallations(jdkMetadata).run ':help'
    
            then:
            executedAndNotSkipped ':help'
    
            where:
            description                                 | languageVersion | vendor
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 15:18:26 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/JansiEndUserIntegrationTest.groovy

                }
            """
    
            file('src/main/java/MyClass.java') << """
                public class MyClass {}
            """
    
            withInstallations(AvailableJavaHomes.jdk11).succeeds 'compileJava'
    
            then:
            outputContains('Hello World')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 24 18:12:50 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestTaskToolchainIntegrationTest.groovy

            configureProjectWithJavaPlugin(compileWithVersion)
    
            configureLauncher(jdkOther)
            configureExecutable(jdkCurrent)
    
            when:
            withInstallations(jdkCurrent, jdkOther).runAndFail(":test")
    
            then:
            failureDescriptionStartsWith("Execution failed for task ':test'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 06:04:19 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonToolchainCoexistWithCurrentOptionsIntegrationTest.groovy

            writeJvmCriteria(otherJvm)
            captureJavaHome()
            executer.withArgument("-Porg.gradle.java.installations.auto-detect=false")
    
            expect:
            withInstallations(otherJvm).succeeds("help")
            assertDaemonUsedJvm(otherJvm)
        }
    
        @Requires(IntegTestPreconditions.JavaHomeWithDifferentVersionAvailable)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/SingleUseDaemonIntegrationTest.groovy

            def otherJdk = AvailableJavaHomes.differentVersion
            writeJvmCriteria(otherJdk)
            captureJavaHome()
    
            when:
            withInstallations(otherJdk).succeeds()
    
            then:
            assertDaemonUsedJvm(otherJdk)
            wasForked()
            daemons.daemon.stops()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/plugin/devel/variants/TargetJVMVersionOnPluginTooNewFailureDescriberIntegrationTest.groovy

            when:
            projectDir(producer)
            withInstallations(currentJdk, otherJdk)
            executer.withJavaHome(higherVersion.javaHome)
            succeeds 'publish'
    
            then:
            pluginModule.assertPublished()
            pluginMarker.assertPublished()
            pluginModule.artifact([:]).assertPublished()
    
            when:
            projectDir(consumer)
            withInstallations(currentJdk, otherJdk)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 20:48:53 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  8. platforms/jvm/language-groovy/src/integTest/groovy/org/gradle/groovy/compile/AbstractToolchainGroovyCompileIntegrationTest.groovy

            Assume.assumeNotNull(jdk)
            Assume.assumeTrue(GroovyCoverage.supportsJavaVersion(MultiVersionIntegrationSpec.version, jdk.javaVersion))
    
            executer.beforeExecute {
                withInstallations(jdk)
            }
        }
    
        abstract Jvm computeJdkForTest()
    
        @Override
        String compilerConfiguration() {
            javaPluginToolchainVersion(jdk)
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 29 14:04:11 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/AbstractToolchainZincScalaCompileIntegrationTest.groovy

        Jvm jdk
    
        def setup() {
            jdk = computeJdkForTest()
            Assume.assumeNotNull(jdk)
            executer.beforeExecute {
                withInstallations(jdk)
            }
    
            configureJavaPluginToolchainVersion(jdk)
        }
    
        abstract Jvm computeJdkForTest()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonToolchainIntegrationTest.groovy

            given:
            def otherJvm = AvailableJavaHomes.differentVersion
            writeJvmCriteria(otherJvm)
            captureJavaHome()
    
            expect:
            withInstallations(otherJvm).succeeds("help")
            assertDaemonUsedJvm(otherJvm)
        }
    
        def "Given daemon toolchain criteria that doesn't match installed ones When executing any task Then fails with the expected message"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top