Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 246 for buildScript (0.49 sec)

  1. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingSnapshotFromPluginRepositorySpec.groovy

                        url "${mavenRepo.uri}"
                    }
                }
              }
            """
        }
    
        def 'Can specify snapshot version'() {
            given:
            publishTestPlugin()
            buildScript """
              plugins {
                  id "org.example.plugin" version '1.0-SNAPSHOT'
              }
              plugins.withType(org.gradle.test.TestPlugin) {
                println "I'm here"
              }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 12:20:28 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGUpToDateCheckIntegrationTest.groovy

            '''.stripIndent()
        }
    
        @Issue('https://github.com/gradle/gradle/issues/4924')
        def 'test task is up-to-date when #property is changed because it should not impact output'() {
            given:
            buildScript """
                apply plugin: "java"
                ${mavenCentralRepository()}
                testing {
                    suites {
                        test {
                            useTestNG('${TestNGCoverage.NEWEST}')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 18 12:30:10 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/r54/KotlinSettingsScriptModelCrossVersionSpec.groovy

            def settings = withSettings("""
                buildscript {
                    dependencies {
                        classpath(files("${normalizedPathOf(settingsDependency)}"))
                    }
                }
            """)
    
            and:
            def projectDependency = withEmptyJar("project-dependency.jar")
            file("build.gradle") << """
                buildscript {
                    dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/PolymorphicManagedTypeIntegrationTest.groovy

    class PolymorphicManagedTypeIntegrationTest extends AbstractIntegrationSpec {
    
        def "rule can provide a managed model element backed by an abstract class that implements interfaces"() {
            when:
            buildScript '''
                @Managed
                interface Named {
                    String getName()
                }
    
                @Managed
                abstract class Person implements Named {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/ModelDslRuleDetectionIntegrationSpec.groovy

        def "rules are detected when model path is a straight property reference chain - #path"() {
            given:
            def normalisedPath = path.replace('"', '').replaceAll("'", "")
    
            when:
            buildScript """
                @Managed
                interface Item {
                    String getValue()
                    void setValue(String value)
                }
    
                @Managed
                interface A extends Item {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/samples/ide/problems-api-usage/kotlin/reporters/script-plugin/src/main/kotlin/reporters/script.plugin.gradle.kts

    import org.gradle.api.internal.GradleInternal
    import org.gradle.kotlin.dsl.registering
    
    val gradleInternal = gradle as GradleInternal
    val problems = gradleInternal.services.get(Problems::class.java)
    
    problems.forNamespace("buildscript").reporting {
        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.4K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/SettingsScriptExecutionIntegrationTest.groovy

    Gradle.class.classLoader.loadClass('${implClassName}')
    try {
        buildscript.classLoader.loadClass('${implClassName}')
        assert false: 'should fail'
    } catch (ClassNotFoundException e) {
        // expected
    } finally {
        if (buildscript.classLoader instanceof Closeable) {
            buildscript.classLoader.close()
        }
    }
    
    try {
        buildscript.classLoader.loadClass('BuildSrcClass')
        assert false: 'should fail'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. platforms/ide/ide/src/testFixtures/groovy/org/gradle/plugins/ide/AbstractIdeIntegrationTest.groovy

        }
    
        protected ExecutionResult runTask(taskName, settingsScript = "rootProject.name = 'root'", buildScript) {
            def settingsFile = file("settings.gradle")
            settingsFile << settingsScript
    
            def buildFile = file("build.gradle")
            buildFile << buildScript
    
            return executer.withTasks(taskName).run()
        }
    
        protected TestFile getFile(Map options, String filename) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/InvalidManagedModelRuleIntegrationTest.groovy

    class InvalidManagedModelRuleIntegrationTest extends AbstractIntegrationSpec {
    
        def "provides a useful error message when setting an incompatible type on a managed instance in Groovy"() {
            when:
            buildScript '''
                @Managed
                interface Person {
                    int getThumbCount()
                    void setThumbCount(int c)
                }
    
                class RulePlugin extends RuleSource {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  10. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/TestKitDependencyClassVisibilityIntegrationTest.groovy

    class TestKitDependencyClassVisibilityIntegrationTest extends AbstractIntegrationSpec {
    
        def "test kit dependency is not implicitly put on the test compile classpath"() {
            when:
            buildScript """
                plugins { id "org.gradle.java" }
            """
    
            file("src/test/java/Test.java") << """
                import $GradleRunner.name;
                class Test {}
            """
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top