Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 399 for scriptId (0.14 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/plugin/ScriptPluginClassLoadingIntegrationTest.groovy

        def "can use apply block syntax to apply multiple scripts"() {
            given:
            buildScript """
              apply {
                from "script1.gradle"
                from "script2.gradle"
              }
            """
    
            file("script1.gradle") << "task hello1 { doLast { println 'hello from script1' } }"
            file("script2.gradle") << "task hello2 { doLast { println 'hello from script2' } }"
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:34 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

        }
    
        void scriptsAreReused(List<ClassDetails> before, List<ClassDetails> after) {
            assert before.size() == after.size()
            for (int i = 0; i < before.size(); i++) {
                def script1 = before[i]
                def script2 = after[i]
                assert script1.path == script2.path
                assert script1.className == script2.className
                assert script1.classpath == script2.classpath
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/authoring-builds/other/init_scripts.adoc

    Each init script has a link:{groovyDslPath}/org.gradle.api.invocation.Gradle.html[Gradle] instance associated with it.
    Any property reference and method call in the init script will be delegated to this `Gradle` instance.
    
    Each init script implements the link:{groovyDslPath}/org.gradle.api.Script.html[Script] interface.
    
    [NOTE]
    ====
    When writing init scripts, pay attention to the scope of the reference you are trying to access.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 05:36:09 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. build-logic/jvm/src/main/kotlin/gradlebuild.start-scripts.gradle.kts

    configurations {
        create("gradleScriptsElements") {
            isVisible = false
            isCanBeResolved = false
            isCanBeConsumed = true
            attributes.attribute(Usage.USAGE_ATTRIBUTE, objects.named("start-scripts"))
            outgoing.artifact(startScripts)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 11:35:55 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheScriptTaskDefinitionIntegrationTest.groovy

            result.groupedOutput.task(":two").assertOutputContains("values1=[12]")
        }
    
        def "problem when closure defined in Kotlin script captures state from the script"() {
            given:
            buildKotlinFile << """
                val message = "message"
                tasks.register("some") {
                    doFirst {
                        println(message)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/internal/precompiled/GeneratePluginAdaptersTask.java

                writer.println("            BasicScript script = precompiledScriptClass.getDeclaredConstructor().newInstance();");
                writer.println("            script.setScriptSource(scriptSource(precompiledScriptClass));");
                writer.println("            script.init(target, target.getServices());");
                writer.println("            script.run();");
                writer.println("        } catch (Exception e) {");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 22:50:50 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/api/kotlin_dsl.adoc

    <4> Does the same as the previous line but allows the property to have a null value
    
    This approach works for all Gradle scripts: project build scripts, script plugins, settings scripts and initialization scripts.
    
    You can also access extra properties on a root project from a subproject using the following syntax:
    
    .my-sub-project/build.gradle.kts
    [source,kotlin]
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 20:16:10 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/InitScriptExecutionIntegrationTest.groovy

        def "init script file is a dotfile"() {
            def initScript = file('.empty')
            initScript << 'println "greetings from empty init script"'
            executer.withArguments('--init-script', initScript.absolutePath)
    
            when:
            run()
    
            then:
            output.contains("greetings from empty init script")
        }
    
        private def createExternalJar() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/internal/problems/DefaultProblemLocationAnalyzer.java

            lock.lock();
            try {
                scripts.clear();
            } finally {
                lock.unlock();
            }
        }
    
        @Override
        public void childScopeCreated(ClassLoaderScopeId parentId, ClassLoaderScopeId childId, @javax.annotation.Nullable ClassLoaderScopeOrigin origin) {
            if (origin instanceof ClassLoaderScopeOrigin.Script) {
                ClassLoaderScopeOrigin.Script scriptOrigin = (ClassLoaderScopeOrigin.Script) origin;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 17:15:42 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/authoring-builds/basics/plugins.adoc

    They are applied to a project using the `plugins {}` block.
    They provide a way to reuse complex logic across projects and allow for better organization of build logic.
    
    Script Plugins :: Script plugins are Groovy DSL or Kotlin DSL scripts that are applied directly to a Gradle build script using the `apply from:` syntax.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 04:11:37 UTC 2024
    - 24.2K bytes
    - Viewed (0)
Back to top