Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 128 for buildScript (0.15 sec)

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

    @UnsupportedWithConfigurationCache(because = "software model")
    class ModelSetIntegrationTest extends AbstractIntegrationSpec {
    
        def "provides basic meta-data for set"() {
            when:
            buildScript '''
                @Managed
                interface Person {
                }
    
                class Rules extends RuleSource {
                  @Model
                  void people(ModelSet<Person> people) {
                  }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/HttpScriptPluginIntegrationSpec.groovy

                task first
                assert buildscript.sourceFile == null
                assert "${server.uri}/external.gradle?first" == buildscript.sourceURI as String
            """
            def second = file('second.gradle') << """
                task second
                assert buildscript.sourceFile == null
                assert "${server.uri}/external.gradle?second" == buildscript.sourceURI as String
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 30 08:26:30 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/ResidualProgramCompilerTest.kt

            val source = ProgramSource(
                "build.gradle.kts",
                """
                buildscript { println("stage 1 buildscript") }
                plugins { println("stage 1 plugins") }
                print("stage 2")
                """.replaceIndent()
            )
    
            val buildscript = Program.Buildscript(source.fragment(0..10, 12..45))
            val plugins = Program.Plugins(source.fragment(47..52, 54..84))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingWithPluginManagementSpec.groovy

                    }
                }
              }
            """
        }
    
        def 'setting different version in resolutionStrategy will affect plugin choice'() {
            given:
            publishTestPlugin()
            buildScript """
              plugins {
                  id "org.example.plugin" version '1000'
              }
              plugins.withType(org.gradle.test.TestPlugin) {
                println "I'm here"
              }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/RootComponentResolutionIntegrationTest.groovy

            expect:
            succeeds("resolve")
        }
    
        def "buildscript configuration can select other buildscript configurations"() {
            buildFile << """
                buildscript {
                    configurations {
                        conf {
                            canBeConsumed = false
                            attributes {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 23 22:33:17 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  6. platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/eclipse/EclipseProjectIntegrationTest.groovy

        def setup(){
            settingsFile.text = "rootProject.name = 'root'"
        }
    
        @ToBeFixedForConfigurationCache
        void allowsConfiguringEclipseProject() {
            given:
            buildScript """
    apply plugin: 'java'
    apply plugin: 'eclipse'
    
    eclipse {
      project {
        name = 'someBetterName'
        comment = 'a test project'
    
        referencedProjects = ['some referenced project'] as Set
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 01 11:07:39 UTC 2023
    - 18K bytes
    - Viewed (0)
  7. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/StaleOutputIntegrationTest.groovy

        def 'stale output file is removed after input source directory is emptied.'() {
            def taskWithSources = new TaskWithSources()
            taskWithSources.createInputs()
            buildScript(taskWithSources.buildScript)
    
            when:
            succeeds(taskWithSources.taskPath)
    
            then:
            taskWithSources.outputFile.exists()
            executedAndNotSkipped(taskWithSources.taskPath)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 23K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/ModelDslRuleInputDetectionIntegrationSpec.groovy

    class ModelDslRuleInputDetectionIntegrationSpec extends AbstractIntegrationSpec {
    
        def "can reference input using dollar method expression - #syntax"() {
            when:
            buildScript """
              @Managed
              interface Thing {
                String getValue(); void setValue(String str)
              }
    
              model {
                thing(Thing) {
                    value = "foo"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/locking/LockFileReaderWriterTest.groovy

            resolver.resolve("buildscript-$LockFileReaderWriter.UNIQUE_LOCKFILE_NAME") >> tmpDir.file("buildscript-$LockFileReaderWriter.UNIQUE_LOCKFILE_NAME")
            lockFileReaderWriter = new LockFileReaderWriter(resolver, context, lockFile, listener)
            lockFileReaderWriter.writeUniqueLockfile([a: ['foo', 'bar'], b: ['foo'], c: []])
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedScalarCollectionsIntegrationTest.groovy

        private final static List<String> MANAGED_SCALAR_COLLECTION_TYPES = ['List', 'Set']
    
        def "rule can mutate a managed type with a #type of scalar read-only property"() {
            given:
            buildScript """
    
            @Managed
            interface Container {
                $type<String> getItems()
            }
    
            class Rules extends RuleSource {
                @Model
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.5K bytes
    - Viewed (0)
Back to top