Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 152 for scriptId (0.33 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/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)
  4. 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)
  5. 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)
  6. platforms/documentation/docs/src/docs/userguide/authoring-builds/best-practices/organizing_gradle_projects.adoc

    Furthermore, updating the initialization script logic uniformly can prove challenging.
    
    Custom Gradle distributions are a practical solution to this very problem.
    A custom Gradle distribution is comprised of the standard Gradle distribution plus one or many custom initialization scripts.
    The initialization scripts come bundled with the distribution and are applied every time the build is run.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:16:36 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/GroovyScriptClassCompiler.java

                .get();
        }
    
        /**
         * We want to use build cache for script compilation, but build cache might not be available yet with early execution engine.
         * Thus settings and init scripts are not using build cache for now.<br/><br/>
         *
         * When we compile project build scripts, build cache is available, but we need to query execution engine with build cache support
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:23:24 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/provider/KotlinScriptEvaluator.kt

    import org.gradle.internal.operations.CallableBuildOperation
    import org.gradle.internal.scripts.BuildScriptCompilationAndInstrumentation
    import org.gradle.internal.scripts.CompileScriptBuildOperationType.Details
    import org.gradle.internal.scripts.CompileScriptBuildOperationType.Result
    import org.gradle.internal.scripts.ScriptExecutionListener
    import org.gradle.kotlin.dsl.accessors.Stage1BlocksAccessorClassPathGenerator
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 10:23:24 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/structuring/sharing_build_logic_between_subprojects.adoc

    ├── shared
    │   ├── src
    │   │   └──...
    │   └── build.gradle
    └── settings.gradle
    ----
    <1> Create the `MyCustomTask` task.
    <2> A shared build script.
    <3> Uses the `MyCustomTask` task and shared build script.
    =====
    
    In the `buildSrc`, the build script `shared.gradle(.kts)` is created.
    It contains dependencies and other build information that is common to multiple subprojects:
    
    [.multi-language-sample]
    =====
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 12:58:46 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/authoring-builds/directory_layout.adoc

    This can easily be handled by conditionally applying a version-compliant script.
    
    NOTE: The version-compliant script should reside somewhere other than the `init.d` directory (such as a sub-directory), so it is not automatically applied.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 23:00:38 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top