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

Pact-jvm fails to build on master #1291

Closed
ewebprojects opened this issue Jan 20, 2021 · 7 comments
Closed

Pact-jvm fails to build on master #1291

ewebprojects opened this issue Jan 20, 2021 · 7 comments

Comments

@ewebprojects
Copy link

Attempt to build the project from the sources fail on master (checked out earlier today)

with java 8:
./gradlew clean build leads to
'Execution failed for task ':provider:lein:compileClojure' > Metaspace

with java 11
./gradlew clean build leads to
Execution failed for task ':provider:dokkaJavadoc'

com/sun/tools/doclets/formats/html/HtmlDoclet

Can you advise please what is the required configuration needed to build the project ? what version of java+gradle to use, what are the memory settings..etc. thanks.

@uglyog
Copy link
Member

uglyog commented Jan 20, 2021

Master branch needs to be built with JDK 8. I don't have an issue building it, but I have a computer with a lot of RAM. Hoe much RAM does your machine have?

You can change the Metaspace settings (see Class Metadata https://docs.oracle.com/javase/10/gctuning/other-considerations.htm#JSGCT-GUID-BFB89453-60C0-42AC-81CA-87D59B0ACE2E)

@eleco
Copy link

eleco commented Jan 21, 2021

thanks for the quick reply, it seems the dokka task is no longer erroring with java 8.

Although now there is an error on the next task triggered with ./gradlew build:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':provider:signMavenPublicationPublication'.
> Cannot perform signing task ':provider:signMavenPublicationPublication' because it has no configured signatory

I see the same error when running ./gradlew publishToMavenLocal (as indicated in the contributing guide https://github.com/pact-foundation/pact-jvm/blob/master/CONTRIBUTING.md)

Any idea ? I just want to install the jars in my local maven repo.

@uglyog
Copy link
Member

uglyog commented Jan 21, 2021

CONTRIBUTING.md hasn't been updated in a long time, and is out of date.

To publish to your Maven local repo, you need to have created a GPG key and then set in ~/.gradle/gradle.properties:

signing.keyId                 # this is your GPG key ID
signing.password              # GPG key password
signing.secretKeyRingFile     # Path to the GPG secret key file

@kflorence
Copy link
Contributor

@ewebprojects I think we should leave this open until the documentation is updated. Also it would be nice if signing weren't required to publish to local maven repository.

@kflorence
Copy link
Contributor

FYI this is a good resource to link to for GPG https://gist.github.com/phit/bd3c6d156a2fa5f3b1bc15fa94b3256c

@kflorence
Copy link
Contributor

@kflorence
Copy link
Contributor

I had to set org.gradle.jvmargs=-Xmx3g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 in my ~/.gradle/gradle.properties to fix metaspace problems with JDK 11

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

4 participants