Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 388 for buildFile (0.25 sec)

  1. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/MultiProjectJvmApplicationInitIntegrationTest.groovy

            then:
            targetDir.file(settingsFile).exists()
            !targetDir.file(buildFile).exists()
    
            def buildLogicDir = targetDir.file(incubating ? "build-logic" : "buildSrc")
            assertBuildLogicSources(dsl, language, buildLogicDir, settingsFile, buildFile, javaMajorVersion)
    
            assertApplicationProjectsSources(buildFile, language, "org.example.", ext)
    
            when:
            succeeds "build"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

            buildFile """
                interface Thing extends Named { }
    
                def t = objects.newInstance(Thing, "thingName")
                assert t.name == "thingName"
    """
    
            expect:
            succeeds()
        }
    
        def "plugin can create instance of abstract class with name property"() {
            buildFile """
                abstract class Thing {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r30/ToolingApiEclipseModelClasspathContainerCrossVersionSpec.groovy

            when:
            EclipseProject project = loadToolingModel(EclipseProject)
    
            then:
            project.classpathContainers.isEmpty()
        }
    
        def "Project has some classpath containers"() {
            buildFile <<
            """apply plugin: 'java'
               apply plugin: 'eclipse'
               eclipse {
                   classpath {
                       containers 'containerPath1', 'containerPath2'
                   }
               }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerMiscEndUserIntegrationTest.groovy

        }
    
        def "can use GradleRunner to test"() {
            when:
            buildFile << gradleTestKitDependency()
            file("src/test/groovy/Test.groovy") << successfulSpockTest('Test')
    
            then:
            succeeds 'build'
        }
    
        def "can use GradleRunner to test concurrently"() {
            when:
            buildFile << gradleTestKitDependency() << """
                test {
                    maxParallelForks = 3
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/codenarc/CodeNarcPluginIntegrationTest.groovy

            succeeds(":child:grand:codenarcMain")
            report(file("child/grand"), "main").exists()
        }
    
        private void writeBuildFile() {
            writeBuildFile(buildFile)
        }
    
        private static void writeBuildFile(File buildFile) {
            buildFile << """
                apply plugin: "groovy"
                apply plugin: "codenarc"
    
                ${mavenCentralRepository()}
    
                dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 08:01:57 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/FinalizerTaskIntegrationTest.groovy

    import static org.gradle.integtests.fixtures.executer.TaskOrderSpecs.exact
    
    class FinalizerTaskIntegrationTest extends AbstractIntegrationSpec {
        def setup() {
            buildFile '''
                class BreakingTask extends DefaultTask {
                    @TaskAction
                    def run() {}
                }
    
                tasks.withType(BreakingTask).configureEach { t ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  10. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/AbstractJavaCompilerIntegrationSpec.groovy

        def setup() {
            executer.withArguments("-i")
            buildFile << """
                plugins {
                    id("java-library")
                }
                tasks.withType(JavaCompile) {
                    options.compilerArgs << '-Xlint:all,-options' << '-Werror'
                }
            """
            buildFile << compilerConfiguration()
        }
    
        def "can compile good code"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 01 01:34:12 UTC 2024
    - 27.4K bytes
    - Viewed (0)
Back to top