Open boris-petrov opened 2 years ago
Thanks for the issue.
I just saw a new one (using Gradle 7.5.1):
> Task :subproj:explodeJarMain
Build service 'inMemoryCache' is being used by task ':subproj:explodeJarMain' without the corresponding declaration via 'Task#usesService'. This will fail with an error in Gradle 8.0. Declare the association between the task and the build service using 'Task#usesService'. Consult the upgrading guide for further information: https://docs.gradle.org/7.5.1/userguide/upgrading_version_7.html#undeclared_build_service_usage
I see a similar one for findInlineMembers
and findDeclaredProcs
.
I just saw a new one (using Gradle 7.5.1):
> Task :subproj:explodeJarMain Build service 'inMemoryCache' is being used by task ':subproj:explodeJarMain' without the corresponding declaration via 'Task#usesService'. This will fail with an error in Gradle 8.0. Declare the association between the task and the build service using 'Task#usesService'. Consult the upgrading guide for further information: https://docs.gradle.org/7.5.1/userguide/upgrading_version_7.html#undeclared_build_service_usage
I see a similar one for
findInlineMembers
andfindDeclaredProcs
.
Could you file this as a separate issue, please?
Sure, here you go. :)
A workaround for this:
// Workaround for https://github.com/gradle/gradle/issues/25885
// Technically it should be `explodeCodeSourceMain dependsOn generateGrammarSource` and
// `explodeCodeSourceTest dependsOn generateTestGrammarSource`, but this module is so
// small it isn't worth fine-tuning it.
tasks.withType(com.autonomousapps.tasks.CodeSourceExploderTask) {
dependsOn('generateGrammarSource', 'generateTestGrammarSource')
}
I have a similar issue with https://github.com/jsonschema2dataclass/js2d-gradle plugin instead of Antlr.
Instead of the manual dependsOn
, it is better to fix the broken Antlr setup, so that all tasks that consume sources are worked-around properly at once. Please find the proper work-around at https://github.com/gradle/gradle/issues/19555#issuecomment-1593252653 :-)
Plugin version 1.4.0
Gradle version 7.4.2
Describe the bug Running
buildHealth
on my project leads to the following deprecation warning in theexplodeCodeSourceMain
andexplodeCodeSourceTest
tasks:To Reproduce I guess the issue is because I'm using the
antlr
built-in Gradle plugin:It should be simple enough to reproduce the issue by just adding the plugin to the build-script. If you have troubles reproducing, I'll try creating a repo.
Expected behavior No deprecation warning