kinesis-vcr icon indicating copy to clipboard operation
kinesis-vcr copied to clipboard

Attempting to build a fat jar produces error message.

Open tomconnors opened this issue 3 years ago • 3 comments

As per the readme, I'm trying to build a fat jar w/ ./gradlew shadowJar, but I get the following output:

> ./gradlew shadowJar

FAILURE: Build failed with an exception.

* What went wrong:
Task 'shadowJar' not found in root project 'kinesis-vcr'.

* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 0s

tomconnors avatar Jul 02 '21 16:07 tomconnors

lol, there seems to be no shadow jar plugin installed. Readme is clearly wrong. Try modifying the build.gradle file accordingly https://github.com/johnrengelman/shadow

casidiablo avatar Jul 02 '21 19:07 casidiablo

Just adding id 'com.github.johnrengelman.shadow' version '7.0.0' to the plugins caused complaints about an unsupported gradle version, so I upgraded gradle with ./gradlew wrapper --gradle-version=7.1.1 but then ran into other complaints about nebula.os-package, which is already on its latest version but seems to be using some removed APIs. My knowledge of gradle could fill a post-it and is now exhausted.

tomconnors avatar Jul 08 '21 15:07 tomconnors

Yeah, I would try older versions of the shadow plugin, preferably versions released back when this was project was active

casidiablo avatar Jul 08 '21 17:07 casidiablo