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

Upgrade gradle to 4.4.1 #614

Merged
merged 2 commits into from
Jan 14, 2018

Conversation

tisoft
Copy link
Contributor

@tisoft tisoft commented Jan 11, 2018

related to #591

@tisoft
Copy link
Contributor Author

tisoft commented Jan 11, 2018

This is for the master branch. In #611 its done for 1.6 with additional changes for Java9 compatibility.

@robertpanzer
Copy link
Member

Thanks for this great contribution!
I'll take a look at this over the weekend.
I want to test the full flow with making releases etc.

@robertpanzer
Copy link
Member

It looks like signing of the distribution fails for me, because it tries to sign a .jar instead of the .zip:

> Task :asciidoctorj-distribution:distZip 
Putting task artifact state for task ':asciidoctorj-distribution:distZip' into context took 0.0 secs.
Up-to-date check for task ':asciidoctorj-distribution:distZip' took 0.001 secs. It is not up-to-date because:
  Output property 'archivePath' file /Users/robertpanzer/dev/asciidoctorj/asciidoctorj-distribution/build/distributions/asciidoctorj-1.5.7-bin.zip has been removed.

:asciidoctorj-distribution:distZip (Thread[Task worker for ':' Thread 3,5,main]) completed. Took 2.168 secs.
:asciidoctorj-distribution:signArchives (Thread[Task worker for ':' Thread 3,5,main]) started.

> Task :asciidoctorj-distribution:signArchives FAILED
Putting task artifact state for task ':asciidoctorj-distribution:signArchives' into context took 0.0 secs.
Up-to-date check for task ':asciidoctorj-distribution:signArchives' took 0.122 secs. It is not up-to-date because:
  Task has failed previously.

:asciidoctorj-distribution:signArchives (Thread[Task worker for ':' Thread 3,5,main]) completed. Took 0.482 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':asciidoctorj-distribution:signArchives'.
> java.io.FileNotFoundException: /Users/robertpanzer/dev/asciidoctorj/asciidoctorj-distribution/build/libs/asciidoctorj-1.5.7-bin.jar (No such file or directory)

Do you have an idea how this could be resolved?

@mojavelinux
Copy link
Member

I remember having a lot of trouble getting the signing plugin to do the right thing. It seems to be very fragile.

@tisoft
Copy link
Contributor Author

tisoft commented Jan 14, 2018

I think I fixed it. At least locally I can get signed packages now. It feels quite hacky though. I wonder what causes the jar to be part of the artifacts in the first place...

@tisoft tisoft force-pushed the gradle_upgrade_master branch from a24347a to 3388cf5 Compare January 14, 2018 12:47
@robertpanzer
Copy link
Member

Looks good! Thank you so much for this contribution!

@robertpanzer robertpanzer merged commit b758ab4 into asciidoctor:master Jan 14, 2018
@tisoft tisoft deleted the gradle_upgrade_master branch January 14, 2018 15:52
@tisoft
Copy link
Contributor Author

tisoft commented Jan 14, 2018

I have also updated #611 for the 1.6.0 branch with the same fix.

@jmini jmini mentioned this pull request Jan 16, 2018
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

Successfully merging this pull request may close these issues.

3 participants