Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,811 for buildFile (0.15 sec)

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

                    String getManagedData()
                    void setManagedData(String managedData)
                }
            """
    
            buildFile << declareManagedExtendingUnmanaged()
    
            buildFile << """
                class MutateComponentRules extends RuleSource {
                    @Mutate
                    void mutateUnmanaged(ModelMap<UnmanagedComponentSpec> components) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 25.1K bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/GradleImplDepsConcurrencyIntegrationTest.groovy

        def "Gradle API and TestKit dependency can be resolved and used by concurrent Gradle builds"() {
            given:
            setupProjects(CONCURRENT_BUILDS_PROJECT_COUNT) { projectDirName, buildFile ->
                buildFile << testablePluginProject()
                file("$projectDirName/src/test/groovy/MyTest.groovy") << gradleApiAndTestKitClassLoadingTestClass()
            }
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/AbstractLanguageInterOpIntegrationTest.groovy

        TestFile pluginDir = file("buildSrc/plugin")
    
        void usesKotlin(TestFile dir) {
            def buildfile = dir.file("build.gradle.kts")
            if (!buildfile.file) {
                buildfile.createFile()
            }
            buildfile.text = KotlinDslTestUtil.kotlinDslBuildSrcScript + buildfile.text
        }
    
        def setup() {
            executer.withRepositoryMirrors()
            file("buildSrc/settings.gradle.kts") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/ManagedTypeDslIntegrationTest.groovy

        }
    }
    '''
    
            when:
            run "show"
    
            then:
            output.contains("t.number: 12")
            output.contains("t.file: ${buildFile}")
        }
    
        def "cannot configure a reference property using nested closure"() {
            buildFile << '''
    @Managed interface Person extends Named {
        Address getAddress()
        void setAddress(Address a)
    }
    
    @Managed interface Address {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/ScalaPluginIntegrationTest.groovy

                class Foo {
                }
            '''
            expect:
            succeeds(':compileScala', '--info')
            postBuildOutputContains('Stopped 1 worker daemon')
    
            when:
            buildFile.text = buildFile.text.replace('SESSION', 'DAEMON')
    
            then:
            succeeds(':compileScala', '--info')
            postBuildOutputDoesNotContain('Stopped 1 worker daemon')
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  7. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/TaskUpToDateIntegrationTest.groovy

    import spock.lang.Issue
    
    class TaskUpToDateIntegrationTest extends AbstractIntegrationSpec {
        @Issue("https://issues.gradle.org/browse/GRADLE-3540")
        def "order of #annotation marks task not up-to-date"() {
            buildFile << """
                class MyTask extends DefaultTask {
                    @Output${files ? "Files" : "Directories"} FileCollection out
    
                    @TaskAction def exec() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. platforms/jvm/plugins-jvm-test-fixtures/src/testFixtures/groovy/org/gradle/java/fixtures/AbstractJavaProjectTestFixturesIntegrationTest.groovy

                    .publish()
            buildFile << """
                dependencies {
                    testImplementation(testFixtures('com.acme:external-module:1.3'))
                }
                repositories {
                    maven {
                        url "${mavenRepo.uri}"
                    }
                }
            """
            when:
            def resolve = new ResolveTestFixture(buildFile, "testCompileClasspath")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 17 21:17:58 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/api/plugins/JavaPluginIntegrationTest.groovy

            given:
            buildFile << """
                apply plugin: 'java'
    
                task expect {
                    assert project.components.mainComponent.get() == components.java
                }
            """
    
            expect:
            succeeds "expect"
        }
    
        def "Java plugin adds outgoing variant for main source set"() {
            buildFile << """
                plugins {
                    id 'java'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 11:39:00 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. platforms/ide/ide/src/testFixtures/groovy/org/gradle/plugins/ide/AbstractIdeProjectIntegrationTest.groovy

                ConfigureUtil.configure(configClosure, p);
            }
    
            File getBuildFile() {
                def buildFile = projectDir.file("build.gradle")
                if (!buildFile.exists()) {
                    buildFile.createFile()
                }
                return buildFile
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top