Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 22 for JavaVersion (0.22 seconds)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/LinkRenderer.java

        private final String groovyVersion;
        private final String javaVersion;
    
        public LinkRenderer(Document document, DslDocModel model, String groovyVersion, String javaVersion) {
            this.document = document;
            this.model = model;
            this.groovyVersion = groovyVersion;
            this.javaVersion = javaVersion;
            primitiveTypes.add("boolean");
            primitiveTypes.add("byte");
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed May 21 06:20:45 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  2. okcurl/build.gradle.kts

      manifest {
        attributes("Main-Class" to "okhttp3.curl.MainCommandLineKt")
      }
    }
    
    tasks.shadowJar {
      mergeServiceFiles()
    }
    
    tasks.withType<Test> {
      val javaVersion = project.testJavaVersion
      onlyIf("native build requires Java 17") {
        javaVersion > 17
      }
    }
    
    apply(plugin = "org.graalvm.buildtools.native")
    
    configure<GraalVMExtension> {
      binaries {
        named("main") {
          imageName = "okcurl"
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/util/JvmUtil.java

         */
        public static int getJavaVersion() {
            final String javaVersion = System.getProperty("java.version");
            int version = 8;
            if (javaVersion != null) {
                final String[] split = javaVersion.split("[\\._]");
                if (split.length > 0) {
                    version = Integer.parseInt(split[0]);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  4. okhttp-osgi-tests/build.gradle.kts

    }
    
    dependencies {
      osgiTestDeploy(libs.eclipse.osgi)
      osgiTestDeploy(libs.kotlin.stdlib.osgi)
    }
    
    tasks.withType<Test> {
      dependsOn(copyOsgiTestDeployment)
      val javaVersion = project.testJavaVersion
      onlyIf("Tests require JDK 17") {
        javaVersion >= 17
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  5. build-logic/src/main/kotlin/AlpnVersions.kt

     */
    fun alpnBootVersion(): String? {
      val version = System.getProperty("alpn.boot.version")
    
      if (version != null) {
        return version
      }
    
      val javaVersion = System.getProperty("java.version")
      val match = "1\\.8\\.0_(\\d+)(-.*)?".toRegex().find(javaVersion) ?: return null
    
      return alpnBootVersionForPatchVersion(match.groupValues.first().toInt())
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 01 16:35:35 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  6. okhttp/build.gradle.kts

      // because the JDK built-in base modules are not available in earlier versions.
      val javaVersion = compileKotlinTask.kotlinJavaToolchain.javaVersion.getOrNull()
      when {
        javaVersion?.isJava9Compatible == true -> {
          logger.info("Module-info checking is enabled; $compileKotlinTask is compiled using Java $javaVersion")
          // Disabled as this module can't see the others in this build for some reason
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Feb 04 22:16:39 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

      public void testLazyStackTraceWorksInProd() {
        // TODO(b/64442212): Remove this guard once lazyStackTrace() works in Java 9+.
        Integer javaVersion = Ints.tryParse(JAVA_SPECIFICATION_VERSION.value());
        if (javaVersion != null && javaVersion >= 9) {
          return;
        }
        // Obviously this isn't guaranteed in every environment, but it works well enough for now:
        assertTrue(lazyStackTraceIsLazy());
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 15K bytes
    - Click Count (0)
  8. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildEnvironment.kt

            CODEQL_ENVIRONMENT_VARIABLES.any { it in System.getenv() }
        }
        val jvm = org.gradle.internal.jvm.Jvm.current()
        val javaVersion = JavaVersion.current()
        val isWindows = OperatingSystem.current().isWindows
        val isLinux = OperatingSystem.current().isLinux
        val isMacOsX = OperatingSystem.current().isMacOsX
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 25 08:51:12 GMT 2026
    - 4.9K bytes
    - Click Count (1)
  9. build-logic/src/main/kotlin/okhttp.jvm-conventions.gradle.kts

    extensions.configure<JavaPluginExtension> {
      toolchain {
        languageVersion.set(JavaLanguageVersion.of(21))
      }
    }
    
    // Introduce in a separate change
    //configureJavaCompatibility(javaVersion = 8)
    
    configureKotlinCompatibility(version = version("kotlinCoreLibrariesVersion"))
    
    tasks.withType<JavaCompile> {
      options.encoding = Charsets.UTF_8.toString()
      if (name.contains("Java9")) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Feb 09 14:40:26 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/base/ThrowablesTest.java

      public void testLazyStackTraceWorksInProd() {
        // TODO(b/64442212): Remove this guard once lazyStackTrace() works in Java 9+.
        Integer javaVersion = Ints.tryParse(JAVA_SPECIFICATION_VERSION.value());
        if (javaVersion != null && javaVersion >= 9) {
          return;
        }
        // Obviously this isn't guaranteed in every environment, but it works well enough for now:
        assertTrue(lazyStackTraceIsLazy());
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 15K bytes
    - Click Count (0)
Back to Top