Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 497 for buildFile (0.15 sec)

  1. platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/idea/IdeaJavaLanguageSettingsIntegrationTest.groovy

    rootProject.name = 'root'
    include ':child1', ':child2', ':child3'
    """
        }
    
        @ToBeFixedForConfigurationCache
        void "global sourceCompatibility results in project language level"() {
            given:
            buildFile << """
    allprojects {
        apply plugin:'idea'
        apply plugin:'java'
    
        java.sourceCompatibility = "1.7"
    }
    """
            when:
            succeeds "idea"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/versions/AbstractRichVersionConstraintsIntegrationTest.groovy

        void "can declare a strict dependency onto an external component"() {
            given:
            repository {
                'org:foo:1.0'()
            }
    
            buildFile << """
                dependencies {
                    conf('org:foo:1.0!!')
                }
            """
    
            when:
            repositoryInteractions {
                'org:foo:1.0' {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 15:37:32 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/ObjectExtensionInstantiationIntegrationTest.groovy

    class ObjectExtensionInstantiationIntegrationTest extends AbstractIntegrationSpec {
        // Document current behaviour
        def "can create instance of extension with multiple constructors without @Inject annotation"() {
            buildFile """
                class Thing {
                    String a
                    String b
                    Thing(String a, String b = a) {
                        this.a = a
                        this.b = b
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 16.9K bytes
    - Viewed (0)
  4. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorParallelIntegrationTest.groovy

            withMultipleActionTaskTypeInBuildScript()
        }
    
        def "multiple work items can be executed in parallel in #isolationMode (wait for results: #waitForResults)"() {
            given:
            buildFile << """
                task parallelWorkTask(type: MultipleWorkItemTask) {
                    isolationMode = '$isolationMode'
                    doLast {
                        submitWorkItem("workItem0")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  5. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorParametersIntegrationTest.groovy

    import static org.gradle.workers.fixtures.WorkerExecutorFixture.ISOLATION_MODES
    
    class WorkerExecutorParametersIntegrationTest extends AbstractIntegrationSpec {
        def setup() {
            buildFile << """
                import org.gradle.workers.WorkerExecutor
    
                class ParameterTask extends DefaultTask {
                    private final WorkerExecutor workerExecutor
    
                    @Internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  6. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentPluginIntegrationTest.groovy

        def "setup"() {
            buildFile << """
    @Managed
    interface SampleComponent extends ComponentSpec {
        String getVersion()
        void setVersion(String version)
    }
    """
        }
    
        def "plugin declares custom component"() {
            when:
            buildWithCustomComponentPlugin()
    
            and:
            buildFile << '''
    model {
        tasks {
            create("checkModel") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/TaskCacheabilityReasonIntegrationTest.groovy

            buildFile << """
                task unspecified(type: UnspecifiedCacheabilityTask) {}
            """
            when:
            withBuildCache().run "unspecified"
            then:
            assertCachingDisabledFor NOT_ENABLED_FOR_TASK, "Caching has not been enabled for the task"
        }
    
        def "cacheability for a cacheable task is null"() {
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:59:01 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/DynamicObjectIntegrationTest.groovy

            buildFile """
                unknown(12, "things")
            """
    
            expect:
            fails()
            failure.assertHasLineNumber(2)
            failure.assertHasCause("Could not find method unknown() for arguments [12, things] on root project 'test' of type ${Project.name}.")
        }
    
        def failsWhenGettingUnknownPropertyOnTask() {
            buildFile """
                task p
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskErrorExecutionIntegrationTest.groovy

            }
        }
    
        def "reports task action execution fails with error"() {
            buildFile << """
                task('do-stuff').doFirst {
                    throw new ArithmeticException('broken')
                }
            """
            expect:
            fails "do-stuff"
    
            failure.assertHasFileName(String.format("Build file '%s'", buildFile))
            failure.assertHasLineNumber(3)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/plugins/TestSuiteModelIntegrationSpec.groovy

        void withMainSourceSet() {
            buildFile << """
                model {
                    testSuites {
                        main {
                            sources {
                                main(CustomLanguageSourceSet)
                            }
                        }
                    }
                }
            """
        }
    
        void withTestBinaryFactory() {
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top