mucats icon indicating copy to clipboard operation
mucats copied to clipboard

mucats build failed with an exception: com.muwire:core:[0.6.15,)

Open yeehi opened this issue 4 years ago • 3 comments

Downloaded and unzipped mucats. Installed Java 1.8.0_281-b09 Ran the command gradlew clean publish

Received the following error:

`Downloading https://services.gradle.org/distributions/gradle-5.1.1-bin.zip .................................................................................

Welcome to Gradle 5.1.1!

Here are the highlights of this release:

  • Control which dependencies can be retrieved from which repositories
  • Production-ready configuration avoidance APIs

For more details see https://docs.gradle.org/5.1.1/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring root project 'mucats-master'.

Could not resolve all files for configuration ':runtime'. Could not find any matches for com.muwire:core:[0.6.15,) as no versions of com.muwire:core are available. Searched in the following locations:`

yeehi avatar Feb 08 '21 21:02 yeehi

Hi, the MuCats build depends on a MuWire build (https://github.com/zlatinb/muwire) you need to execute gradlew clean publish in the MuWire source tree. That will make the com.muwire.core artifact available to MuCats.

zlatinb avatar Feb 08 '21 21:02 zlatinb

Thank you for your brilliant work, zlatinb.

JDK is needed, not just JRE. Trying again resulted in the following error message.
I think packaging applications is important for uniform bug feedback. For example, creating an AppImage might help on GNU+Linux and maybe something like Zero Install for other platforms: http://0install.net/

gradlew clean publish

FAILURE: Build failed with an exception.

* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

* Try:
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

BUILD FAILED in 0s

yeehi avatar Feb 09 '21 12:02 yeehi

I've seen that error when trying to build with newer JDKs (14+). But the gradlew clean publish task should work fine with JDK 8 to 11. Depending on your operating system there may be different ways of switching between JDK versions; the one that I use is setting the JAVA_HOME variable to point to the deployment of the JDK. Also make sure you point to the specific gradlew script included in the source tree, i.e don't forget the ./

I already provide an AppImage for MuWire for Linux x86-64, armhf and aarch64 architectures. It is available for download from https://muwire.com .

The MuCats project is intended for more technical users who would not mind to modify the source code for their specific needs, so I haven't put much effort into packaging it.

zlatinb avatar Feb 09 '21 12:02 zlatinb