Upgrade JRuby plugin to 2.0.0-alpha.7
MODIFY
CHANGELOG.adoc
CHANGELOG.adoc
@@ -15,7 +15,7 @@ For a detailed view of what has changed, refer to the {uri-repo}/commits/master[
Build::
- * Load Gems directly from rubygems.org instead of using torquebox Maven proxy.
+ * Upgrade jruby-gradle-plugin to 2.0.0-alpha.7 and load Gems directly from rubygems.org instead of using torquebox Maven proxy.
== 2.2.0 (2019-12-17)

MODIFY
asciidoctorj-core/build.gradle
asciidoctorj-core/build.gradle
@@ -24,7 +24,7 @@ dependencies {
compileOnly "org.osgi:osgi.annotation:$osgiVersion"
}
-def gemFiles = fileTree(jruby.gemInstallDir) {
+def gemFiles = fileTree("${project.buildDir}/.gems") {
include 'specifications/*.gemspec'
include 'gems/*/lib/**'
include "gems/asciidoctor-*/data/**"

MODIFY
build.gradle
build.gradle
@@ -22,7 +22,7 @@ buildscript {
// modern plugins config
plugins {
- id 'com.github.jruby-gradle.base' version '1.7.0'
+ id 'com.github.jruby-gradle.base' version '2.0.0-alpha.7'
}
// TIP use -PpublishRelease=true to active release behavior regardless of the version
@@ -192,7 +192,7 @@ configure(subprojects.findAll { !it.isDistribution() }) {
}
repositories {
- rubygems('https://rubygems.org')
+ ruby.gems()
}
if (JavaVersion.current().isJava8Compatible()) {
@@ -226,7 +226,6 @@ configure(subprojects.findAll { !it.name.endsWith('-distribution') && ! it.name.
jruby {
defaultRepositories = false
defaultVersion = jrubyVersion
- execVersion = jrubyVersion
// TODO I'd like to be able to customize the name of the gemInstallDir
}

Upgrade JRuby plugin to 2.0.0-alpha.7