gradle assemble failed
Following the wiki I tried to build the jar with gradle, but got an error doing so:
FAILURE: Build failed with an exception.
-
Where: Build file '/home/alex/Downloads/harmony-java-client-master/build.gradle' line: 132
-
What went wrong: A problem occurred evaluating root project 'harmony-java-client-master'.
Could not find property 'MavenPublication' on Publication set.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
What command did you run to produce that? 'gradle assemble'?
Also, what version of gradle are you running (gradle -v)?
I'm got gradle 1.4 installed and used gradle assemble first, but gradle allJar stops with the same error.
Ah, that's probably the issue. I've got gradle 1.11 here (they're up to 2.1). I installed gradle 1.4 and used that to build (clean actually) and got the same error. I can see if there's a way to add a version dependency to build.gradle so the error is more clear, but it looks like you'll need to upgrade to build successfully.
@jongmana And I did add 1.0.3 release jars if you just want to download that and play with it.
Hi @tuck182 ,
i' getting also an error with gradle 2.5.
...\harmony-java-client-1.0.3>gradle assemble
FAILURE: Build failed with an exception.
-
Where: Build file '...\harmony-java-client-1.0.3\build.gradle' line: 3
-
What went wrong: A problem occurred evaluating root project 'harmony-java-client-1.0.3'.
Plugin with id 'maven-publish' not found.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.495 secs
...harmony-java-client-1.0.3>gradle allJar
FAILURE: Build failed with an exception.
-
Where: Build file '...\harmony-java-client-1.0.3\build.gradle' line: 3
-
What went wrong: A problem occurred evaluating root project 'harmony-java-client-1.0.3'.
Plugin with id 'maven-publish' not found.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
I used the jars from the release, but there's -get_config- not working. Is it possible that you upload the latest jars here?
Thanks in advance.