Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 128 for Buildscript (0.39 sec)

  1. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/InterfaceBackedManagedTypeIntegrationTest.groovy

    class InterfaceBackedManagedTypeIntegrationTest extends AbstractIntegrationSpec {
    
        def "rule method can define a managed model element backed by an interface"() {
            when:
            buildScript '''
                @Managed
                interface Person {
                    String getName()
                    void setName(String name)
                }
    
                @Managed
                interface Names {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  2. testing/integ-test/src/integTest/groovy/org/gradle/integtests/SyncTaskIntegrationTest.groovy

                extraDir { file 'extra.txt' }
                dir1 {
                    file 'extra.txt'
                    extraDir { file 'extra.txt' }
                }
                someOtherEmptyDir {}
            }
    
            buildScript '''
                task sync(type: Sync) {
                    into 'dest'
                    from 'source'
                }
            '''.stripIndent()
    
            when:
            run 'sync'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelRuleBindingFailureIntegrationTest.groovy

    @UnsupportedWithConfigurationCache(because = "software model")
    class ModelRuleBindingFailureIntegrationTest extends AbstractIntegrationSpec {
    
        def "unbound rule by-type subject and inputs are reported"() {
            given:
            buildScript """
                class MyPlugin {
                    static class MyThing1 {}
                    static class MyThing2 {}
                    static class MyThing3 {}
    
                    static class Rules extends RuleSource {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/internal/classpath/BuildScriptClasspathIntegrationSpec.groovy

            repo.module("", "test", "1.3-BUILD-SNAPSHOT").allowAll()
    
            server.start()
        }
    
        @Unroll("jars on buildscript classpath can change (loopNumber: #loopNumber)")
        def "jars on buildscript classpath can change"() {
            given:
            buildFile << '''
                buildscript {
                    repositories { flatDir { dirs 'repo' }}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:47 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildPluginDevelopmentIntegrationTest.groovy

            then:
            executed ":pluginDependencyA:jar", ":pluginBuild:jar", ":taskFromPluginBuild"
        }
    
        def "can develop a buildscript dependency that is also used by main build"() {
            given:
            buildA.buildFile << """
                buildscript {
                    dependencies {
                        classpath 'org.test:pluginDependencyA:1.0'
                    }
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 13:37:31 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelMapIntegrationTest.groovy

    @UnsupportedWithConfigurationCache(because = "software model")
    class ManagedModelMapIntegrationTest extends AbstractIntegrationSpec {
    
        def "rule can create a map of model elements"() {
            when:
            buildScript '''
                @Managed
                interface Thing extends Named {
                  void setValue(String value)
                  String getValue()
                }
    
                @Managed
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  7. platforms/jvm/language-jvm/src/integTest/groovy/org/gradle/api/tasks/bundling/JarEncodingIntegrationTest.groovy

        @Issue(['GRADLE-1506'])
        def "create Jar with metadata encoded using UTF-8 when platform default charset is not UTF-8"() {
            given:
            buildScript """
                task jar(type: Jar) {
                    from file('test')
                    destinationDirectory = file('dest')
                    archiveFileName = 'test.jar'
                }
            """.stripIndent()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ScalarTypesInManagedModelIntegrationTest.groovy

                        });
                    }
                }
            '''
    
            buildScript '''
                apply type: RulePlugin
            '''
    
            then:
            succeeds "check"
        }
    
        def "can set/get properties of all supported scalar types using Groovy"() {
            when:
            buildScript '''
                @Managed
                interface AllSupportedUnmanagedTypes {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.1K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/internal/classpath/BuildScriptClasspathInstrumentationIntegrationTest.groovy

            when:
            buildFile.text = """
                buildscript {
                    repositories { maven { url "${mavenRemote.uri}" } }
                    dependencies { classpath "$artifactCoordinates" }
                }
            """
    
            then:
            run("help")
    
            when:
            buildFile.text = """
                buildscript {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 15:08:33 UTC 2024
    - 29K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelPropertyTargetingRuleIntegrationTest.groovy

    class ManagedModelPropertyTargetingRuleIntegrationTest extends AbstractIntegrationSpec {
    
        def "rule can target nested element of managed element as input"() {
            when:
            buildScript '''
                @Managed
                interface Platform {
                    OperatingSystem getOperatingSystem()
                }
    
                @Managed
                interface OperatingSystem {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 16.6K bytes
    - Viewed (0)
Back to top