Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 417 for buildScript (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/execution/ExecuteTaskBuildOperationTypeIntegrationTest.groovy

        def operations = new BuildOperationsFixture(executer, temporaryFolder)
    
        def "emits operation for task execution"() {
            when:
            buildScript """
                task t {}
            """
            succeeds "t"
    
            then:
            def op = operations.first(ExecuteTaskBuildOperationType) {
                it.details.taskPath == ":t"
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 18 22:50:47 UTC 2020
    - 4.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top