Closed StuAtGit closed 1 year ago
If it helps, this is my gradle properties file:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
And this is the command I'm running that fails:
./gradlew --stacktrace service:startShadowScripts
If it helps, I started fiddling around with debugging the gradle task, and I reached the point where I could extract this message out of a stack trace:
A problem was found with the configuration of task ':service:startShadowScripts' (type 'CreateStartScripts').
To be honest, though, not really sure what I'm looking at here, or what the problem with the configuration is...
Looking at a similar issue:
Caused by: org.gradle.api.InvalidUserDataException: Value 'directory '/xxxx/xxxx/xxxx/xxx' specified for property '$1' cannot be converted to a file.
Any updates on this issue?
Closing this as we've moved up to Gradle 8 now.
Shadow Version
6.0.0
Gradle Version
6.6.1
Expected Behavior
I want to run the task: service:startShadowScripts
without errors (as required by the build pipeline I'm working with.
Actual Behavior
Fails and dumps an exception stack trace. The last specific message is:
The full stack trace:
Gradle Build Script(s)
It's a messy thing worked on by several folks, none of us really experts in gradle. And I've been fighting with it for a bit.
Some information stripped for privacy:
Content of Shadow JAR (
jar tf <jar file>
- post link to GIST if too long)So, this would be huge, and pain to clean out everything I'm supposed to clean out of it. But, a couple things to note:
startShadowScripts
task, so I need that to work, for the build to finishThe problem seems isolated to that task, and seems to be some mistaken use of the gradle interface. I've filed a bug with gradle for them to print out a more user-friendly error: https://github.com/gradle/gradle/issues/14583