Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 382 for buildScript (0.26 sec)

  1. platforms/documentation/docs/src/docs/dsl/org.gradle.api.Script.xml

            <title>Properties</title>
            <table>
                <thead>
                    <tr>
                        <td>Name</td>
                    </tr>
                </thead>
                <tr>
                    <td>buildscript</td>
                </tr>
                <tr>
                    <td>logger</td>
                </tr>
                <tr>
                    <td>logging</td>
                </tr>
                <tr>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelPropertyTargetingRuleIntegrationTest.groovy

    class ManagedModelPropertyTargetingRuleIntegrationTest extends AbstractIntegrationSpec {
    
        def "rule can target nested element of managed element as input"() {
            when:
            buildScript '''
                @Managed
                interface Platform {
                    OperatingSystem getOperatingSystem()
                }
    
                @Managed
                interface OperatingSystem {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 16.6K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/providers/propertyConventionCallsites/groovy/build.gradle

        }
    }
    // end::convention-callsites-from-plugin[]
    
    apply plugin: GreetingPlugin
    
    // tag::convention-callsites-from-buildscript[]
    tasks.withType(GreetingTask).configureEach {
        // setting convention from build script
        guest.convention("Guest")
    }
    // end::convention-callsites-from-buildscript[]
    
    abstract class GreetingTask extends DefaultTask {
        // tag::convention-callsites-from-constructor[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 16:56:11 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/LocaleSupportDaemonIntegrationTest.groovy

                LocaleUtils.toLocale("ja_JP"),
                LocaleUtils.toLocale("hr_HR")
        ].findAll {
            it != Locale.default
        }
    
        def "custom locale is applied to daemon"() {
    
            buildScript """
                task printLocale {
                    doFirst {
                        println "defaultLocale: " + Locale.default
                    }
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/PostPluginResolutionFailuresIntegrationSpec.groovy

        }
    
        def "error loading plugin"() {
            pluginBuilder.addUnloadablePlugin(PLUGIN_ID)
            pluginBuilder.publishAs(GROUP, ARTIFACT, VERSION, pluginRepo, executer).allowAll()
    
            buildScript applyPlugin()
    
            expect:
            fails("verify")
            failure.assertThatDescription(startsWith("An exception occurred applying plugin request [id: 'org.my.myplugin', version: '1.0']"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/internal/precompiled/FirstPassPrecompiledScript.java

    public abstract class FirstPassPrecompiledScript extends PluginsAwareScript {
    
        @SuppressWarnings("rawtypes")
        @Override
        public void buildscript(Closure configureClosure) {
            throw new IllegalStateException("The `buildscript` block is not supported in Groovy script plugins. Use the `plugins` block or project level dependencies instead.");
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  7. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/BuildEnvironmentReportTaskIntegrationTest.groovy

            buildFile << """
                buildscript {
                    repositories {
                        maven { url "${mavenRepo.uri}" }
                    }
                    dependencies {
                        classpath 'org:toplevel1:1.0'
                    }
                }
    
                project(":impl") {
                    buildscript {
                        repositories {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r18/BuildScriptModelCrossVersionSpec.groovy

            then:
            project.buildScript.sourceFile == buildFile
    
            when:
            def custom = file('gradle/my-project.gradle') << '//empty'
            file('settings.gradle') << "rootProject.buildFileName = 'gradle/my-project.gradle'"
            project = withConnection { it.getModel(GradleProject.class) }
    
            then:
            project.buildScript.sourceFile == custom
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonSystemPropertiesIntegrationTest.groovy

            expect:
            executer.withBuildJvmOpts("-Dfoo.bar=baz").withTasks("verify").run()
        }
    
    
        def "forks new daemon when file encoding set to different value via commandline"() {
            setup:
            buildScript """
                task verify {
                    doFirst {
                        println "verified = " + java.nio.charset.Charset.defaultCharset().name()
                    }
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/DevelocityPluginConfigIntegrationTest.groovy

            plugin.assertAutoApplied(output, false)
        }
    
        def "is not auto-applied when added to classpath via buildscript block"() {
            given:
            def coordinates = "${groupId}:${artifactId}:${plugin.runtimeVersion}"
            settingsFile << """
                buildscript {
                    repositories {
                        maven { url '${mavenRepo.uri}' }
                    }
                    dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:24:56 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top