Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yeehi opened this issue Feb 8, 2021 · 3 comments
Open

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

yeehi opened this issue Feb 8, 2021 · 3 comments

Comments

@yeehi
Copy link

yeehi commented Feb 8, 2021

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:`

@zlatinb
Copy link
Owner

zlatinb commented Feb 8, 2021

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.

@yeehi
Copy link
Author

yeehi commented Feb 9, 2021

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

@zlatinb
Copy link
Owner

zlatinb commented Feb 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants