Skip to content

Commit a6df493

Browse files
committed
improved build script
1 parent aed53c0 commit a6df493

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

jbbp-plugins/jbbp-gradle/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ targetCompatibility = 1.6
1313

1414
dependencies {
1515
compile gradleApi()
16+
compile localGroovy()
1617

1718
compile "commons-io:commons-io:2.5"
1819
compile "com.igormaznitsa:jbbp:" + jbbpVersion
@@ -48,7 +49,7 @@ sourceSets {
4849
}
4950

5051
pluginBundle {
51-
website = 'http://www.igormaznitsa.com/'
52+
website = 'http://www.igormaznitsa.com'
5253
vcsUrl = 'https://github.com/raydac/java-binary-block-parser'
5354
description = 'JBBP script translator!'
5455
tags = ['jbbp', 'converter']

jbbp-plugins/jbbp-gradle/pom.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@
2222
</dependency>
2323
</dependencies>
2424

25+
<properties>
26+
<gradleGoal>install</gradleGoal>
27+
</properties>
28+
29+
<profiles>
30+
<profile>
31+
<id>publishGradle</id>
32+
<properties>
33+
<gradleGoal>publishPlugins</gradleGoal>
34+
</properties>
35+
</profile>
36+
</profiles>
37+
2538
<build>
2639
<plugins>
2740
<plugin>
@@ -88,7 +101,7 @@
88101
<gradleVersion>4.1</gradleVersion>
89102
<tasks>
90103
<task>clean</task>
91-
<task>install</task>
104+
<task>${gradleGoal}</task>
92105
</tasks>
93106
</configuration>
94107
<executions>

0 commit comments

Comments
 (0)