1
- import org.gradle.plugins.ide.idea.model.IdeaModel
2
- import org.gradle.plugins.ide.idea.model.IdeaModule
3
-
4
- archivesBaseName = ' jruby-gradle-plugin' // TODO: FIX !!
5
-
6
1
apply plugin : TestConfigPlugin
7
2
apply plugin : ' java-gradle-plugin'
8
3
apply from : " ${ rootProject.projectDir} /gradle/integration-tests.gradle"
19
14
20
15
jrubyClassPathFromConfiguration = { Configuration cfg ->
21
16
def f = cfg. files. find { it. name. startsWith(' jruby-complete-' ) }
22
- return f?. absolutePath
17
+ return f?. absolutePath
23
18
}
24
19
}
25
20
@@ -41,20 +36,20 @@ dependencies {
41
36
42
37
compile " org.eclipse.jetty:jetty-server:${ jettyVersion} "
43
38
compile " org.eclipse.jetty:jetty-webapp:${ jettyVersion} "
44
- runtime( ' de.saumya.mojo:rubygems:0.2.3@war' ) {
39
+ runtime(' de.saumya.mojo:rubygems:0.2.3@war' ) {
45
40
// we just want the war file on the classloader for the application
46
41
// to find it and use the war-file from filesystem
47
42
exclude group : ' org.sonatype.nexus.plugins' , module : ' nexus-ruby-tools'
48
43
}
49
44
50
45
testJRubyPrepare " org.jruby:jruby-complete:${ jrubyVersion} "
51
46
52
- testCompile (spockVersion) {
53
- exclude module : ' groovy-all'
47
+ testCompile(spockVersion) {
48
+ exclude module : ' groovy-all'
54
49
}
55
50
56
- integrationTestCompile (spockVersion) {
57
- exclude module : ' groovy-all'
51
+ integrationTestCompile(spockVersion) {
52
+ exclude module : ' groovy-all'
58
53
}
59
54
60
55
// NOTE: This is used by JRubyPrepareGemsIntegrationSpec
@@ -79,14 +74,14 @@ dependencies {
79
74
// This is used by JRubyExecExtensionIntegrationSpec
80
75
integrationTestGems " org.bouncycastle:bcprov-jdk15on:${ bcprovVersion} "
81
76
82
- gradleTest" org.jruby:jruby-complete:${ jrubyVersion} "
77
+ gradleTest " org.jruby:jruby-complete:${ jrubyVersion} "
83
78
gradleTest ' rubygems:credit_card_validator:1.1.0'
84
79
gradleTest ' org.bouncycastle:bcprov-jdk15on:1.50'
85
80
}
86
81
87
82
test {
88
83
if (gradle. startParameter. isOffline()) {
89
- systemProperties ' TESTS_ARE_OFFLINE' : ' 1'
84
+ systemProperties ' TESTS_ARE_OFFLINE' : ' 1'
90
85
}
91
86
}
92
87
@@ -99,23 +94,23 @@ generateTestConfig {
99
94
leafyVersion : leafyVersion
100
95
}
101
96
102
- task copyIntegrationTestJRuby (type :Copy ) {
103
- from ({ configurations. testJRubyPrepare. files})
104
- into new File (buildDir,' tmp/integrationTest/flatRepo' )
97
+ task copyIntegrationTestJRuby(type : Copy ) {
98
+ from({ configurations. testJRubyPrepare. files })
99
+ into new File (buildDir, ' tmp/integrationTest/flatRepo' )
105
100
}
106
101
107
102
integrationTest {
108
- if (gradle. startParameter. isOffline()) {
109
- systemProperties ' TESTS_ARE_OFFLINE' : ' 1'
103
+ if (gradle. startParameter. isOffline()) {
104
+ systemProperties ' TESTS_ARE_OFFLINE' : ' 1'
110
105
}
111
106
dependsOn copyIntegrationTestJRuby
112
107
}
113
108
114
- task installGroovyDoc (type : Copy ) {
115
- from ({ new File (buildDir,' docs/groovydoc' )}) {
109
+ task installGroovyDoc(type : Copy ) {
110
+ from({ new File (buildDir, ' docs/groovydoc' ) }) {
116
111
include ' **'
117
112
}
118
- into {new File (project. properties. jrubyGradleWebsiteInstallDir," docs/api/${ archivesBaseName} /${ version} " )}
113
+ into { new File (project. properties. jrubyGradleWebsiteInstallDir, " docs/api/${ archivesBaseName} /${ version} " ) }
119
114
onlyIf { project. hasProperty(' jrubyGradleWebsiteInstallDir' ) }
120
115
}
121
116
@@ -152,7 +147,7 @@ bintray {
152
147
version {
153
148
name = project. version
154
149
vcsTag = " v${ project.version} "
155
- attributes = [' gradle-plugin' : ' com.github.jruby-gradle.base:com.github.jruby-gradle:jruby-gradle-plugin' ]
150
+ attributes = [' gradle-plugin' : ' com.github.jruby-gradle.base:com.github.jruby-gradle:jruby-gradle-plugin' ]
156
151
desc = ' The purpose of plugin is to encapsulate useful Gradle functionality for JRuby projects.'
157
152
158
153
}
0 commit comments