This repository was archived by the owner on May 19, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed
src/main/groovy/com/github/jrubygradle/jar Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,16 @@ apply plugin: 'com.github.jrubygradle.jar'
31
31
32
32
This loads the following plugins if they are not already loaded:
33
33
+ ` com.github.jrubygradle.base `
34
- + ` java `
34
+ + ` java-base `
35
35
36
36
## Using the plugin
37
37
38
38
This plugin does not add any new tasks or extensions, extends the ` Jar ` task type with a ` jruby ` closure. If the ` java ` plugin
39
39
is loaded, then the ` jar ` task can also be configured.
40
40
41
41
``` groovy
42
+ apply plugin: 'java'
43
+
42
44
jar {
43
45
jruby {
44
46
@@ -105,7 +107,7 @@ buildscript {
105
107
106
108
apply plugin: 'com.github.jrubygradle.jar'
107
109
apply plugin: 'com.github.johnrengelman.shadow'
108
-
110
+ apply plugin: 'java'
109
111
```
110
112
111
113
### Configuring Shadow JAR
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class JRubyJarPlugin implements Plugin<Project> {
20
20
void apply (Project project ) {
21
21
22
22
project. apply plugin : ' com.github.jruby-gradle.base'
23
- project. apply plugin : ' java'
23
+ project. apply plugin : ' java-base '
24
24
project. configurations. maybeCreate(' jrubyEmbeds' )
25
25
project. configurations. maybeCreate(' jrubyJar' )
26
26
@@ -57,12 +57,15 @@ class JRubyJarPlugin implements Plugin<Project> {
57
57
58
58
}
59
59
60
- project. sourceSets {
61
- main {
62
- java {
63
- srcDir new File (project. buildDir,' generated/java' )
64
- }
65
- }
60
+ // project.sourceSets {
61
+ // main {
62
+ // java {
63
+ // srcDir new File(project.buildDir,'generated/java')
64
+ // }
65
+ // }
66
+ // }
67
+ project. sourceSets. matching { it. name == " main" } .all {
68
+ it. java. srcDir new File (project. buildDir,' generated/java' )
66
69
}
67
70
}
68
71
@PackageScope
You can’t perform that action at this time.
0 commit comments