diff --git a/cookbook.html b/cookbook.html new file mode 100644 index 0000000..313e525 --- /dev/null +++ b/cookbook.html @@ -0,0 +1,562 @@ + + + + + + + +JRuby Cookbook + + + + + + +
+
+

Basic Examples

+
+
+

Running RSpec

+
+
+
/* Add the JRuby Gradle "base" plugin as a dependency of our build script */
+buildscript {
+    repositories { jcenter() }
+    dependencies {
+        classpath 'com.github.jruby-gradle:jruby-gradle-plugin:0.1.9'
+    }
+}
+
+/*
+ * Importing the JRubyExec type class so we can create our own JRubyExec-based
+ * task below
+ */
+import com.github.jrubygradle.JRubyExec
+
+dependencies {
+    /* We need RSpec gems from rubygems.org to run RSpec */
+    jrubyExec group: 'rubygems', name: 'rspec', version: '3.1.+'
+}
+
+task spec(type: JRubyExec) {
+    group 'JRuby'
+    description 'Execute the RSpecs in JRuby'
+    jrubyArgs '-S'
+    script 'rspec'
+}
+
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/index.html b/index.html index 6b50848..cbeab4a 100644 --- a/index.html +++ b/index.html @@ -507,7 +507,14 @@ table.CodeRay td.code>pre{padding:0}
Table of Contents
@@ -515,11 +522,11 @@ table.CodeRay td.code>pre{padding:0}
-

JRuby Gradle is a set of Gradle plugins which make it -easy to build, test, manage and package JRuby projects. -By relying on Gradle to provide much of the basic task and dependency -management functionality, JRuby Gradle provides high quality build tooling for -Ruby and Java developers.

+

JRuby Gradle is a set of +Gradle plugins which make it easy to build, test, +manage and package JRuby projects. By relying on Gradle +to provide much of the basic task and dependency management functionality, +JRuby Gradle provides high quality build tooling for Ruby and Java developers.

@@ -589,13 +596,55 @@ page for the latest version of the base plugin.

Plugins

- +
+

Base

+
+

The base plugin is the foundation for all of the other plugins. It provides the +core JRuby dependency, Ruby gem dependency resolution and the +JRubyExec task type.

+
+
+

Learn more about the base plugin

+
+
+
+

Jar

+
+

The jar plugin helps package .jar files for projects. The plugin supports creating .jar artifacts that are ready to be included in other projects, it also supports creating self-contained executable archives.

+
+
+

Learn more about the jar plugin

+
+
+
+

War

+
+

Like the Jar plugin, the war plugin helps package .war files for +projects. Unlike the Jar plugin this plugin is primarily responsible for +creating JRuby-based web application artifacts. Similar to the Jar however, +the war plugin can create self-contained executable archives.

+
+
+

Learn more about the war plugin

+
+
+
+

Storm

+
+

The Storm plugin enables developers to create +Apache Storm applications in Ruby via the +Redstorm library.

+
+
+

Learn more about the storm plugin

+
+
diff --git a/plugins/base.html b/plugins/base.html new file mode 100644 index 0000000..f7809ff --- /dev/null +++ b/plugins/base.html @@ -0,0 +1,529 @@ + + + + + + + +The Base Plugin + + + + + + +
+
+

JRubyExec

+
+
+

Hey

+
+
+
+
+ + + \ No newline at end of file diff --git a/start.html b/start.html index 83c73ad..76f663f 100644 --- a/start.html +++ b/start.html @@ -513,7 +513,7 @@ table.CodeRay td.code>pre{padding:0}