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

jrubyPrepare doesn't refresh dependencies after initial setup #288

Open
fapdash opened this issue Nov 3, 2016 · 2 comments
Open

jrubyPrepare doesn't refresh dependencies after initial setup #288

fapdash opened this issue Nov 3, 2016 · 2 comments
Assignees

Comments

@fapdash
Copy link

fapdash commented Nov 3, 2016

Reproduction:

  1. Clone https://github.com/asciidoctor/asciidoctor-gradle-examples

  2. In '/asciidoc-diagram-to-html-example' run

./gradlew jrubyPrepare
[...]
:asciidoc-diagram-to-html-example:jrubyPrepare
Download https://jcenter.bintray.com/org/jruby/jruby-complete/9.0.5.0/jruby-complete-9.0.5.0.pom
Download https://jcenter.bintray.com/org/jruby/jruby-complete/9.0.5.0/jruby-complete-9.0.5.0.jar
Download http://rubygems.lasagna.io/proxy/maven/releases/rubygems/asciidoctor-diagram/1.4.0/asciidoctor-diagram-1.4.0.pom
Download http://rubygems.lasagna.io/proxy/maven/releases/rubygems/asciidoctor/1.5.5/asciidoctor-1.5.5.pom
Download http://rubygems.lasagna.io/proxy/maven/releases/rubygems/asciidoctor-diagram/1.4.0/asciidoctor-diagram-1.4.0.gem
Download http://rubygems.lasagna.io/proxy/maven/releases/rubygems/asciidoctor/1.5.5/asciidoctor-1.5.5.gem
Successfully installed asciidoctor-diagram-1.4.0
Successfully installed asciidoctor-1.5.5
2 gems installed
  1. Change https://github.com/asciidoctor/asciidoctor-gradle-examples/blob/master/asciidoc-diagram-to-html-example/build.gradle#L12 to
    gems 'rubygems:asciidoctor-diagram:1.5.2' and save

  2. Run

./gradlew jrubyPrepare
:asciidoc-diagram-to-html-example:jrubyPrepare UP-TO-DATE

BUILD SUCCESSFUL

I checked my gradle cache and there is still only version 1.4.0.
The same thing happens when I change the dependency to a different gem or add another gem.

Edit: I tested this on a second machine now and got the same behaviour.
If I rename the project folder jrubyPrepare() recognizes the changed dependencies and installs them.

@fapdash fapdash changed the title jrubyPrepare doesn't refresh dependencies after initial jrubyPrepare doesn't refresh dependencies after initial setup Nov 3, 2016
@rtyler rtyler added this to the 1.6.0 milestone Sep 27, 2017
@rtyler rtyler self-assigned this Nov 29, 2017
@rtyler rtyler removed this from the 1.6.0 milestone Sep 8, 2018
@rtyler rtyler added this to the 2.0.0 - Stuttgart milestone May 5, 2019
@rtyler
Copy link
Member

rtyler commented May 5, 2019

This is definitely an annoying paper cut.

This is something I would like to try to fix towards 2.0. I think the issue relies on how we're mapping the output files for the task, but will have to dig a little deeper here.

@ysb33r ysb33r modified the milestones: 2.0.0 - Stuttgart, 2.1.0 Jan 17, 2020
@paulk-asert
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants