-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
The project encountered errors after updating Gradle Version 7.6.1 to Gradle Version 8.0+ #1110
Comments
一样的报错,希望能得到解决 Translation: I have the same error, hope it can be resolved |
Looks like there is a breaking API change in Gradle 8.0. If you must use the greenDAO plugin, please continue using Gradle 7.x. |
@greenrobot-team Will there be a fix for this to use Gradle 8? |
We use GreenDAO on a huge project and we can't really switch - any kind of patch to get this working would be mostly appreciated 🙇🏽♂️ |
I'm not able to upgrade my grade due to this issue. I hope it gets resolved soon! |
同样的问题,目前只能暂时回退了。希望接下来能够这个问题能被处理 Translation: I have the same problem, and it can only be temporarily rolled back. Hope this issue can be resolved in the future |
Same problem, hope it can be resolved. |
@zwgKt @SwordWang0228 Please comment in English, otherwise it's hard for others to understand. I'll share this with the team and see if it makes sense to update (or maybe we can open source the plugin). |
Same problem, hope it can be resolved. |
+1 |
i have the same problem, hope it can be resolved. |
@greenrobot-team Any news here? |
@NexusIDS have you considered ktorm ? We are in a similar situation where something has to happen and we might as well change track to something modern and Kotlin. |
Please fix the problem soon. |
Same issue here |
This was caused by Gradle 8 removing the deprecated IncrementalTaskInputs API. I published version
Note there is no need to update the greendao library (remains at Please test this in your projects and report here if it works! I only briefly tested it with the greenDAO example project. If working, I will update the project README to point to this new version. |
@greenrobot-team `* Exception is:
|
I'm successfully upgraded my project to Gradle 8.0.2! |
Builds fine with Gradle 8 |
Ya I still getting this issue with Plugin 3.3.1 and Gradle 8.0.2 |
This comment was marked as resolved.
This comment was marked as resolved.
@BoykoDmytro See #1110 (comment) Or what do you mean? Edit: I had no time to look at issue when using the plugin with Kotlin projects, yet. But from a first look it might require manually setting up the greendao task as an input of the Kotlin compile tasks. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This works like a charm! Thank you so much for doing this and buying everyone a bit more time ! |
For kotlin projects, please add the following statement to the
|
thx |
A problem was found with the configuration of task ':app:greendao' (type 'DefaultTask').
|
Tried but still no luck, thanks anyway |
Do you use Kotlin serialization? This is the reason for one of my projects to fail. Very sad, that I can't use Kotlins JSON-serialization anymore.. |
It's the same mistake |
在app目录下build.gradle 中添加 |
the problem has been resolved after adding the following settings to the app level build.gradle tasks.configureEach { task ->
if (task.name.matches("\\w*compile\\w*Kotlin")) {
task.dependsOn('greendao')
}
if (task.name.matches("\\w*kaptGenerateStubs\\w*Kotlin")) {
task.dependsOn('greendao')
}
if (task.name.matches("\\w*kapt\\w*Kotlin")) {
task.dependsOn('greendao')
}
} |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
this cannot work for me |
tasks.configureEach { |
Workaround
There is a breaking API change in Gradle 8.0. If you must use the greenDAO plugin, a bugfix release is available in preview.
Original issue
The text was updated successfully, but these errors were encountered: