Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for withInstallations (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginToolchainsIntegrationTest.groovy

            outputContains("Running pmd with toolchain '${Jvm.current().javaHome.absolutePath}'.")
        }
    
        Jvm setupExecutorForToolchains() {
            Jvm jdk = AvailableJavaHomes.getDifferentVersion()
            withInstallations(jdk)
            return jdk
        }
    
        private void writeBuildFile() {
            buildFile << """
                plugins {
                    id 'groovy'
                    id 'java'
                    id 'pmd'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 07:47:10 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. testing/public-api-tests/src/integTest/groovy/org/gradle/api/PublicApiIntegrationTest.groovy

        def kotlinVersion = System.getProperty("integTest.kotlinVersion")
    
        def setup() {
            executer.beforeExecute {
                args("-Dorg.gradle.unsafe.suppress-gradle-api=true")
                withInstallations(jvm)
            }
    
            file("src/test/java/org/example/PublishedApiTestPluginTest.java") << pluginTestJava()
        }
    
        def "can compile Java code against public API"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 08:43:08 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileProblemsIntegrationTest.groovy

            generator.addWarning()
            generator.save()
            possibleFileLocations.put(generator.sourceFile.absolutePath, 1)
    
            when:
            executer.withArguments("--info")
            withInstallations(AvailableJavaHomes.getJdk(JavaVersion.VERSION_1_8))
            succeeds(":compileJava")
    
            then:
            outputContains(DiagnosticToProblemListener.FORMATTER_FALLBACK_MESSAGE)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:15:29 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestExecutionIntegrationTest.groovy

        def "test can install an irreplaceable SecurityManager"() {
            given:
            executer
                .withStackTraceChecksDisabled()
                .withToolchainDetectionEnabled()
            withInstallations(AvailableJavaHomes.getAvailableJvms())
            buildFile << """
                plugins {
                    id("java")
                }
                ${javaPluginToolchainVersion(11)}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top