This message was deleted.
# community-support
s
This message was deleted.
๐Ÿงต 1
t
Hello
SimpleWork
seems to be deprecated https://github.com/johnrengelman/shadow/issues/326 and should be already removed. Can you modify source code to use API suggested on Github?
s
But I couldnt find which part is calling SimpleWork! Can you help me !
t
Check the plugins applied to
:NewInfraSupportTool
. Some of those creates
:buildrpm
task. The one seems to be using the deprecated API
s
This is my task:buildrpm
I couldnt find any plugin that is triggering the SImpleWorkResult!|
t
I suspect task of type
Rpm
being at fault. Please, check the task implementation details.
s
If I remove the type Rpm I am getting this error Could not find method release() for arguments [1355] on task 'NewInfraSupportToolbuildrpm' of type org.gradle.api.DefaultTask.
Copy code
Task :NewInfraSupportTool:buildrpm FAILED
15:34:34  :NewInfraSupportTool:buildrpm (Thread[Execution worker for ':',5,main]) completed. Took 3.414 secs.
15:34:34  
15:34:34  FAILURE: Build failed with an exception.
15:34:34  
15:34:34  * What went wrong:
15:34:34  Execution failed for task ':NewInfraSupportTool:buildrpm'.
15:34:34  > org/gradle/api/internal/tasks/SimpleWorkResult
t
Can you try and run
Copy code
--warning-mode all
or modify
gradle.properties
with
org.gradle.warning.mode=(all,none,summary)
It is possible that it will reveal more information and you can track down the dependency at fault. With the given output I can only speculate that an issue is around:
Copy code
SimpleWorkResult has been removed โ€” use WorkResult.didWork.
as mentioned in https://docs.gradle.org/current/userguide/upgrading_version_4.html
s
The runtime configuration has been deprecated for resolution. This will fail with an error in Gradle 7.0. Please resolve the runtimeClasspath configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.9.2/user
t
Interesting, so you are using gradle 6.9.2 that is long ago removed
SimpleWorkResult
. When did you received an error? Did you made any dependency changes recently in the project? Try to git bisect 2 different revisions on your repo to identify the commit at fault and see what might caused the SimpleWorkResult to leak into your build config.
s
No I am trying to update the whole project from 3.4 to 6.9.2
from(configurations.runtime)
I guess this is causing the erro
t
The only suggestion I have is to try to make the upgrade process gradual. First execute project with Gradle
3.4
+
--warning-mode all
and fix warnings. Then repeat for 4.x and 5.x Gradle versions.
s
I will try to do that!
๐Ÿคž 1