-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:buildSrc:generatePrecompiledScriptPluginAccessors failing due to marathon plugin #602
Comments
workaround is to do this: plugins {
// causes bug, do not apply here
// id("com.malinskiy.marathon")
}
// applying inline outside of plugins block due to https://github.com/MarathonLabs/marathon/issues/602
apply(plugin = "com.malinskiy.marathon")
|
The reason for accessing root project is to partially mitigate your issue #601. I'm not exactly sure what happens here with your project init. Can you create a sample project that reproduces the problem? |
sure! will take some time to create a shareable reproducer, but I can hopefully get one to you in a few days.
Hopefully there's a more idiomatic way to handle this than direct root project access from the subproject. I asked about it on gradle slack |
FWIW I currently get the, maybe the same, error
gradle 7.0, groovy config, marathon plugin 0.7.0 Relevant stacktrace
PS: this is independent of how I configure the plugin in the build script. |
Is this still an issue? |
I haven't tried to upgrade of late, but last time I tried (2-3 months back) I had the same issues. I'll make some time this week for re-testing. |
@Malinskiy just upgraded to 0.8.0. looks great and no issues outside of the minor, unrelated to this, #774, thanks! |
@simonpoole great, thanks for the feedback. I'll check the windows issue |
Seeing a series of these errors:
My guess is that there's some weirdness with how marathon generates plugin script accessors for precompiled kotlin gradle script plugins.
I'm guessing line in question is here:
marathon/marathon-gradle-plugin/src/main/kotlin/com/malinskiy/marathon/gradle/MarathonPlugin.kt
Line 32 in e301ffb
Note: subprojects should not be accessing the root project as this will break configuration cache support and project isolation
Gradle slack convo on this
The text was updated successfully, but these errors were encountered: