Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 497 for buildFile (0.14 sec)

  1. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentModelIntegrationTest.groovy

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

            annotationProcessorPublisher.publishedPomFile.isFile()
    
            when:
            buildFile << basicScalaProject()
            buildFile << annotationProcessorDependency(annotationProcessorPublisher.repoDir, annotationProcessorPublisher.dependencyCoordinates)
            buildFile << """
                configurations.annotationProcessor.extendsFrom configurations.compileOnly
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/GeneratedSourcesIntegrationTest.groovy

            mainSources*.writeToDir(file("src/main"))
            asmSources*.writeToDir(file("src/input"))
            degenerateInputSources()
    
            when:
            buildFile << app.pluginScript
            buildFile << app.extraConfiguration
            buildFile << """
    task generateAsmSources(type: GenerateSources) {
        inputDir project.file("src/input")
        sourceDir project.file("build/src/generated/asm")
    }
    
    model {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelGroovyScalarConfigurationIntegrationTest.groovy

                    }
                }
            }
    
            apply type: RulePlugin
            '''
    
        void 'only CharSequence input values are supported - #varname'() {
            when:
            buildFile << CLASSES
            buildFile << """
                model {
                    props {
                        $varname = new Object()
                    }
                }
                """
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/state/TaskCustomTypesInputPropertyIntegrationTest.groovy

            when:
            run "someTask"
    
            then:
            skipped(":someTask")
        }
    
        def "can use null value for task input property"() {
            buildFile << customSerializableType()
            buildFile << customTaskType()
    
            buildFile << """
    task someTask(type: SomeTask) {
        v = null
        f = file("build/out")
    }
    """
    
            given:
            run "someTask"
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 22 16:04:50 UTC 2022
    - 9.9K bytes
    - Viewed (0)
  6. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildDependencyCycleIntegrationTest.groovy

        def setup() {
            resolve = new ResolveTestFixture(buildA.buildFile)
    
            buildA.buildFile << """
                task resolveArtifacts(type: Copy) {
                    from configurations.compileClasspath
                    into 'libs'
                }
            """
    
            buildB = multiProjectBuild("buildB", ['b1', 'b2']) {
                buildFile << """
                    allprojects {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 01 20:36:42 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  7. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentBinariesIntegrationTest.groovy

                    sampleLibOtherBinary()
                }
            }
        }
    
        def "can register binaries using @ComponentBinaries rule"() {
            when:
            buildFile << withSimpleComponentBinaries()
            buildFile << '''
    
            model {
                tasks {
                    checkModel(Task) {
                        doLast {
                            def binaries = $.binaries
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/BinaryConfigurationIntegrationTest.groovy

            where:
            linkage << ["static", "shared"]
        }
    
        @Issue("GRADLE-3332")
        @NotYetImplemented
        def "can create helper task to install buildable executables"() {
            def helloWorldApp = new CppHelloWorldApp()
            given:
            buildFile << '''
    apply plugin: 'cpp'
    
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
    task installDeveloperImage {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocIntegrationTest.groovy

            buildFile << """
                javadoc {
                    options.stylesheetFile = file('src/not-docs/custom.css')
                }
            """
            succeeds("javadoc")
            then:
            skipped(":javadoc")
        }
    
        def "can exclude a package by source path"() {
            buildFile << """
                plugins {
                    id 'java'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 06:04:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedCustomTaskExecutionIntegrationTest.groovy

            given:
            file("input.txt") << "data"
            buildFile << adHocTaskWithInputs()
    
            expect:
            taskIsNotCached ':adHocTask'
        }
    
        def "ad hoc tasks are cached when explicitly requested"() {
            given:
            file("input.txt") << "data"
            buildFile << adHocTaskWithInputs()
            buildFile << 'adHocTask { outputs.cacheIf { true } }'
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top