File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 37
37
= page.title
38
38
= content
39
39
40
-
41
40
%hr /
41
+
42
+ %div #improve
43
+ %a {:href => " https://github.com/jruby-gradle/jruby-gradle-plugin/edit/master/docs/#{ page.relative_source_path } " }
44
+ improve this page
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ Ruby and Java developers alike.
24
24
The simplest example is a hello-world from Gradle, using JRuby/Gradle we can
25
25
execute a Ruby script, which has Ruby-based dependencies:
26
26
27
- .build.gradle
27
+ .build.gradle (link:https://github.com/jruby-gradle/jruby-gradle-plugin/blob/master/examples/run-simple-ruby-script/build.gradle[full source])
28
28
[source, gradle]
29
29
----
30
30
include::../examples/run-simple-ruby-script/build.gradle[lines=16..30]
31
31
----
32
32
33
- .print-script.rb
33
+ .print-script.rb (link:https://github.com/jruby-gradle/jruby-gradle-plugin/blob/master/examples/run-simple-ruby-script/print-script[full source])
34
34
[source, ruby]
35
35
----
36
36
include::../examples/run-simple-ruby-script/print-script.rb[]
@@ -44,25 +44,23 @@ image::images/print-script-output.png[]
44
44
45
45
=== Packaging some Ruby
46
46
47
- .build.gradle
47
+ .build.gradle (link:https://github.com/jruby-gradle/jruby-gradle-plugin/blob/master/examples/self-executing-jar/build.gradle[full source])
48
48
[source, gradle]
49
49
----
50
50
include::../examples/self-executing-jar/build.gradle[lines=17..33]
51
51
----
52
52
53
- .entrypoint.rb
53
+ .entrypoint.rb (link:https://github.com/jruby-gradle/jruby-gradle-plugin/blob/master/examples/self-executing-jar/entrypoint.rb[full source])
54
54
[source, ruby]
55
55
----
56
56
include::../examples/self-executing-jar/entrypoint.rb[]
57
57
----
58
- .
58
+
59
59
60
60
Executing `./gradlew jrubyJar` will build a `.jar` file inside of the
61
61
`build/libs` directory which can then be invoked:
62
62
63
63
`% java -jar build/libs/self-executing-jar-jruby.jar`
64
64
65
-
66
65
image::images/self-executing-jar-output.png[]
67
66
68
-
Original file line number Diff line number Diff line change 26
26
# main_nav .on a {
27
27
color : # FFF ;
28
28
}
29
+
30
+ # improve {
31
+ margin-right : 5px ;
32
+ margin-bottom : 15px ;
33
+ font-weight : bold;
34
+ font-size : 0.8em ;
35
+ float : right;
36
+ }
You can’t perform that action at this time.
0 commit comments