Publish of Github pages from Gradle.

This commit is contained in:
R. Tyler Croy 2015-08-07 08:24:54 -07:00
parent 10b259a700
commit aa38a3f4e7
24 changed files with 203 additions and 111 deletions

View File

@ -0,0 +1,137 @@
<html>
<head>
<link href='/stylesheets/foundation.css' rel='stylesheet'>
<link href='/stylesheets/jrubygradle.css' rel='stylesheet'>
<link href='/news.atom' rel='alternate' title='JRuby/Gradle News' type='application/atom+xml'>
<title>
JRubyJar JRubyExec conflict on jrubyVersion/jrubyMainsVersion
</title>
</head>
<body>
<a href='https://github.com/jruby-gradle'>
<img alt='Fork me on GitHub' data-canonical-src='https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png' src='https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67' style='position: absolute; top: 0; right: 0; border: 0;'>
</a>
<div id='main_nav'>
<ul>
<li>
<a href='/'>
Home
</a>
</li>
<li>
<a href='/docs/'>
Documentation
</a>
</li>
<li>
<a href='/community/'>
Community
</a>
</li>
<li>
<a href='/news/'>
News
</a>
</li>
<li>
<a href='/download/'>
Download
</a>
</li>
<li>
<a href='https://travis-ci.org/jruby-gradle/jruby-gradle-plugin'>
<img src='https://travis-ci.org/jruby-gradle/jruby-gradle-plugin.svg?branch=master'>
</a>
</li>
</ul>
</div>
<div id='content'>
<h1>
JRubyJar JRubyExec conflict on jrubyVersion/jrubyMainsVersion
</h1>
<div class="sect1">
<h2 id="what-s-going-on"><a class="anchor" href="#what-s-going-on"></a>What&#8217;s going on?</h2>
<div class="sectionbody">
<div class="paragraph">
<p>The
<a href="/groovydoc/jruby-gradle-jar-plugin/com/github/jrubygradle/jar/JRubyJar.html">JRubyJar</a>
task allows the user to define a specific version of
<a href="http://jruby.org">JRuby</a> via the <code>jrubyVersion</code> property and a specific
version of the library <code>jruby-mains</code> via the <code>jrubyMainsVersion</code> property.
Changing these versions requires requested version to be added to a dependency
graph. In order to prevent unintentional conflicts in the dependency graph, the
<a href="/jar/">jar</a> plugin will prevent a <code>JRubyJar</code> task from adding a different
JRuby/jruby-mains version to the <em>default</em> <code>jrubyJar</code>
<a href="https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.Configuration.html">configuration</a>.</p>
</div>
<div class="admonitionblock note">
<table>
<tr>
<td class="icon">
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
This is effectively the same <a href="/errors/jrubyexec-version-conflict/">behavior that JRubyExec exhibits</a>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="sect1">
<h2 id="how-to-fix-it"><a class="anchor" href="#how-to-fix-it"></a>How to fix it</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Fixing this behavior is relatively easy, the <code>JRubyJar</code> task which requires its
own custom version of JRuby or jruby-mains to be installed should <em>also</em> use a
custom, user-defined,
<a href="https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.Configuration.html">configuration</a>.
E.g.</p>
</div>
<div class="listingblock">
<div class="title">build.gradle</div>
<div class="content">
<pre class="CodeRay highlight nowrap"><code data-lang="gradle">configurations {
backwardsCompat
}
dependencies {
backwardsCompat 'rubygems:sinatra:1.0.0'
}
task buildLegacyJar(type: JRubyJar) {
configuration backwardsCompat
jrubyVersion '1.7.19'
jrubyMainsVersion '0.2.0'
}</code></pre>
</div>
</div>
<div class="sect2">
<h3 id="okay-that-didn-t-work"><a class="anchor" href="#okay-that-didn-t-work"></a>Okay, that didn&#8217;t work</h3>
<div class="paragraph">
<p>If that work-around didn&#8217;t help fix the issue, then you may have encountered an
unknown <strong>bug!</strong>. Please
<a href="https://github.com/jruby-gradle/jruby-gradle-plugin/issues">file an issue</a>
so we can correct the broken behavior!</p>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="links"><a class="anchor" href="#links"></a>Links</h2>
<div class="sectionbody">
<div class="ulist">
<ul>
<li>
<p><a href="https://github.com/jruby-gradle/jruby-gradle-plugin/issues/168">issue
#168</a> contains a reported side-effect of this behavior prior to an error
being generated</p>
</li>
</ul>
</div>
</div>
</div>
</div>
<hr>
</body>
</html>

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:52 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:47 PDT 2015 -->
<title>GemUtils.OverwriteAction (jruby-gradle-base-plugin 1.0.1 API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:52 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:47 PDT 2015 -->
<title>GemUtils (jruby-gradle-base-plugin 1.0.1 API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:52 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:47 PDT 2015 -->
<title>GenerateGradleRb (jruby-gradle-base-plugin 1.0.1 API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:52 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:47 PDT 2015 -->
<title>JRubyExec (jruby-gradle-base-plugin 1.0.1 API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:53 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:48 PDT 2015 -->
<title>JRubyPlugin (jruby-gradle-base-plugin 1.0.1 API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:53 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:48 PDT 2015 -->
<title>JRubyPluginExtension (jruby-gradle-base-plugin 1.0.1 API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:53 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:48 PDT 2015 -->
<title>JRubyPrepare (jruby-gradle-base-plugin 1.0.1 API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:52 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:47 PDT 2015 -->
<title>GemVersion (jruby-gradle-base-plugin 1.0.1 API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:52 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:47 PDT 2015 -->
<title>GemVersionResolver (jruby-gradle-base-plugin 1.0.1 API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:52 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:47 PDT 2015 -->
<title>JRubyExecDelegate (jruby-gradle-base-plugin 1.0.1 API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:52 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:47 PDT 2015 -->
<title>JRubyExecTraits (jruby-gradle-base-plugin 1.0.1 API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:53 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:48 PDT 2015 -->
<title>JRubyExecUtils (jruby-gradle-base-plugin 1.0.1 API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:54 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:50 PDT 2015 -->
<title>JRubyJar.Type (jruby-gradle-jar-plugin 1.0.1)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:54 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:50 PDT 2015 -->
<title>JRubyJar (jruby-gradle-jar-plugin 1.0.1)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
@ -182,25 +182,30 @@ if (location.href.indexOf('is-external=true') == -1) {
<tr class="rowColor">
<td class="colFirst"><code><strong>static&nbsp;java.lang.String</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#DEFAULT_MAIN_CLASS"></a>DEFAULT_MAIN_CLASS</code><br></td>
<td class="colLast"><code><a href="#DEFAULT_JRUBY_MAINS"></a>DEFAULT_JRUBY_MAINS</code><br></td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><strong>static&nbsp;java.lang.String</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#EXTRACTING_MAIN_CLASS"></a>EXTRACTING_MAIN_CLASS</code><br></td>
<td class="colLast"><code><a href="#DEFAULT_MAIN_CLASS"></a>DEFAULT_MAIN_CLASS</code><br></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><strong>java.lang.String</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#configuration"></a>configuration</code><br></td>
<td class="colFirst"><code><strong>static&nbsp;java.lang.String</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#EXTRACTING_MAIN_CLASS"></a>EXTRACTING_MAIN_CLASS</code><br></td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><strong>java.lang.String</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#jrubyMainsVersion"></a>jrubyMainsVersion</code><br></td>
<td class="colLast"><code><a href="#configuration"></a>configuration</code><br></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><strong>java.lang.String</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#jrubyMainsVersion"></a>jrubyMainsVersion</code><br></td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><strong>java.lang.String</strong></code>&nbsp;</td>
<td class="colLast"><code><a href="#mainClass"></a>mainClass</code><br></td>
</tr>
@ -328,6 +333,11 @@ if (location.href.indexOf('is-external=true') == -1) {
<td class="colLast"><code><strong><a href="#updateDependencies()">updateDependencies</a></strong>()</code><br></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</strong></code></td>
<td class="colLast"><code><strong><a href="#validateTaskConfiguration()">validateTaskConfiguration</a></strong>()</code><br>Verify that we are in a good configuration for execution</td>
</tr>
</table>
</ul>
</li>
@ -403,6 +413,14 @@ if (location.href.indexOf('is-external=true') == -1) {
</li>
</ul>
<a name="DEFAULT_JRUBY_MAINS"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>static&nbsp;final&nbsp;java.lang.String <strong>DEFAULT_JRUBY_MAINS</strong></h4>
<p></p>
</li>
</ul>
<a name="DEFAULT_MAIN_CLASS"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
@ -433,6 +451,7 @@ java.lang.String <strong>configuration</strong></h4>
<ul class="blockListLast">
<li class="blockList">
<h4>@Input
@java.util.Optional
java.lang.String <strong>jrubyMainsVersion</strong></h4>
<p></p>
</li>
@ -540,7 +559,13 @@ void <strong>applyConfig</strong>()</h4>
<ul class="blockListLast">
<li class="blockList">
<h4>java.lang.String <strong>getJrubyVersion</strong>()</h4>
<p> Return the project default unless set </p>
<p> Return the project default unless set
The reason that this is defined as a getter instead of just setting
<CODE>jrubyVersion</CODE> at task construction-time is to ensure that if a user
modifies the jrubyVersion on the project after we have instantiated, that we still
respect this setting
</p>
</li>
</ul>
@ -610,6 +635,14 @@ void <strong>jrubyVersion</strong>(java.lang.String version)</h4>
</li>
</ul>
<a name="validateTaskConfiguration()"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
<h4>void <strong>validateTaskConfiguration</strong>()</h4>
<p> Verify that we are in a good configuration for execution </p>
</li>
</ul>
</li>
</ul>

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:54 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:50 PDT 2015 -->
<title>JRubyJarPlugin (jruby-gradle-jar-plugin 1.0.1)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:54 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:50 PDT 2015 -->
<title>JRubyDirInfo (jruby-gradle-jar-plugin 1.0.1)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -311,6 +311,8 @@ if (location.href.indexOf('is-external=true') == -1) {
<h2 class="title">V</h2>
<dl>
<dt><span class="strong"><a href="com/github/jrubygradle/jar/JRubyJar.html#validateTaskConfiguration()" title="Method in JRubyJar">validateTaskConfiguration()</a></span> - Method in <a href="com/github/jrubygradle/jar/JRubyJar.html">JRubyJar</a>
</dt><dd> <div class="block">Verify that we are in a good configuration for execution</div></dd>
</dl>

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:56 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:51 PDT 2015 -->
<title>JRubyWar (jruby-gradle-war-plugin 1.0.1-alpha API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -6,7 +6,7 @@
<html>
<head>
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:22:56 PDT 2015 -->
<!-- Generated by groovydoc (2.3.3) on Fri Aug 07 08:24:51 PDT 2015 -->
<title>JRubyWarPlugin (jruby-gradle-war-plugin 1.0.1-alpha API)</title>
<meta name="date" content="2015-08-07">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

View File

@ -1,23 +1,10 @@
<feed xml:lang='en-US' xmlns='http://www.w3.org/2005/Atom'>
<id>http://jruby-gradle.org/</id>
<title>JRuby/Gradle News</title>
<updated>2015-08-04T04:53:54-07:00</updated>
<updated>2015-08-06T11:08:31-07:00</updated>
<link href='http://jruby-gradle.org/news.atom' rel='self' type='application/atom+xml'>
<link href='http://jruby-gradle.org/' rel='alternate' type='text/html'>
<entry>
<id>http://jruby-gradle.org/news/2015/08/05/jrubyconfeu-presentation/</id>
<title>{&quot;Presentation&quot;=&gt;&quot;JRuby/Gradle at JRubyConf EU 2015&quot;}</title>
<updated>2015-08-04T04:53:54-07:00</updated>
<published>2015-08-05T00:00:00+00:00</published>
<link href='http://jruby-gradle.org/news/2015/08/05/jrubyconfeu-presentation/' rel='alternate' type='text/html'>
<summary>
...
</summary>
<content type='html'>
</content>
</entry>
<entry>
<id>http://jruby-gradle.org/news/2015/08/04/jrubygradle-one-point-oh/</id>
<title>JRuby/Gradle 1.0 Announced</title>
<updated>2015-08-06T11:08:31-07:00</updated>

View File

@ -1,56 +0,0 @@
<html>
<head>
<link href='/stylesheets/foundation.css' rel='stylesheet'>
<link href='/stylesheets/jrubygradle.css' rel='stylesheet'>
<link href='/news.atom' rel='alternate' title='JRuby/Gradle News' type='application/atom+xml'>
<title>
{"Presentation"=>"JRuby/Gradle at JRubyConf EU 2015"}
</title>
</head>
<body>
<a href='https://github.com/jruby-gradle'>
<img alt='Fork me on GitHub' data-canonical-src='https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png' src='https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67' style='position: absolute; top: 0; right: 0; border: 0;'>
</a>
<div id='main_nav'>
<ul>
<li>
<a href='/'>
Home
</a>
</li>
<li>
<a href='/docs/'>
Documentation
</a>
</li>
<li>
<a href='/community/'>
Community
</a>
</li>
<li>
<a href='/news/'>
News
</a>
</li>
<li>
<a href='/download/'>
Download
</a>
</li>
<li>
<a href='https://travis-ci.org/jruby-gradle/jruby-gradle-plugin'>
<img src='https://travis-ci.org/jruby-gradle/jruby-gradle-plugin.svg?branch=master'>
</a>
</li>
</ul>
</div>
<div id='content'>
<h1>
{"Presentation"=>"JRuby/Gradle at JRubyConf EU 2015"}
</h1>
</div>
<hr>
</body>
</html>

View File

@ -51,17 +51,6 @@ JRuby/Gradle News
</h1>
<div class='post'>
<h1>
<a href='/news/2015/08/05/jrubyconfeu-presentation/'>{"Presentation"=>"JRuby/Gradle at JRubyConf EU 2015"}</a>
</h1>
<strong>
05 August 2015
</strong>
<div class='content'>
</div>
</div>
<div class='post'>
<h1>
<a href='/news/2015/08/04/jrubygradle-one-point-oh/'>JRuby/Gradle 1.0 Announced</a>
</h1>
<strong>

View File

@ -48,6 +48,12 @@
<changefreq>never</changefreq>
</url>
<url>
<loc>http://jruby-gradle.org/errors/jrubyjar-version-conflict/</loc>
<lastmod>2015-08-07</lastmod>
<priority>0.1</priority>
<changefreq>never</changefreq>
</url>
<url>
<loc>http://jruby-gradle.org/examples/basic-topology.gradle</loc>
<lastmod>2015-08-07</lastmod>
<priority>0.1</priority>
@ -90,12 +96,6 @@
<changefreq>never</changefreq>
</url>
<url>
<loc>http://jruby-gradle.org/news/2015/08/05/jrubyconfeu-presentation/</loc>
<lastmod>2015-08-05</lastmod>
<priority>0.1</priority>
<changefreq>never</changefreq>
</url>
<url>
<loc>http://jruby-gradle.org/news/</loc>
<lastmod>2015-08-07</lastmod>
<priority>0.1</priority>