- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 110 for initScripts (0.41 sec)
-
subprojects/core/src/integTest/groovy/org/gradle/caching/configuration/internal/BuildCacheConfigurationIntegrationTest.groovy
} """ buildFile << customTaskCode() expect: executer.withBuildCacheEnabled().usingInitScript(initScript) succeeds("customTask") !localBuildCache.empty } def "can enable with init script"() { def initScript = file("initBuildCache.gradle") << """ gradle.startParameter.buildCacheEnabled = true gradle.settingsEvaluated { settings ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 19 20:09:35 UTC 2022 - 9.6K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/PartialEvaluatorTest.kt
) } @Test fun `Gradle target - top-level - initscript block - non-empty body`() { val initscript = fragment("initscript", "...") val body = ProgramSource("init.gradle.kts", "...") val program = Program.Staged( Program.Stage1Sequence(null, Program.Buildscript(initscript), null), Program.Script(body) ) assertThat(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 38.9K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/archives/ReproducibleArchivesInterceptor.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.6K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/initialization/InitScriptIntegrationTest.groovy
def 'init scripts passed on the command line are applied to buildSrc'() { given: settingsFile << "rootProject.name = 'hello'" createProject() file("init.gradle") << initScript() executer.usingInitScript(file('init.gradle')) when: succeeds 'hello' then: output.contains("Project buildSrc evaluated")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 5.5K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/CompiledKotlinBuildScript.kt
} } /** * Base class for `initscript` block evaluation on scripts targeting Gradle. */ @ImplicitReceiver(Gradle::class) open class CompiledKotlinInitscriptBlock( host: KotlinScriptHost<Gradle> ) : CompiledKotlinInitScript(host) { /** * Configures the classpath of the init script. */ fun initscript(block: ScriptHandlerScope.() -> Unit) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 4.5K bytes - Viewed (0) -
platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingWithPluginManagementSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 22:36:52 UTC 2023 - 11.9K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/BuildEventsErrorIntegrationTest.groovy
def initScript = initScript """ allprojects { throw new RuntimeException("broken") } """ when: executer.usingInitScript(initScript) fails "a" then: failure.assertHasDescription("broken") .assertHasNoCause() .assertHasFileName("Initialization script '$initScript'") .assertHasLineNumber(3) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 6K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationNotificationsFixture.groovy
private final File initScript BuildOperationNotificationsFixture(GradleExecuter executer, TestDirectoryProvider projectDir) { this.initScript = projectDir.testDirectory.file(FIXTURE_SCRIPT_NAME) this.initScript.text = injectNotificationListenerBuildLogic() executer.beforeExecute { it.usingInitScript(this.initScript) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r41/InitScriptCrossVersionSpec.groovy
def "init scripts see the root project before it is evaluated"() { given: settingsFile << """ rootProject.name = 'root' """ def initScript = file("init.gradle") << """ rootProject { root -> if (root.state.executed) { throw new IllegalStateException("Root project should not be evaluated too early") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/language/swift/AbstractSwiftMixedLanguageIntegrationTest.groovy
def setup() { assumeTrue("Swift toolchain is available", swiftToolChain != null) assumeTrue("C++ toolchain is available", cppToolChain != null) File initScript = file("init.gradle") << """ allprojects { p -> p.plugins.withType(${swiftToolChain.pluginClass}) { model { toolChains {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 4K bytes - Viewed (0)