Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,811 for buildFile (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomManagedBinaryIntegrationTest.groovy

        def "setup"() {
            buildFile << """
    @Managed
    interface SampleBinary extends BinarySpec {
        String getVersion()
        void setVersion(String version)
    }
    """
        }
    
        def "custom managed binary type can be registered and created"() {
            when:
            buildWithCustomBinaryPlugin()
    
            and:
            buildFile << '''
    model {
        tasks {
            checkModel(Task) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/resolve/ResolveFailureTestFixture.groovy

     */
    class ResolveFailureTestFixture {
        String config
        private final TestFile buildFile
    
        ResolveFailureTestFixture(TestFile buildFile, String config = "compile") {
            this.buildFile = buildFile
            this.config = config
        }
    
        void prepare(String config = this.config) {
            buildFile << """
                allprojects {
                    tasks.register("checkDeps") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/maven/MavenS3SnapshotRepoIntegrationTest.groovy

            module = getMavenS3Repo().module("org.gradle", "test", artifactVersion)
        }
    
        def "resolves a maven snapshot module stored in S3"() {
            setup:
            module.publish()
    
            buildFile << mavenAwsRepoDsl()
            buildFile << """
    configurations { compile }
    
    dependencies{
        compile 'org.gradle:test:1.45-SNAPSHOT'
    }
    
    task retrieve(type: Sync) {
        from configurations.compile
        into 'libs'
    }
    """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/GradleImplDepsCompatibilityIntegrationTest.groovy

        }
    
        def "Gradle API and TestKit are compatible regardless of order #dependencyPermutations"() {
            when:
            buildFile << applyGroovyPlugin()
            buildFile << mavenCentralRepository()
            buildFile << """
                testing {
                    suites {
                        test {
                            useSpock()
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  8. 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)
  9. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/codenarc/CodeNarcPluginVersionIntegrationTest.groovy

    @Requires(UnitTestPreconditions.StableGroovy)
    class CodeNarcPluginVersionIntegrationTest extends MultiVersionIntegrationSpec implements CodeNarcTestFixture {
        def setup() {
            buildFile << """
                apply plugin: "groovy"
                apply plugin: "codenarc"
    
                ${mavenCentralRepository()}
    
                codenarc {
                    toolVersion = '${version}'
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskPropertiesIntegrationTest.groovy

    class TaskPropertiesIntegrationTest extends AbstractIntegrationSpec {
        def "can define task with abstract read-only Property<T> property"() {
            given:
            buildFile << """
                abstract class MyTask extends DefaultTask {
                    @Internal
                    abstract Property<Integer> getCount()
    
                    @TaskAction
                    void go() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top