sphinx4 icon indicating copy to clipboard operation
sphinx4 copied to clipboard

cant build using gradle

Open ybot01 opened this issue 3 years ago • 2 comments

get this error when try to run Gradle to build it:

FAILURE: Build failed with an exception.

  • Where: Build file .../sphinx4-master/build.gradle' line: 17

  • What went wrong: A problem occurred evaluating root project 'sphinx4-parent'.

Plugin with id 'maven' not found.

  • 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 2s

Maven is installed on my OS (ubuntu 20.04 64 bit) but not working. I tried removing line 17 from the build file but came up with different error.

Any ideas? I am on java 11 should i try downgrading to java 8?

ybot01 avatar Apr 20 '21 15:04 ybot01

I'm having similar problems, but I'm not overly familiar with Java versions and build systems, switching to Java 8 and and older version of gradle seems to help. Also using Intellij because it gives much better errors than eclipse.

l-Shane-l avatar Oct 15 '21 06:10 l-Shane-l

Gradle 7.0 removed the 'maven' plugin and replaced it with 'maven-publish', so to use Gradle 7.0 the build.gradle file will need to be updated to take this into account.

ghost avatar Nov 26 '21 21:11 ghost