Slackbot
02/24/2023, 10:35 PMSlackbot
02/27/2023, 3:31 PMSlackbot
02/27/2023, 10:20 PMSlackbot
03/03/2023, 10:42 PMSlackbot
03/05/2023, 3:44 PMSlackbot
03/07/2023, 2:34 PMSlackbot
03/07/2023, 4:17 PMSlackbot
03/08/2023, 9:40 AMSlackbot
03/09/2023, 6:44 PMSlackbot
03/10/2023, 9:44 AMSlackbot
03/11/2023, 9:18 AMSlackbot
03/13/2023, 2:32 PMAdam
03/14/2023, 2:55 PMclean --no-configuration-cache --no-build-cache
, I can see in the log output:
> Configure project :
> Configure project :subproject-goodbye
> Configure project :subproject-hello
> Task :clean
> Task :subproject-goodbye:clean
> Task :subproject-hello:clean
So I can check the BuildResult.output
to verify that it contains this string exactly.
But if I re-run the the second time, the test fails because it's missing the Configure project
lines.
I've tried deleting the test project's .gradle
directory, but it didn't have any effect.
Is there a nice flag I can use to force Gradle to configure all projects?Slackbot
03/19/2023, 11:53 PMSlackbot
03/21/2023, 10:31 PMSlackbot
03/23/2023, 12:50 PMSlackbot
03/23/2023, 1:28 PMSlackbot
03/23/2023, 2:52 PMSlackbot
03/23/2023, 5:17 PMSlackbot
03/27/2023, 6:26 PMSlackbot
03/28/2023, 2:29 PMSlackbot
03/28/2023, 10:54 PMSlackbot
03/30/2023, 10:49 AMTapchicoma
03/30/2023, 2:26 PMProjectBuild
and usages in the unit tests:
• it could be used just to check configuration state with some provided modifications to the Project
instance? Limitations are that it is not possible to use different Gradle versions with it, it does not run tasks execution and does not download any project dependencies - am I correct or there are more?
• Is there any downsides to call (Project as ProjectInternal).evaluate()
? (beside obvious that it is internal Gradle api)Slackbot
03/30/2023, 3:05 PMSlackbot
03/30/2023, 6:49 PMSlackbot
04/01/2023, 10:17 AMSlackbot
04/01/2023, 8:05 PMSlackbot
04/03/2023, 7:40 AMAdam
04/05/2023, 2:09 PMPrecompiledScriptPluginsSupport
service: https://github.com/gradle/gradle/blob/34453d3231c84f0713123cde78536cb29d735281/subprojects/kotlin-dsl-plugins/src/main/kotlin/org/gradle/kotlin/dsl/plugins/precompiled/PrecompiledScriptPlugins.kt#L44-L50
I’ve made some progress, and IntelliJ seems to be happy, but I get an error when I try and build:
> Task :compileTestFixturesKotlin FAILED
...
No script runtime was found in the classpath: class 'kotlin.script.templates.standard.ScriptTemplateWithArgs' not found. Please add kotlin-script-runtime.jar to the module dependencies
Of course I could add the dependency directly, but I’d prefer to match the way that Gradle is doing it. However, I can’t find out what’s missing (code in thread). Any clues how Gradle normally adds the script-runtime dependency?