Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 236 for ScripT (0.2 sec)

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

        def "methods defined in script are available to used script plugins"() {
            given:
            buildScript """
              def addTask(project) {
                project.tasks.create("hello").doLast { println "hello from method" }
              }
    
              apply from: "script.gradle"
            """
    
            file("script.gradle") << "addTask(project)"
    
            when:
            succeeds "hello"
    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. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheToolingApiInvocationIntegrationTest.groovy

                    id("java")
                }
                println("script log statement")
            """
    
            when:
            configurationCacheRun("assemble")
    
            then:
            outputContains("script log statement")
    
            when:
            configurationCacheRun("assemble")
    
            then:
            outputDoesNotContain("script log statement")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/ScriptCachingIntegrationTest.kt

        private
        fun randomScriptContent() =
            "println(\"${UUID.randomUUID()}\")"
    }
    
    
    private
    fun hasBody(script: String) =
        ProgramParser.parse(ProgramSource("script.gradle.kts", script), TopLevel, ProgramTarget.Project).document.let {
            it is Program.Script || it is Program.Staged
        }
    
    
    private
    data class MultiProjectCachedScripts(
        val settingsFile: CachedScript.WholeFile,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:33:23 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

        }
    
        def "same script can be applied from init script, settings script and build script"() {
            root {
                'common.gradle'("""
                    ${this.instrument('"common"')}
                """)
                'init.gradle'('''
                    // init script
                    apply from: 'common.gradle'
                ''')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/authoring-builds/basics/plugins.adoc

    Plugins can be implemented as *binary plugins*, *precompiled script plugins*, or *script plugins*:
    
    Binary Plugins :: Binary plugins are compiled plugins typically written in Java or Kotlin DSL that are packaged as JAR files.
    They are applied to a project using the `plugins {}` block.
    They offer better performance and maintainability compared to script plugins or precompiled script plugins.
    
    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/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/ProjectConfigurationProgressEventCrossVersionSpec.groovy

        def "reports plugin configuration results for remote script plugins"() {
            given:
            toolingApi.requireIsolatedUserHome() // So that the script is not cached
            server.start()
            def scriptUri = server.uri("script.gradle")
            server.expect(server.get("script.gradle").send("""
                apply plugin: 'java'
            """))
            file("build.gradle") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/resolver/KotlinScriptDependenciesResolverTest.kt

    import org.junit.Test
    import org.junit.experimental.categories.Category
    import java.io.File
    import kotlin.reflect.KClass
    import kotlin.script.dependencies.KotlinScriptExternalDependencies
    import kotlin.script.dependencies.ScriptContents
    import kotlin.script.dependencies.ScriptContents.Position
    import kotlin.script.dependencies.ScriptDependenciesResolver.ReportSeverity
    
    
    @Category(Flaky::class) // https://github.com/gradle/gradle-private/issues/3717
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:12:50 UTC 2024
    - 14.3K 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/integTest/groovy/org/gradle/configuration/ExecuteUserLifecycleListenerBuildOperationIntegrationTest.groovy

            applyInlinePlugin(buildFile, 'Project', addProjectListeners('root project plugin'))
            applyScript(buildFile, scriptFile)
    
            subBuildFile << addGradleListeners('sub project script')
            subBuildFile << addProjectListeners('sub project script', ':')
            subBuildFile << addProjectListeners('sub project script', ':sub')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheRemoteBuildScriptIntegrationTest.groovy

        String scriptUrl
        TestFile scriptFile
        String scriptName = "remote-script.gradle"
        def configurationCache
    
        def setup() {
            server.start()
    
            scriptUrl = "${server.uri}/${scriptName}"
            scriptFile = file("remote-script.gradle") << """
                println 'loaded remote script'
            """
            server.expectGet "/$scriptName", scriptFile
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top