Skip to content

Commit 0a75871

Browse files
committed
2 parents eaed249 + d603644 commit 0a75871

File tree

8 files changed

+37
-9
lines changed

8 files changed

+37
-9
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## v2.0.3
4+
5+
* s
6+
7+
## v2.0.2
8+
9+
* More futzing with [bintray](http://bintray.com) release code
10+
11+
## v2.0.1
12+
13+
* Add attributes to `build.gradle` for incorporating plugi into
14+
[plugins.gradle.org](http://plugins.gradle.org)
15+
16+
## v2.0.0
17+
18+
* Switch to a fully qualified gradle plugin name: `com.lookout.jruby`
19+
* Add the `war` plugin as a dependency to properly build `jrubyWar`
320

421
## v1.1.1
522

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ Create a `build.gradle` file in the root of `fancy-webapp/` with the following:
4040

4141

4242
```groovy
43-
apply plugin: 'jruby'
43+
apply plugin: 'com.lookout.jruby'
4444
4545
buildscript {
46-
repositories { maven { url 'http://dl.bintray.com/rtyler/jruby' } }
46+
repositories { jcenter() }
4747
4848
dependencies {
49-
classpath group: 'com.lookout', name: 'jruby-gradle-plugin', version: '1.1.+'
49+
classpath group: 'com.lookout', name: 'jruby-gradle-plugin', version: '2.0.+'
5050
}
5151
}
5252
```
@@ -183,7 +183,7 @@ You can then use that custom Gem repository with:
183183
```groovy
184184
// buildscript {} up here
185185
186-
apply plugin: 'jruby'
186+
apply plugin: 'com.lookout.jruby'
187187
188188
// Set our custom Gem repository
189189
jruby.gemrepo_url = 'http://localhost:8989/releases'

build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010

1111
group = 'com.lookout'
12-
version = '1.1.1'
12+
version = '2.0.3'
1313

1414
if (System.env.RELEASE != '1') {
1515
version = "${version}-SNAPSHOT"
@@ -66,6 +66,15 @@ bintray {
6666
pkg {
6767
repo = 'jruby'
6868
name = 'jruby-gradle-plugin'
69+
labels = ['jruby']
70+
71+
version {
72+
name = project.version
73+
vcsTag = "v${project.version}"
74+
attributes = ['gradle-plugin' : 'com.lookout.jruby:com.lookout:jruby-gradle-plugin']
75+
desc = "The purpose of plugin is to encapsulate useful Gradle functionality for JRuby projects. Use of this plugin replaces the need for both Bundler and Warbler in JRuby projects."
76+
77+
}
6978
}
7079
}
7180
bintrayUpload.dependsOn assemble

src/main/groovy/com/lookout/gradle/jruby/JRubyPlugin.groovy renamed to src/main/groovy/com/lookout/jruby/JRubyPlugin.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.lookout.gradle.jruby
1+
package com.lookout.jruby
22

33
import org.gradle.api.Plugin
44
import org.gradle.api.Project
@@ -12,6 +12,7 @@ import org.gradle.api.file.FileTree
1212
class JRubyPlugin implements Plugin<Project> {
1313
void apply(Project project) {
1414
project.apply plugin: 'java'
15+
project.apply plugin: 'war'
1516
project.extensions.create('jruby', JRubyPluginExtension)
1617

1718
project.repositories {

src/main/groovy/com/lookout/gradle/jruby/JRubyPluginExtension.groovy renamed to src/main/groovy/com/lookout/jruby/JRubyPluginExtension.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
package com.lookout.jruby
12

23
class JRubyPluginExtension {
34
// More details here: <http://rubygems-proxy.torquebox.org/>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
implementation-class=com.lookout.jruby.JRubyPlugin

src/main/resources/META-INF/gradle-plugins/jruby.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/test/groovy/com/lookout/gradle/jruby/JRubyPluginTest.groovy renamed to src/test/groovy/com/lookout/jruby/JRubyPluginTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.lookout.gradle.jruby
1+
package com.lookout.jruby
22

33
import org.gradle.api.*
44
import org.gradle.api.tasks.*
@@ -24,7 +24,7 @@ class JRubyPluginTest {
2424
}
2525
TESTROOT.mkdirs()
2626
project = ProjectBuilder.builder().build()
27-
project.apply plugin: 'jruby'
27+
project.apply plugin: 'com.lookout.jruby'
2828
}
2929

3030
@Test

0 commit comments

Comments
 (0)