Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for withType (0.2 sec)

  1. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.code-quality.gradle.kts

                }
            }
        }
    }
    
    tasks.withType<JavaCompile>().configureEach {
        options.errorprone {
            disableWarningsInGeneratedCode = true
            allErrorsAsWarnings = true
        }
    }
    
    val codeQuality = tasks.register("codeQuality") {
        dependsOn(tasks.withType<CodeNarc>())
        dependsOn(tasks.withType<Checkstyle>())
        dependsOn(tasks.withType<ValidatePlugins>())
    }
    
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Jan 30 10:26:21 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. build.gradle.kts

      apply(plugin = "ru.vyarus.animalsniffer")
      apply(plugin = "biz.aQute.bnd.builder")
    
      tasks.withType<JavaCompile> {
        options.encoding = Charsets.UTF_8.toString()
      }
    
      configure<JavaPluginExtension> {
        toolchain {
          languageVersion.set(JavaLanguageVersion.of(17))
        }
      }
    
      tasks.withType<Checkstyle>().configureEach {
        exclude("**/CipherSuite.java")
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 18 01:32:42 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. build-logic/jvm/src/main/kotlin/gradlebuild/jvm/extension/StrictCompileExtension.kt

        fun ignoreDeprecations() {
            tasks.withType<JavaCompile>().configureEach {
                options.compilerArgs.add("-Xlint:-deprecation")
            }
        }
    
        fun ignoreRawTypes() {
            tasks.withType<JavaCompile>().configureEach {
                options.compilerArgs.add("-Xlint:-rawtypes")
            }
        }
    
        fun ignoreAnnotationProcessing() {
            tasks.withType<JavaCompile>().configureEach {
    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)
  4. build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts

        java.toolchain {
            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)
  5. build-logic/jvm/src/main/kotlin/gradlebuild.strict-compile.gradle.kts

    extensions.create<StrictCompileExtension>("strictCompile")
    
    val strictCompilerArgs = listOf("-Werror", "-Xlint:all", "-Xlint:-options", "-Xlint:-serial", "-Xlint:-classfile", "-Xlint:-try")
    
    tasks.withType<JavaCompile>().configureEach {
        // Generated classes may not adhere to the strict no-warning policy that we apply to handwritten code
        // For example, external JMH plugin generates code that produces compiler warnings
    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)
  6. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.build-logic.groovy-dsl-gradle-plugin.gradle.kts

    }
    
    tasks.withType<GroovyCompile>().configureEach {
        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 {
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Oct 03 15:32:00 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  7. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.build-logic.kotlin-dsl-gradle-plugin.gradle.kts

    java.configureJavaToolChain()
    
    dependencies {
        api(platform("gradlebuild:build-platform"))
        implementation("gradlebuild:gradle-plugin")
    
        testImplementation("org.junit.vintage:junit-vintage-engine")
    }
    
    tasks.withType<KotlinCompile>().configureEach {
        compilerOptions {
            allWarningsAsErrors = true
        }
    }
    
    ktlint {
        filter {
            exclude("gradle/kotlin/dsl/accessors/_*/**")
        }
    }
    
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Oct 03 15:32:00 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/build.gradle.kts

    projectTest(jUnitMode = JUnitMode.JUnit5) {
        dependsOn(":dist")
        workingDir = rootDir
        useJUnitPlatform()
    }.also { confugureFirPluginAnnotationsDependency(it) }
    
    testsJar()
    
    allprojects {
        tasks.withType<KotlinJvmCompile>().configureEach {
            compilerOptions.optIn.addAll(
                listOf(
                    "org.jetbrains.kotlin.fir.symbols.SymbolInternals",
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 05 16:42:25 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  9. build-logic/integration-testing/src/main/kotlin/gradlebuild.test-fixtures.gradle.kts

    javaComponent.withVariantsFromConfiguration(testFixturesRuntimeElements) {
        skip()
    }
    javaComponent.withVariantsFromConfiguration(testFixturesApiElements) {
        skip()
    }
    
    plugins.withType<IdeaPlugin> {
        configure<IdeaModel> {
            module {
                val testFixtures = sourceSets.testFixtures.get()
                testSources.from(testFixtures.java.srcDirs)
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Mon Feb 12 13:19:06 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  10. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.test-retry.gradle.kts

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    plugins {
        id("org.gradle.test-retry")
    }
    
    if (System.getenv().containsKey("CI")) {
        tasks.withType<Test>().configureEach {
            retry {
                maxRetries.set(2)
            }
        }
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Apr 26 06:43:17 GMT 2023
    - 810 bytes
    - Viewed (0)
Back to top