-
Notifications
You must be signed in to change notification settings - Fork 37
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
Unable to load class 'org.gradle.kotlin.dsl.precompile.v1.PrecompiledProjectScript'. #108
Comments
Hi @mariuspena, thanks for using this project.
As described in the README at the "Requirements" section, you need to have Gradle 5+ to use this plugin: We can't support you further till you update Gradle. |
my bad. my gradle version is: 5.4.1 |
Thanks for the update
Can you please provide more context? Are you able to link your project? My gut feeling is that this failure is unrelated to the plugin, but I don't have enough context to tell you at this point. |
top level gradle file:
and the module gradle file:
|
Hey @mariuspena Looks like the problem is that you're not properly configuring the plugin.
And please remove the |
I am having the same issue and getting this error info:
Also using gradle 5.4.1, build tools 3.5.3 and The issue disappears when downgrading to |
@mariuspena , @cjheyday: I'm not entirely sure about the issue but I'd like to ask if is possible to have a sort of minimal sample project that triggers the issue (maybe a git repo). |
hey there. I updated the gradle files but I get the same error. |
I'm not 100% sure yet on how gradle plugin are built and linked so I need to find more documentation and/or having @cortinico / @filipemp / @martinbonnin confirming this. The main difference (at gradle level) between version 1.2.0 and 1.3.0 of the plugin is in the gradle version use to build it (it moved from 5.5 to 6.1). I've tried to build the current master by using gradle version 5.5
and to rebuild the test project using the local maven repository to fetch the plugin
and it worked. Considering the above points I'm inclined to think that if we publish the plugin with a given version of gradle then it will be usable by the same major release of gradle or above. If the findings above are confirmed we should definitely update the readme to mention it |
This seems to be related to the In all cases, we should certainly check the Gradle version when applying the plugin. I'll look into it . |
I am using |
But the test project doesn't so it's not that. (Thanks @mariuspena for providing that, it helps a lot!). It looks like the missing class has been added there: gradle/gradle@6279eda#diff-6b55abe0d82c89784c1a9bb1f8529a5d That would be 6.1.0 if I understand correctly so @macisamuele you're right. The plugin jar contains code that's only consumable by 6.1.0. This sucks. Maybe we can remove the |
That's correct. It's actually because we can't control the version of
This is a Gradle limitation, more context here:
I don't think it's necessary to remove the
@mariuspena Can I ask you to upgrade Gradle to 6.1+ and confirm that everything works? |
@cortinico your proposal is already implemented in #111 . About building
I think it is a bit complicate as on master we already have changes and new features |
Which of the two 😅
I don't think it's that complicate 🧐 I'll simply branch of top of the |
so I changed the gradle wrapper here It compiles. but I do not see any generated code |
To generate code you need to run
PR #111 fixed the issue and in the next days we'll provide a new plugin release that restores Gradle 5+ compatibility. I'm closing this for know as the issue has been addressed and a temporary workaround has been identified. |
Hi.
made a new project, gradle version 3.5.3 (<<< EDIT: actually it is 5.4.1)
added in the the module gradle file:
but I get this error:
Unable to load class 'org.gradle.kotlin.dsl.precompile.v1.PrecompiledProjectScript'.
can somebdoy help me ? thx!
The text was updated successfully, but these errors were encountered: