sphinx4
sphinx4 copied to clipboard
cant build using gradle
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?
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.
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.