Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 790 for scriptId (0.25 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/DefaultPrecompiledScriptPluginsSupport.kt

     *  - the `.settings.gradle.kts` file name suffix defines a [Settings] script plugin
     *  - and finally, the simpler `.gradle.kts` file name suffix  defines a [Project] script plugin
     *
     * ## Defining the plugin id
     *
     * The Gradle plugin id for a precompiled script plugin is defined via its file name
     * plus optional package declaration in the following manner:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 10:44:10 UTC 2024
    - 21K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. platforms/ide/tooling-api/readme.md

    ### Executing with Kotlin scripts on Gradle Version prior to 5.0.
        
    This will result in an invocation as if no script is present and you'll be puzzled why nothing you wrote in the script is happening.
    The reason is that Kotlin DSL was introduced in Gradle 5.0. Older Gradle versions simply ignore Kotlin scripts.
    The solution is to use a `groovy` script since it works on all Gradle Versions. 
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 19 21:50:04 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/BuildOperationBackedScriptCompilationHandler.java

     * limitations under the License.
     */
    
    package org.gradle.groovy.scripts.internal;
    
    import groovy.lang.Script;
    import org.codehaus.groovy.ast.ClassNode;
    import org.gradle.api.Action;
    import org.gradle.api.internal.initialization.ClassLoaderScope;
    import org.gradle.groovy.scripts.ScriptSource;
    import org.gradle.internal.classpath.ClassPath;
    import org.gradle.internal.hash.HashCode;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. platforms/jvm/plugins-application/src/main/java/org/gradle/jvm/application/tasks/CreateStartScripts.java

    import org.gradle.jvm.application.scripts.ScriptGenerator;
    import org.gradle.util.internal.GUtil;
    import org.gradle.work.DisableCachingByDefault;
    
    import javax.annotation.Nullable;
    import javax.inject.Inject;
    import java.io.File;
    import java.util.Collections;
    import java.util.LinkedList;
    import java.util.stream.Collectors;
    
    /**
     * Creates start scripts for launching JVM applications.
     * <p>
     * Example:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top