Skip to content

Commit e4cfb0f

Browse files
committed
Refactor plugin usage
refer to `gretty plugin`'s plugin script idea to reduce code
1 parent f2904ec commit e4cfb0f

File tree

5 files changed

+51
-11
lines changed

5 files changed

+51
-11
lines changed

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,15 @@ This plugin provides following tasks:
2828
6. status:
2929
print the JBoss EAP server status
3030

31-
7. show:
31+
7. show: #since v1.0.2
3232
print the deployments
3333

3434
## How to use
3535
In `build.gradle`
3636

37-
First, setting `buildscript` block as below:
37+
First, apply plugin using url as below:
3838
~~~groovy
39-
buildscript {
40-
repositories{
41-
jcenter()
42-
}
43-
dependencies {
44-
classpath 'com.github.newnewcoder:jboss-curl-deploy-gradle-plugin:1.0.0'
45-
}
46-
}
47-
apply plugin: 'com.github.newnewcoder.jboss-curl-deploy-gradle-plugin'
39+
apply from: 'https://raw.githubusercontent.com/newnewcoder/jboss-curl-deploy-gradle-plugin/master/pluginScripts/jbossCurlDeploy.plugin'
4840
~~~
4941

5042
Fill in `jboss` block with JBoss console connection info:
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
6+
dependencies {
7+
classpath 'com.github.newnewcoder:jboss-curl-deploy-gradle-plugin:1.0.0'
8+
}
9+
}
10+
11+
if (!project.plugins.findPlugin(com.github.newnewcoder.jbosscurl.plugin.SimpleJbossEapDeployPlugin))
12+
project.apply(plugin: com.github.newnewcoder.jbosscurl.plugin.SimpleJbossEapDeployPlugin)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
6+
dependencies {
7+
classpath 'com.github.newnewcoder:jboss-curl-deploy-gradle-plugin:1.0.1'
8+
}
9+
}
10+
11+
if (!project.plugins.findPlugin(com.github.newnewcoder.jbosscurl.plugin.SimpleJbossEapDeployPlugin))
12+
project.apply(plugin: com.github.newnewcoder.jbosscurl.plugin.SimpleJbossEapDeployPlugin)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
6+
dependencies {
7+
classpath 'com.github.newnewcoder:jboss-curl-deploy-gradle-plugin:1.0.2'
8+
}
9+
}
10+
11+
if (!project.plugins.findPlugin(com.github.newnewcoder.jbosscurl.plugin.SimpleJbossEapDeployPlugin))
12+
project.apply(plugin: com.github.newnewcoder.jbosscurl.plugin.SimpleJbossEapDeployPlugin)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
6+
dependencies {
7+
classpath 'com.github.newnewcoder:jboss-curl-deploy-gradle-plugin:1.0.2'
8+
}
9+
}
10+
11+
if (!project.plugins.findPlugin(com.github.newnewcoder.jbosscurl.plugin.SimpleJbossEapDeployPlugin))
12+
project.apply(plugin: com.github.newnewcoder.jbosscurl.plugin.SimpleJbossEapDeployPlugin)

0 commit comments

Comments
 (0)