@@ -13,7 +13,8 @@ class JRubyPlugin implements Plugin<Project> {
13
13
static final String RUBYGEMS_RELEASE_URL = ' http://rubygems-proxy.torquebox.org/releases'
14
14
15
15
void apply (Project project ) {
16
- project. apply plugin : ' java'
16
+ // REMOVE: project.apply plugin: 'java'
17
+
17
18
project. extensions. create(' jruby' , JRubyPluginExtension , project)
18
19
19
20
if (! project. repositories. metaClass. respondsTo(project. repositories, ' rubygemsRelease' )) {
@@ -29,8 +30,7 @@ class JRubyPlugin implements Plugin<Project> {
29
30
}
30
31
31
32
project. configurations. create(JRubyExec . JRUBYEXEC_CONFIG )
32
- project. configurations. create(JRubyWar . JRUBYWAR_CONFIG )
33
- project. configurations. create(JRubyJar . JRUBYJAR_CONFIG )
33
+ // MOVE: project.configurations.create(JRubyJar.JRUBYJAR_CONFIG)
34
34
JRubyExecDelegate . addToProject(project)
35
35
36
36
// In order for jrubyWar to work we'll need to pull in the warbler
@@ -46,21 +46,9 @@ class JRubyPlugin implements Plugin<Project> {
46
46
}
47
47
}
48
48
49
- project. dependencies {
50
- jrubyEmbeds group : ' com.lookout' , name : ' warbler-bootstrap' , version : ' 1.+'
51
- }
52
49
53
- // In order to update the testing cycle we need to tell unit tests where to
54
- // find GEMs. We are assuming that if someone includes this plugin, that they
55
- // will be writing tests that includes jruby and that they might need some
56
- // GEMs as part of the tests.
57
- project. tasks. test {
58
- environment GEM_HOME : project. extensions. getByName(' jruby' ). gemInstallDir
59
- dependsOn ' jrubyPrepareGems'
60
- }
61
50
62
51
JRubyExec . updateJRubyDependencies(project)
63
- JRubyWar . updateJRubyDependencies(project)
64
52
}
65
53
66
54
project. task(' jrubyClean' , type : Delete ) {
@@ -76,37 +64,6 @@ class JRubyPlugin implements Plugin<Project> {
76
64
gems project. configurations. gems
77
65
outputDir project. jruby. gemInstallDir
78
66
}
79
-
80
- project. task(' jrubyCacheJars' , type : Copy ) {
81
- group TASK_GROUP_NAME
82
- description ' Cache .jar-based dependencies into .jarcache/'
83
-
84
- from project. configurations. jrubyWar
85
- into " .jarcache"
86
- include ' **/*.jar'
87
- }
88
-
89
- project. task(' jrubyPrepare' ) {
90
- group TASK_GROUP_NAME
91
- description ' Pre-cache and prepare all dependencies (jars and gems)'
92
- dependsOn project. tasks. jrubyCacheJars, project. tasks. jrubyPrepareGems
93
- }
94
-
95
- // Only jRubyWar will depend on jrubyPrepare. Other JRubyWar tasks created by
96
- // build script authors will be under their own control
97
- // jrubyWar task will use jrubyWar as configuration
98
- project. task(' jrubyWar' , type : JRubyWar ) {
99
- group JRubyPlugin . TASK_GROUP_NAME
100
- description ' Create a JRuby-based web archive'
101
- dependsOn project. tasks. jrubyPrepare
102
- classpath project. configurations. jrubyWar
103
- }
104
-
105
- project. task(' jrubyJar' , type : JRubyJar ) {
106
- group JRubyPlugin . TASK_GROUP_NAME
107
- dependsOn project. tasks. jrubyPrepare
108
- dependsOn project. tasks. classes
109
- }
110
67
}
111
68
112
69
}
0 commit comments