Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 466 for buildFile (0.22 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/versions/VersionConflictResolutionIntegrationTest.groovy

            mavenRepo.module("org", "external", "1.4").publish()
            mavenRepo.module("org", "dep", "2.2").dependsOn("org", "external", "[1.3,)").publish()
    
            def buildFile = file("build.gradle")
            buildFile << """
    repositories {
        maven { url "${mavenRepo.uri}" }
    }
    
    configurations { compile }
    
    dependencies {
        compile 'org:external:1.2'
        compile 'org:dep:2.2'
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:33:46 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

            when:
            succeeds "test"
    
            then:
            skipped ':test'
    
            // Keep the same files, but move one of them to the other property
            buildFile.delete()
            buildFile << """
                task test(type: TaskWithTwoOutputDirectoriesProperties) {
                    outputs1 = file("\$buildDir/output2")
                    outputs2 = file("\$buildDir/output1")
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  7. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorIntegrationTest.groovy

        def buildOperations = new BuildOperationsFixture(executer, temporaryFolder)
    
        def "can create and use a work action defined in buildSrc in #isolationMode"() {
            fixture.withWorkActionClassInBuildSrc()
    
            buildFile << """
                task runInWorker(type: WorkerTask) {
                    isolationMode = $isolationMode
                }
            """
    
            when:
            succeeds("runInWorker")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 31K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/constraints/DependencyConstraintsAndResolutionStrategiesIntegrationTest.groovy

        private final ResolveTestFixture resolve = new ResolveTestFixture(buildFile, "conf").expectDefaultConfiguration("runtime")
    
        def setup() {
            settingsFile << "rootProject.name = 'test'"
            resolve.prepare()
            resolve.addDefaultVariantDerivationStrategy()
            buildFile << """
                repositories {
                    maven { url "${mavenRepo.uri}" }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:33:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. platforms/ide/ide-plugins/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r54/RunEclipseAutoBuildTasksCrossVersionSpec.groovy

    @TargetGradleVersion(">=5.4")
    class RunEclipseAutoBuildTasksCrossVersionSpec extends ToolingApiSpecification {
        def setup() {
            file("sub1").mkdirs()
    
            buildFile << """
                apply plugin: 'eclipse'
    
                task foo {
                }
    
                task bar {
                }
    
                project(":sub") {
                    apply plugin: 'eclipse'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r89/ProblemProgressEventCrossVersionTest.groovy

            def problems = listener.problems
            validateCompilationProblem(problems, buildFile)
            problems[0].failure.failure.message == "Could not compile build file '$buildFile.absolutePath'."
        }
    
        def "Can use problems service in model builder and get failure objects"() {
            given:
            Assume.assumeTrue(javaHome != null)
            buildFile getBuildScriptSampleContent(false, false, targetVersion)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top