Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 397 for buildScript (0.55 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedToModelMapElementIntegrationTest.groovy

    @UnsupportedWithConfigurationCache(because = "software model")
    class RuleSourceAppliedToModelMapElementIntegrationTest extends AbstractIntegrationSpec {
    
        def "rule source can be applied to ModelMap element"() {
            when:
            buildScript '''
                class MessageTask extends DefaultTask {
                    @Internal
                    String message = "default"
    
                    @TaskAction
                    void printMessages() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top