Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 12 for Java9 (0.07 seconds)

  1. build-logic/src/main/kotlin/okhttp.jvm-conventions.gradle.kts

    //configureJavaCompatibility(javaVersion = 8)
    
    configureKotlinCompatibility(version = version("kotlinCoreLibrariesVersion"))
    
    tasks.withType<JavaCompile> {
      options.encoding = Charsets.UTF_8.toString()
      if (name.contains("Java9")) {
        sourceCompatibility = "9"
        targetCompatibility = "9"
      } else {
        sourceCompatibility = "1.8"
        targetCompatibility = "1.8"
      }
    }
    
    tasks.withType<KotlinCompile> {
      compilerOptions {
    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)
  2. module-tests/src/test/java/okhttp3/modules/test/JavaModuleTest.java

      }
    
      @Test
      public void testMockWebServer() throws IOException {
        MockWebServer server = new MockWebServer();
        server.enqueue(new MockResponse(200, Headers.of(), "Hello, Java9!"));
        server.start();
    
        // Just check we can run code that depends on OkHttp types
        Call call = OkHttpCaller.callOkHttp(server.url("/"));
    
        try (Response response = call.execute();) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Sep 21 06:22:22 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  3. okhttp/build.gradle.kts

      val compilation = kotlin.targets["jvm"].compilations["main"]
      val compileKotlinTask = compilation.compileTaskProvider.get() as KotlinJvmCompile
      val targetDir = compileKotlinTask.destinationDirectory.dir("../java9")
      val sourceDir = file("src/jvmMain/java9/")
    
      // Use a Java 11 compiler for the module info.
      javaCompiler.set(project.javaToolchains.compilerFor { languageVersion.set(JavaLanguageVersion.of(11)) })
    
    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)
  4. build-logic/src/main/kotlin/JavaModules.kt

        val compileKotlinTask = tasks.getByName("compileKotlin") as KotlinJvmCompile
        dependsOn(compileKotlinTask)
    
        if (enableValidation) {
          compileKotlinTask.source(file("src/main/java9"))
        }
    
        // Ignore warnings about using 'requires transitive' on automatic modules.
        // not needed when compiling with recent JDKs, e.g. 17
        options.compilerArgs.add("-Xlint:-requires-transitive-automatic")
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 22:47:58 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  5. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/LoggerUsageTask.java

            return getProject().getExtensions().getByType(JavaPluginExtension.class)
                .getSourceSets()
                .stream()
                // Don't pick up all source sets like the java9 ones as logger-check doesn't support the class format
                .filter(
                    sourceSet -> sourceSet.getName().equals(SourceSet.MAIN_SOURCE_SET_NAME)
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jun 17 08:59:22 GMT 2021
    - 2.8K bytes
    - Click Count (0)
  6. android/guava-testlib/pom.xml

                    <arg>-XDignore.symbol.file</arg>
                  </compilerArgs>
                </configuration>
              </execution>
              <execution>
                <id>compile-java9</id>
                <phase>compile</phase>
                <goals>
                  <goal>compile</goal>
                </goals>
                <configuration>
                  <release>9</release>
                  <compileSourceRoots>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 29 17:59:17 GMT 2025
    - 5K bytes
    - Click Count (0)
  7. guava-testlib/pom.xml

                    <arg>-XDignore.symbol.file</arg>
                  </compilerArgs>
                </configuration>
              </execution>
              <execution>
                <id>compile-java9</id>
                <phase>compile</phase>
                <goals>
                  <goal>compile</goal>
                </goals>
                <configuration>
                  <release>9</release>
                  <compileSourceRoots>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 29 17:59:17 GMT 2025
    - 5K bytes
    - Click Count (0)
  8. futures/failureaccess/pom.xml

                    <arg>-sourcepath</arg>
                    <arg>doesnotexist</arg>
                  </compilerArgs>
                </configuration>
              </execution>
              <execution>
                <id>compile-java9</id>
                <goals>
                  <goal>compile</goal>
                </goals>
                <configuration>
                  <release>9</release>
                  <compileSourceRoots>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 02 19:27:26 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  9. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/Jdk.java

            Matcher jdkVersionMatcher = VERSION_PATTERN.matcher(version);
            if (jdkVersionMatcher.matches() == false) {
                // Try again with the pre-Java9 version format
                jdkVersionMatcher = LEGACY_VERSION_PATTERN.matcher(version);
    
                if (jdkVersionMatcher.matches() == false) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 27 19:29:10 GMT 2021
    - 6.8K bytes
    - Click Count (0)
  10. guava/pom.xml

                    <arg>-XDignore.symbol.file</arg>
                  </compilerArgs>
                </configuration>
              </execution>
              <execution>
                <id>compile-java9</id>
                <phase>compile</phase>
                <goals>
                  <goal>compile</goal>
                </goals>
                <configuration>
                  <release>9</release>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Nov 17 21:36:50 GMT 2025
    - 9.6K bytes
    - Click Count (0)
Back to Top