Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,813 for buildFile (0.18 sec)

  1. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/jpms/execution/JavaModuleExecutionIntegrationTest.groovy

                }
            """
        }
    
        def "runs a module using the module path with the application plugin"() {
            given:
            buildFile.text = buildFile.text.replace('java-library', 'application')
            buildFile << """
                application {
                    mainClass.set('consumer.MainModule')
                    mainModule.set('consumer')
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeSoftwareModelParallelIntegrationTest.groovy

            withComponentsForAppAndLib("shared")
        }
    
        def withComponentsForAppAndLib(String libType) {
            buildFile << app.pluginScript
            buildFile << app.getExtraConfiguration("mainExecutable")
            buildFile << app.getExtraConfiguration("mainLib${libType.capitalize()}Library")
            buildFile << """
                model {
                    components {
                        main(NativeExecutableSpec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. platforms/software/plugins-version-catalog/src/integTest/groovy/org/gradle/catalog/VersionCatalogIntegrationTest.groovy

            buildFile << """
                plugins {
                    id("version-catalog")
                }
            """
            withSampleCatalog()
    
            when:
            succeeds ':generateCatalogAsToml'
    
            then:
            expectPlatformContents 'expected1'
        }
    
        def "assemble task generates platform file"() {
            buildFile << """
                plugins {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 16 12:28:14 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  4. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildPluginDevelopmentIntegrationTest.groovy

                    }
                """ + build.buildFile.text
            } else if (pluginsBlock) {
                build.buildFile.text = """
                    plugins {
                        id 'org.test.plugin.pluginBuild'
                    }
                """ + build.buildFile.text
            } else if (withVersion) {
                build.buildFile << """
                    buildscript {
                        dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 13:37:31 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaAnnotationProcessingIntegrationTest.groovy

            given:
            buildFile << """
                dependencies {
                    compileOnly project(":annotation")
                    annotationProcessor project(":processor")
                }
            """
            [buildFile, annotationProjectDir.file("build.gradle"), processorProjectDir.file("build.gradle")].each { buildFile ->
                buildFile << """
                    compileJava {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDefinitionIntegrationTest.groovy

            given:
            buildFile << CUSTOM_TASK_WITH_CONSTRUCTOR_ARGS
            buildFile << "tasks.create('myTask', CustomTask, 'hello', 42)"
    
            when:
            run 'myTask'
    
            then:
            outputContains("hello 42")
        }
    
        def "can construct a custom task with constructor arguments as #description via Map"() {
            given:
            buildFile << CUSTOM_TASK_WITH_CONSTRUCTOR_ARGS
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 14:43:53 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  7. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskExecutionIntegrationTest.groovy

    class TaskExecutionIntegrationTest extends AbstractIntegrationSpec implements TasksWithInputsAndOutputs {
    
        @UnsupportedWithConfigurationCache
        def taskCanAccessTaskGraph() {
            buildFile << """
                boolean notified = false
                task a(dependsOn: 'b') {
                    doLast { task ->
                        assert notified
                        assert gradle.taskGraph.hasTask(task)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/project/ProjectFactoryTest.groovy

        }
    
        def "creates a project with build script"() {
            def buildFile = tmpDir.createFile("build.gradle")
            def projectDir = tmpDir.createFile("project")
    
            given:
            projectDescriptor.name >> "name"
            projectDescriptor.projectDir >> projectDir
            projectDescriptor.buildFile >> buildFile
            gradle.projectRegistry >> projectRegistry
            gradle.services >> serviceRegistry
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jul 06 10:41:06 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioSoftwareModelSingleProjectIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache
        def "only create visual studio projects for buildable binaries"() {
            when:
            app.library.writeSources(file("src/both"))
            app.library.writeSources(file("src/staticOnly"))
            settingsFile << """
                rootProject.name = 'app'
            """
            buildFile << """
                model {
                    components {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 35.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/ModelMapDslIntegrationTest.groovy

        def setup() {
            buildFile << '''
    @Managed
    interface Thing {
        String getValue()
        void setValue(String v)
    }
    
    class MyPlugin extends RuleSource {
        @Model
        void things(ModelMap<Thing> things) { }
    }
    
    apply plugin: MyPlugin
    '''
        }
    
        def "nested create rule is executed only as required"() {
            buildFile << '''
    model {
        tasks {
            show(Task) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.9K bytes
    - Viewed (0)
Back to top