Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 143 for build_file (0.26 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsIntegrationTest.groovy

            fixture.assertStateLoaded()
        }
    
        TestFile customType(TestFile dir) {
            def buildFile = dir.file("build.gradle")
            taskTypeWithInputFileCollection(buildFile)
            buildFile << """
                println "configuring project \$project.path"
                configurations {
                    implementation {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r87/ProblemProgressEventCrossVersionTest.groovy

            validateCompilationProblem(problems, buildFile)
            problems[0].failure.failure.message == "Could not compile build file '$buildFile.absolutePath'."
        }
    
        static void validateCompilationProblem(List<ProblemEvent> problems, TestFile buildFile) {
            problems.size() == 1
            problems[0].label.label == "Could not compile build file '$buildFile.absolutePath'."
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 11:36:58 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. 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)
  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/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileIntegrationTest.groovy

            buildFile << """
                // No plugins applied
                task compile(type: JavaCompile)
            """
    
            when:
            run("compile")
    
            then:
            result.assertTasksSkipped(":compile")
        }
    
        @Issue("GRADLE-3152")
        def "can use the task without applying java-base plugin"() {
            buildFile << """
                task compile(type: JavaCompile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceIntegrationTest.groovy

        def "does nag when service is used indirectly via another service even if task declares service reference and feature preview is enabled"() {
            given:
            serviceImplementation()
            buildFile """
                abstract class WrapperService implements ${BuildService.name}<${BuildServiceParameters.None.name}> {
                    @${ServiceReference.name}('counter')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 61K bytes
    - Viewed (0)
  7. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishHttpIntegTest.groovy

        }
    
        @Issue("GRADLE-3312")
        def "can publish to a http repo via redirects"() {
            given:
            buildFile << publicationBuildWithoutCredentials(version, group, mavenRemoteRepo.uri)
            redirectServer.start()
            buildFile.text = publicationBuildWithoutCredentials(version, group, new URI("${redirectServer.uri}/repo"))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/ParallelTaskExecutionIntegrationTest.groovy

        public final BlockingHttpServer blockingServer = new BlockingHttpServer()
    
        def setup() {
            blockingServer.start()
    
            createDirs("a", "b")
            settingsFile << 'include "a", "b"'
    
            buildFile << """
                abstract class SerialPing extends DefaultTask {
    
                    SerialPing() { outputs.upToDateWhen { false } }
    
                    @TaskAction
                    void ping() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 14:00:51 UTC 2024
    - 21K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheGroovyClosureIntegrationTest.groovy

            given:
            buildFile << """
                tasks.register("some") {
                    doFirst {
                        println(file("broken"))
                    }
                }
            """
    
            when:
            configurationCacheFails ":some"
    
            then:
            failure.assertHasFileName("Build file '$buildFile'")
            failure.assertHasLineNumber(4)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy

    import static org.gradle.util.internal.TextUtil.escapeString
    
    class FileCollectionIntegrationTest extends AbstractIntegrationSpec implements TasksWithInputsAndOutputs {
        def "can use 'as' operator with #type"() {
            buildFile << """
                def fileCollection = files("input.txt")
                def castValue = fileCollection as $type
                println "Cast value: \$castValue (\${castValue.getClass().name})"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 12:54:09 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top