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

Signing issue when building #22

Closed
Gradle999 opened this issue Mar 5, 2018 · 7 comments
Closed

Signing issue when building #22

Gradle999 opened this issue Mar 5, 2018 · 7 comments

Comments

@Gradle999
Copy link

When I run 'gradle build', 'gradle clean build' or 'gradle clean check' I get the same build failure, concerning signArchives. Specifically the error is:

Execution failed for task ‘:signedArchives’. Cannot perform signing task :signedArchives because it has no configured signatory.

Is this a known error or am I missing something that is required? I notice that some lines of code concerning signing tasks have been removed, could this be the cause?

@spinscale
Copy link
Owner

  1. which gradle version are you using?
  2. Do you have anything in ~/.gradle/gradle.properties
  3. Have you pulled the latest code? Which commit are you on?

Can you paste the full output in here? Also the output of gradle tasks please?

@Gradle999
Copy link
Author

Gradle version 4.6, also tried with 4.1 and got the same error.

I have a Gradle.properties file but haven’t touched or edited this.

Yes using the latest commit.

I don’t have my machine with me at the moment, but the error message is: What went wrong:
Execution failed for task ':signArchives'.
Cannot perform signing task ':signArchives' because it has no configured signatory

@spinscale
Copy link
Owner

as I said, I would like to see the output of the whole run, plus the output of gradle tasks plus the output of git show -q

your gradle.properties file is empty I assume?

thanks!

@Gradle999
Copy link
Author

Sorry for not getting back to you. I've managed to stop the signing issue by re-installing the dependencies on my VM, however I'm getting another Java error:

Configure project :
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/ubuntu/elasticsearch-ingest-opennlp/build.gradle' line: 27

  • What went wrong:
    A problem occurred evaluating root project 'ingest-opennlp'.

Failed to apply plugin [id 'elasticsearch.esplugin']
JAVA_HOME must be set to build Elasticsearch

  • 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 0s

echo $JAVA_HOME returns /usr/lib/jvm/java-9-oracle which is the correct directory for my Java.

Any ideas? Seen this before?

@spinscale
Copy link
Owner

can you run env | grep JAVA_HOME please?

Can you also show the output of ls -l /usr/lib/jvm/java-9-oracle - are you sure this is a JDK and not an JRE?

@spinscale
Copy link
Owner

any update here?

@spinscale
Copy link
Owner

No feedback. Closing.

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