File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
main/groovy/com/github/jrubygradle/jar
test/groovy/com/github/jrubygradle/jar Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ import org.gradle.api.tasks.StopExecutionException
23
23
import org.gradle.api.tasks.bundling.Jar
24
24
import org.gradle.api.tasks.bundling.ZipEntryCompression
25
25
26
+ import static com.github.jrubygradle.JRubyPlugin.TASK_GROUP_NAME
27
+
26
28
/**
27
29
* JRubyJar creates a Java Archive with Ruby code packed inside of it.
28
30
*
@@ -247,7 +249,9 @@ class JRubyJar extends Jar {
247
249
appendix = ' jruby'
248
250
/* Make sure our default configuration is present regardless of whether we use it or not */
249
251
prepareTask = project. task(" prepare${ prepareNameForSuffix(name)} " , type : JRubyPrepare )
252
+ prepareTask. group TASK_GROUP_NAME
250
253
dependsOn prepareTask
254
+ group TASK_GROUP_NAME
251
255
252
256
// TODO get rid of this and try to adjust the CopySpec for the gems
253
257
// to exclude '.jrubydir'
Original file line number Diff line number Diff line change @@ -21,6 +21,17 @@ class JRubyJarSpec extends Specification {
21
21
}
22
22
}
23
23
24
+ @Issue (' https://github.com/jruby-gradle/jruby-gradle-plugin/issues/357' )
25
+ void ' group should be set to "JRuby"' () {
26
+ given :
27
+ JRubyJar task = project. task(' spock-jar' , type : JRubyJar )
28
+ def prepareTask = project. tasks. find { it. name == ' prepareSpock-jar' }
29
+
30
+ expect :
31
+ task. group == ' JRuby'
32
+ prepareTask. group == task. group
33
+ }
34
+
24
35
void " jrubyVersion should be configurable in a Gradle conventional way" () {
25
36
given :
26
37
final String version = ' 1.7.20'
You can’t perform that action at this time.
0 commit comments