Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 383 for buildScript (0.48 sec)

  1. 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)
  2. 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)
  3. platforms/documentation/docs/src/snippets/kotlinDsl/androidBuild/kotlin/build.gradle.kts

        kotlin("android") version "1.9.23" apply false
    // tag::android[]
    }
    // end::android[]
    
    // tag::android-buildscript[]
    buildscript {
        repositories {
            google()
            gradlePluginPortal()
        }
        dependencies {
            classpath("com.android.tools.build:gradle:7.3.0")
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 09:36:42 UTC 2024
    - 428 bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/BuildscriptRepositoryContentFilteringIntegrationTest.groovy

    class BuildscriptRepositoryContentFilteringIntegrationTest extends AbstractHttpDependencyResolutionTest {
    
        def "can exclude a module from a repository using #notation for buildscript classpath (in settings: #inSettings)"() {
            def mod = ivyHttpRepo.module('org', 'foo', '1.0').publish()
    
            given:
            def repositories = """
        repositories {
            maven {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/samples/ide/problems-api-usage/groovy/reporters/script-plugin/src/main/groovy/reporters.script.plugin.gradle

    import org.gradle.api.problems.Problems
    import org.gradle.api.problems.Severity
    
    def gradleInternal = gradle as GradleInternal
    def problems = gradleInternal.services.get(Problems)
    
    problems.forNamespace('buildscript').reporting {
        it.id('adhoc-script-deprecation', 'Deprecated script plugin')
            .contextualLabel("Deprecated script plugin 'demo-script-plugin'")
            .severity(Severity.WARNING)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. 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)
  7. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/resolve/locking/LockfileFixture.groovy

            internalCreateLockfile(modules, configuration, lockFile)
        }
    
        private void internalCreateLockfile(String configuration, List<String> modules, boolean unique, boolean buildScript) {
            if (unique) {
                def fileName = buildScript ? LockFileReaderWriter.BUILD_SCRIPT_PREFIX + LockFileReaderWriter.UNIQUE_LOCKFILE_NAME : LockFileReaderWriter.UNIQUE_LOCKFILE_NAME
                def lockFile = testDirectory.file(fileName)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  8. 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)
  9. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/VersionedPluginUseIntegrationTest.groovy

        }
    
        def "can specify plugin version"() {
            when:
            buildScript "plugins { id '$PLUGIN_ID' version '1.0' }"
    
            then:
            verifyPluginApplied('1.0')
        }
    
        def "can specify plugin version using gradle properties"() {
            when:
            file("gradle.properties") << "myPluginVersion=2.0"
            buildScript """
                plugins {
                    id '$PLUGIN_ID' version "\${myPluginVersion}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/InvalidManagedModelMutationIntegrationTest.groovy

    @UnsupportedWithConfigurationCache(because = "software model")
    class InvalidManagedModelMutationIntegrationTest extends AbstractIntegrationSpec {
    
        def "mutating managed inputs of a rule is not allowed"() {
            when:
            buildScript '''
                @Managed
                interface Person {
                    String getName()
                    void setName(String name)
                }
    
                class RulePlugin extends RuleSource {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top