-
Notifications
You must be signed in to change notification settings - Fork 172
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 JRuby Gradle plugins to 1.0 #375
Comments
I just wanted to start migrating to the base plugin 1.0.1, but stumbled over this: |
Good to see that you found room for improvement in the new plugin. Let's follow that thread to see where it leads, then head back here once we can use prerelease versions again. |
I can actually start already to check if the jar plugin could be used for asciidoctorj-core as this bug only affects the current "satellite" projects around core. |
👍 |
I am unsure if the jar plugin is a good approach. Testing This means that:
Packaging How do we want to enable a user to switch between different JRuby runtimes? What should we do with the satellite projects? At the moment I think the use case of the jruby-gradle.jar is a totally different one from what we are doing. (*) And my machine is not too slow, usually a clean AsciidoctorJ build takes about 5 minutes. |
I've been out of touch on this, but any bugs you might find related to The |
I'll add some context: I opened this post in the mailing-list: https://groups.google.com/forum/#!topic/jruby-gradle/bktpjT7Si5k. Finally, during today's gitter talk (to which I arrived late ><), this issue was filled in the jruby-gradle-plugin to see to it. |
Thanks for identifying these requirements, @robertpanzer and @abelsromero. This is exactly the steps we need to take so that we can converge with the plugin. The way I look at the custom scripts in AsciidoctorJ is like a requirements list for what we would need to switch to the plugin. I do believe that rolling this into a Gradle plugin / task is the goal here. If fixing the jar plugin to cover this use case (a very common use case, I might add), then that's great. If it means another plugin or task, then that's what we'll need to do. But I think we definitely want to eventually get rid of the custom scripting. The custom filtering would be nice, but I wouldn't say it's a hard requirement. We really shouldn't have to be doing that...better is to fix the gems upstream. We just happened to be able to use that workaround in the past. Of course, all of this packaging would be totally eliminated if JRuby had the ability to use a gem directly, without having to repackage it. I dream of that day :) |
If we all agree that this is true, we may want to start pushing for a new task, as I suggested in my last comment. |
@ysb33r Here you are:) |
One thing to realise is that once we go for JRuby 9k we wave goodbye to 1.6 compatibility. The latter versions of JRuby-Gradle are also no longer 1.6 compatible. This will also have a knock-on effect on the asciidoctor-gradle plugin. |
At the moment the 1.6.0 snapshots already compile for Java 7. Would this be an issue for future gradle plugins?
|
@aalmiray might have an opinion, but I would just settle for 1.7. The current asciidoctor-gradle plugin (1.5.3) has enough stable functionality for people who still use 1.6. |
ALso currently we cannot upgradle the Gradle version as nebula-publishing fails with anythign Gradle 2.3+. (Raised this as nebula-plugins/nebula-publishing-plugin#55). |
@robertpanzer I have upgraded to jruby-gradle |
Just ignore what I said there. It's late and I had |
I am however seeing 10 failures with both
I have upgraded Spock to (The branch is https://github.com/ysb33r/asciidoctorj/tree/jruby-gradle-upgradle). |
…e 1.1.5. Refactored build scripts
Arquillian Sputnik does not run with Spock 1.0 yet. |
The JRuby Gradle plugins have reached 1.0. We should upgrade and align with them.
http://jruby-gradle.org/news/2015/08/04/jrubygradle-one-point-oh/
Note that the default JRuby runtime is JRuby 9.0.0.0.
We should also look into the jar plugin again and see if we can use it now. Currently, we're only using the base plugin because the jar plugin didn't fit our use case. If that's still the case, we should make sure to file issues upstream so that eventually we can use it.
I think it's fine to upgrade only the 1.6.0 branch, but I'll leave that decision up to @robertpanzer.
The text was updated successfully, but these errors were encountered: