Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for TargetJdk (0.15 sec)

  1. platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/PmdPlugin.java

            conventionMappingOf(extension).map("targetJdk", () ->
                getDefaultTargetJdk(getJavaPluginExtension().getSourceCompatibility()));
            return extension;
        }
    
        public TargetJdk getDefaultTargetJdk(JavaVersion javaVersion) {
            try {
                return TargetJdk.toVersion(javaVersion.toString());
            } catch (IllegalArgumentException ignored) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 18:07:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestTaskToolchainIntegrationTest.groovy

                configureJavaPluginToolchainVersion(selectJdk(withJavaExtension))
            }
    
            def targetJdk = selectJdk(target)
    
            when:
            withInstallations(currentJdk, otherJdk).run(":test", "--info")
    
            then:
            executedAndNotSkipped(":test")
            outputContains("Tests running with ${targetJdk.javaHome.absolutePath}")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 06:04:19 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecToolchainIntegrationTest.groovy

                configureJavaPluginToolchainVersion(selectJdk(withJavaExtension))
            }
    
            def targetJdk = selectJdk(target)
    
            when:
            withInstallations(currentJdk, otherJdk).run(":run")
    
            then:
            executedAndNotSkipped(":run")
            outputContains("App running with ${targetJdk.javaHome.absolutePath}")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginToolchainsIntegrationTest.groovy

                    pmdClasspath = pmdFileCollection
                    ruleSetFiles = files()
                    ruleSets = ["category/java/errorprone.xml"]
                    rulesMinimumPriority = 5
                    targetJdk = TargetJdk.VERSION_1_4
                    threads = 1
                    incrementalAnalysis = false
                }
            """
    
            when:
            succeeds("myPmd")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 07:47:10 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. platforms/jvm/language-groovy/src/integTest/groovy/org/gradle/groovy/compile/GroovyCompileToolchainIntegrationTest.groovy

            }
            if (withJavaExtension != null) {
                configureJavaPluginToolchainVersion(selectJdk(withJavaExtension))
            }
    
            def targetJdk = selectJdk(target)
            def groovyTarget = GroovyCoverage.getEffectiveTarget(versionNumber, targetJdk.javaVersion)
    
            when:
            withInstallations(currentJdk, otherJdk).run(":compileGroovy", "--info")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 17:37:16 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileToolchainIntegrationTest.groovy

            }
    
            def targetJdk = selectJdk(target)
    
            when:
            withInstallations(currentJdk, otherJdk).run(":compileJava", "--info")
    
            then:
            executedAndNotSkipped(":compileJava")
            outputContains("Compiling with toolchain '${targetJdk.javaHome.absolutePath}'")
            classJavaVersion(javaClassFile("Foo.class")) == targetJdk.javaVersion
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  7. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/ScalaCompileJavaToolchainIntegrationTest.groovy

            }
    
            def targetJdk = selectJdk(target)
    
            when:
            withInstallations(currentJdk, otherJdk).run(":compileScala", "--info")
    
            then:
            executedAndNotSkipped(":compileScala")
            outputContains("Compiling with Zinc Scala compiler")
    
            JavaVersion.forClass(scalaClassFile("JavaThing.class").bytes) == targetJdk.javaVersion
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 03:32:33 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

                testing.suites.test.useJUnit()
    
                pmd {
                    toolVersion = '$version'
                    // Set target JDK for PMD <5.x tests, so the test code is accepted
                    targetJdk = TargetJdk.VERSION_1_7
                    ${supportIncrementalAnalysis() ? "" : "incrementalAnalysis = false"}
                }
    
                ${fileLockingIssuesSolved() ? "" : """
                tasks.withType(Pmd) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiClientJdkCompatibilityTest.groovy

                }
    
                def requestedGradleVersion = project.findProperty("gradleVersion")
                def requestedTargetJdk = project.findProperty("targetJdk")
    
                // Earlier versions of Gradle can sometimes fail to connect to the just started Gradle daemon.
                // The failure will be the "tried to connect to 100 daemons" error
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  10. okhttp-android/build.gradle.kts

        buildFeatures {
          buildConfig = false
        }
    
        testOptions {
          unitTests {
            isIncludeAndroidResources = true
          }
    
          targetSdk = 34
        }
      }
    
      compileOptions {
        targetCompatibility(JavaVersion.VERSION_11)
        sourceCompatibility(JavaVersion.VERSION_11)
      }
    
      kotlinOptions {
        jvmTarget = JavaVersion.VERSION_11.toString()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top