Skip to content
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

Warning with Gradle 8.12 #6

Open
ingokegel opened this issue Jan 15, 2025 · 0 comments
Open

Warning with Gradle 8.12 #6

ingokegel opened this issue Jan 15, 2025 · 0 comments

Comments

@ingokegel
Copy link

When using unmeta with Gradle 8.12, the warning

Invocation of Task.project at execution time has been deprecated. This will fail with an error in Gradle 10.0. This API is incompatible with the configuration cache, which will become the only mode supported by Gradle in a future release. Consult the upgrading guide for further information: https://docs.gradle.org/8.12/userguide/upgrading_version_7.html#task_project
at jdk.proxy1/jdk.proxy1.$Proxy92.onProjectAccess(Unknown Source)
at org.gradle.internal.cc.impl.AbstractTaskProjectAccessChecker.notifyProjectAccess(TaskExecutionAccessCheckers.kt:47)
at org.gradle.api.internal.AbstractTask.getProject(AbstractTask.java:238)
at org.gradle.api.DefaultTask.getProject(DefaultTask.java:59)
at io.github.izhangzhihao.unmeta.UnmetaTask.unmetaAction(UnmetaTask.kt:31)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)

is printed. You would have to capture access to project such as project.buildDir in a field, so that there is no project access in the TaskAction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant