1
-
2
-
3
1
ext {
4
- testRepoDir = new File (buildDir,' tmp/test/repo' )
2
+ testRepoDir = new File (buildDir, ' tmp/test/repo' )
5
3
}
6
4
7
5
configurations {
@@ -11,7 +9,7 @@ configurations {
11
9
}
12
10
13
11
generateTestConfig {
14
- testProperties mavenrepo : new File (project(' :jruby-gradle-base-plugin' ). projectDir,' src/integTest/mavenrepo' ). absolutePath,
12
+ testProperties mavenrepo : new File (project(' :jruby-gradle-base-plugin' ). projectDir, ' src/integTest/mavenrepo' ). absolutePath,
15
13
flatrepo : testRepoDir. absolutePath
16
14
}
17
15
@@ -26,40 +24,40 @@ dependencies {
26
24
compile ' org.ow2.asm:asm-commons:[6.1,6.99)'
27
25
compile ' org.apache.ant:ant:[1.10.6,2.0)'
28
26
29
- testCompile (spockVersion) {
30
- exclude module : ' groovy-all'
27
+ testCompile(spockVersion) {
28
+ exclude module : ' groovy-all'
31
29
}
32
30
33
31
// For the testRepo tests I am locking the versions, instead of a open version, as it makes
34
32
// unit testing easier, This does not affect the final artifact.
35
33
// If you change values here, you need to update JRubyJarPluginSpec as well.
36
- testRepo (" org.jruby:jruby-complete:${ jrubyVersion} " ) {
34
+ testRepo(" org.jruby:jruby-complete:${ jrubyVersion} " ) {
37
35
transitive = false
38
36
}
39
37
40
- testRepo (' rubygems:jar-dependencies:0.1.15' ) {
38
+ testRepo(' rubygems:jar-dependencies:0.1.15' ) {
41
39
transitive = false
42
40
}
43
41
44
- testRepo (' org.jruby.mains:jruby-mains:0.6.1' ) {
42
+ testRepo(' org.jruby.mains:jruby-mains:0.6.1' ) {
45
43
transitive = false
46
44
}
47
45
48
- testRepoOldFiles (' de.saumya.mojo:jruby-mains:0.3.0' ) {
46
+ testRepoOldFiles(' de.saumya.mojo:jruby-mains:0.3.0' ) {
49
47
transitive = false
50
48
}
51
49
52
- testRepoOldFiles (" org.jruby:jruby-complete:1.7.11" ) {
50
+ testRepoOldFiles(" org.jruby:jruby-complete:1.7.11" ) {
53
51
transitive = false
54
52
}
55
53
56
- testRepo (spockVersion) {
54
+ testRepo(spockVersion) {
57
55
transitive = false
58
56
}
59
57
}
60
58
61
59
62
- task prepareTestRepo( type : Copy ) {
60
+ task prepareTestRepo(type : Copy ) {
63
61
into testRepoDir
64
62
from project. configurations. testRepo
65
63
from project. configurations. testRepoOldFiles
@@ -70,16 +68,15 @@ test {
70
68
dependsOn prepareTestRepo
71
69
}
72
70
73
-
74
71
groovydoc {
75
72
docTitle = " ${ archivesBaseName} ${ version} "
76
73
}
77
74
78
- task installGroovyDoc (type : Copy ) {
79
- from ({ new File (buildDir,' docs/groovydoc' )}) {
75
+ task installGroovyDoc(type : Copy ) {
76
+ from({ new File (buildDir, ' docs/groovydoc' ) }) {
80
77
include ' **'
81
78
}
82
- into {new File (project. properties. jrubyGradleWebsiteInstallDir," docs/api/${ archivesBaseName} /${ version} " )}
79
+ into { new File (project. properties. jrubyGradleWebsiteInstallDir, " docs/api/${ archivesBaseName} /${ version} " ) }
83
80
onlyIf { project. hasProperty(' jrubyGradleWebsiteInstallDir' ) }
84
81
}
85
82
@@ -93,7 +90,7 @@ pluginBundle {
93
90
id = ' com.github.jruby-gradle.jar'
94
91
displayName = ' JRuby/Gradle base plugin'
95
92
description = ' This plugin encapsulates java archive building functionality for JRuby Gradle projects'
96
- tags = ([' jruby' ,' fatjar' ])
93
+ tags = ([' jruby' , ' fatjar' ])
97
94
}
98
95
}
99
96
}
0 commit comments