Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,967 for buildFile (0.22 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskConfigurationIntegrationTest.groovy

    import spock.lang.Issue
    
    class DeferredTaskConfigurationIntegrationTest extends AbstractDeferredTaskDefinitionIntegrationTest {
        def "build logic can configure each task only when required"() {
            buildFile << '''
                tasks.register("task1", SomeTask).configure {
                    println "Configure ${path}"
                }
                tasks.named("task1").configure {
                    println "Configure again ${path}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/DuplicateBaseNamesIntegrationTest.groovy

            given:
            def testApp = initTestApp(testAppType)
    
            when:
            testApp.writeSources(file("src/main"))
            buildFile.text = ""
            testApp.plugins.each { plugin ->
                buildFile << "apply plugin: '$plugin'\n"
            }
    
            buildFile << """
    model {
        platforms {
            x86 {
                architecture "i386"
            }
        }
        components {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIntegrationTest.groovy

            [ firstCopy, secondCopy ].each { projectDir ->
                projectDir.file("settings.gradle").touch()
                def buildFile = projectDir.file("build.gradle")
                buildFile << helloWorldApp.pluginScript
                buildFile << helloWorldApp.extraConfiguration
                buildFile << """
                model {
                    components {
                        main(NativeExecutableSpec)
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/suppliers/CustomVersionListerIntegrationTest.groovy

            withLister([testA: [1, 2, 3]])
            given:
            repository {
                'org:testA:1'()
                'org:testA:2'()
                'org:testA:3'()
            }
            buildFile << """
                dependencies {
                    conf "org:testA:+"
                }
            """
    
            when:
            repositoryInteractions {
                'org:testA:3' {
                    expectResolve()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  5. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildNestedBuildLookupIntegrationTest.groovy

            given:
            def buildC = singleProjectBuild("buildC") {
                buildFile << """
                    assert gradle.includedBuilds.empty
                """
                validationTask(buildFile, "broken1", """
                    assert gradle.includedBuilds.empty
                    gradle.includedBuild("buildA")
                """)
                validationTask(buildFile, "broken2", """
                    assert gradle.includedBuilds.empty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 06 08:15:28 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/r54/AccessorsClassPathModelCrossVersionSpec.groovy

            withDefaultSettings()
            def buildFile = withBuildScript("plugins {\n${plugins.join("\n")}\n}")
            def classFilePath = accessorsClassFor(buildFile).toPath()
            return projectDir.toPath().relativize(classFilePath).toFile()
        }
    
        private File accessorsClassFor(File buildFile) {
            return classPathFor(projectDir, buildFile)
                .tap { println(it) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentSourcesIntegrationTest.groovy

        def "setup"() {
            withCustomComponentType()
            withCustomLanguageType()
            buildFile << """
                model {
                    components {
                        main(CustomComponent)
                    }
                }
            """
        }
    
        void withMainSourceSet() {
            buildFile << """
                model {
                    components {
                        main {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  8. platforms/jvm/language-groovy/src/integTest/groovy/org/gradle/groovy/GroovyDocOptionsIntegrationTest.groovy

            when:
            buildFile << "groovydoc {}"
            run "groovydoc"
    
            then:
            def doc = file('build/docs/groovydoc/DefaultPackage/Script.html')
            doc.exists()
            doc.text =~ GROOVY_DOC_MAIN_PATTERN
        }
    
        def "scripts can be disabled"() {
            assumeTrue(supportsScriptsInGroovydoc())
            when:
            buildFile << "groovydoc { processScripts = false }"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/VariantAwareResolutionWithConfigurationAttributesIntegrationTest.groovy

        }
    
        private static File withVariants(File buildFile) {
            buildFile << 'apply plugin: "java"\n'
            buildFile << 'apply plugin: VariantsPlugin\n'
            buildFile
        }
    
        private static File withExternalDependencies(File buildFile, String dependenciesBlock) {
            buildFile << """
                ${mavenCentralRepository()}
                dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  10. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

            goodCode()
            buildFile << """
            pmdMain {
                rulesMinimumPriority = 11
            }
    """
            expect:
            fails("check")
            failure.assertHasCause("Invalid rulesMinimumPriority '11'.  Valid range 1 (highest) to 5 (lowest).")
        }
    
        def "can configure reporting"() {
            goodCode()
            buildFile << """
                pmdMain {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top