Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 417 for buildScript (0.15 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Lexer.kt

    internal
    enum class TopLevelBlockId {
        buildscript,
        plugins,
        pluginManagement,
        initscript;
    
        val tokenText: String
            get() = name
    
        companion object {
    
            fun topLevelBlockIdFor(target: ProgramTarget) = when (target) {
                ProgramTarget.Project -> arrayOf(buildscript, plugins)
                ProgramTarget.Settings -> arrayOf(buildscript, pluginManagement, plugins)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/PluginVariantResolveIntegrationTest.groovy

            id                  | pluginsBlock
            "plugins block"     | """
                plugins {
                    id 'com.acme.my.plugin' version '1.0'
                }
            """
    
            "buildscript block" | """
                    buildscript {
                        repositories {
                            maven {
                                url "%repoloc%"
                            }
                        }
                        dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 12:51:28 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/UpToDateScalaCompileIntegrationTest.groovy

            buildScript(scalaProjectBuildScript(defaultZincVersion, defaultScalaVersion))
    
            when:
            run 'compileScala'
    
            then:
            executedAndNotSkipped ':compileScala'
    
            when:
            run 'compileScala'
    
            then:
            skipped ':compileScala'
    
            when:
            buildScript(scalaProjectBuildScript(newZincVersion, newScalaVersion))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainIntegrationTest.groovy

    import org.gradle.internal.jvm.Jvm
    
    class JavaToolchainIntegrationTest extends AbstractIntegrationSpec implements JavaToolchainFixture {
    
        def "fails when using an invalid toolchain spec when #description"() {
    
            buildScript """
                apply plugin: JvmToolchainsPlugin
    
                abstract class UnpackLauncher extends DefaultTask {
                    @Nested
                    abstract Property<JavaLauncher> getLauncher()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 15:18:26 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/execution/ExecuteTaskActionBuildOperationTypeIntegrationTest.groovy

        def operations = new BuildOperationsFixture(executer, temporaryFolder)
    
        def "emits operation for each task action execution"() {
            when:
            buildScript """
                task t {
                    doLast {}
                    doLast {}
                }
            """
            succeeds "t"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jul 11 12:06:28 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/providers/propertyConventionCallsites/kotlin/build.gradle.kts

            }
        }
    }
    // end::convention-callsites-from-plugin[]
    
    // tag::convention-callsites-from-buildscript[]
    apply<GreetingPlugin>()
    
    tasks.withType<GreetingTask>().configureEach {
        // setting convention from build script
        guest.convention("Guest")
    }
    // end::convention-callsites-from-buildscript[]
    
    abstract class GreetingTask : DefaultTask() {
        // tag::convention-callsites-from-constructor[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 16:56:10 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/precompile/PrecompiledProjectScript.kt

        }
    
        /**
         * Configures the build script classpath for this project.
         *
         * @see [Project.buildscript]
         */
        @Suppress("unused")
        open fun buildscript(@Suppress("unused_parameter") block: ScriptHandlerScope.() -> Unit) {
            throw IllegalStateException("The `buildscript` block is not supported on Kotlin script plugins, please use the `plugins` block or project level dependencies.")
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top