MovingBlocks / groovy-wrapper

Groovy Wrapper extension for the Gradle Wrapper - execute Groovy scripts as easily as Gradle scripts!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"could not determine wrapper version" after upgrading gradle

keturn opened this issue · comments

After upgrading gradle, any attempt to run groovyw quickly fails with this error:

Exception in thread "main" java.lang.RuntimeException: Could not determine wrapper version.
    at org.gradle.wrapper.GroovyWrapperMain.wrapperVersion(GroovyWrapperMain.java:111)
    at org.gradle.wrapper.GroovyWrapperMain.main(GroovyWrapperMain.java:63)
Caused by: java.lang.RuntimeException: No build receipt resource found.
    at org.gradle.wrapper.GroovyWrapperMain.wrapperVersion(GroovyWrapperMain.java:97)
    ... 1 more

The build receipt resource was removed in gradle/gradle#7931

oh.

I thought the fix for this was going to be "change which resource it reads that version from."

But seeing that change to upstream, it looks like the fix is "delete this function entirely, because it was only used for some http header we're not too interested in keeping."

Further, if we're willing to place the burden on fetching and installing the gradle distribution on the project's gradle-wrapper, groovy-wrapper could leave out that Install(Download()) bit entirely.