Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 417 for buildScript (0.18 sec)

  1. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerArgumentsIntegrationTest.groovy

    package org.gradle.testkit.runner
    
    class GradleRunnerArgumentsIntegrationTest extends BaseGradleRunnerIntegrationTest {
    
        def "can execute build without specifying any arguments"() {
            given:
            buildScript """
                help {
                    doLast {
                        file('out.txt').text = "help"
                    }
                }
            """
    
            when:
            runner().build()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. 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)
  3. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingFromMultipleCustomPluginRepositorySpec.groovy

            given:
            publishPlugins(MAVEN)
            requireOwnGradleUserHomeDir()
            buildScript """
                //this simulates pluginA having a dependency on the hello world plugin
                buildscript {
                    dependencies {
                        classpath "org.gradle:gradle-hello-world-plugin:0.2"
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:30:55 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top