Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for compilerArgs (0.29 sec)

  1. build-logic/jvm/src/main/kotlin/gradlebuild/jvm/extension/StrictCompileExtension.kt

                options.compilerArgs.add("-Xlint:-deprecation")
            }
        }
    
        fun ignoreRawTypes() {
            tasks.withType<JavaCompile>().configureEach {
                options.compilerArgs.add("-Xlint:-rawtypes")
            }
        }
    
        fun ignoreAnnotationProcessing() {
            tasks.withType<JavaCompile>().configureEach {
                options.compilerArgs.add("-Xlint:-processing")
            }
        }
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Thu Feb 22 11:17:19 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  2. build-logic/jvm/src/main/kotlin/gradlebuild/jvm/extension/UnitTestAndCompileExtension.kt

            enforceCompatibility(7)
        }
    
        private
        fun enforceCompatibility(majorVersion: Int) {
            tasks.withType<JavaCompile>().configureEach {
                options.release = null
                options.compilerArgs.remove("-parameters")
                sourceCompatibility = "$majorVersion"
                targetCompatibility = "$majorVersion"
            }
            // Apply ParameterNamesIndex since 6 doesn't support -parameters
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Tue Jun 20 08:55:37 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  3. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.build-logic.groovy-dsl-gradle-plugin.gradle.kts

        groovyOptions.apply {
            encoding = "utf-8"
            forkOptions.jvmArgs?.add("-XX:+HeapDumpOnOutOfMemoryError")
        }
        options.apply {
            isFork = true
            encoding = "utf-8"
            compilerArgs = mutableListOf("-Xlint:-options", "-Xlint:-path")
        }
    }
    
    tasks.withType<Test>().configureEach {
        if (JavaVersion.current().isJava9Compatible) {
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Oct 03 15:32:00 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  4. build-logic/jvm/src/main/kotlin/gradlebuild.strict-compile.gradle.kts

        // For example, external JMH plugin generates code that produces compiler warnings
        if (!name.contains("CompileGeneratedClasses")) {
            options.compilerArgs.addAll(strictCompilerArgs)
        }
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Fri Dec 15 20:21:31 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  5. build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts

            languageVersion = JavaLanguageVersion.of(11)
            vendor = JvmVendorSpec.ADOPTIUM
        }
    
        tasks.withType<JavaCompile>().configureEach {
            configureCompileTask(options)
            options.compilerArgs.add("-parameters")
        }
        tasks.withType<GroovyCompile>().configureEach {
            groovyOptions.encoding = "utf-8"
            sourceCompatibility = "1.8"
            targetCompatibility = "1.8"
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Wed Jan 17 13:36:27 GMT 2024
    - 15.7K bytes
    - Viewed (0)
Back to top