File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' net.minecrell.plugin-yml.bukkit' version ' 0.3.0'
3
+ id ' java-library'
3
4
}
4
5
5
6
repositories {
@@ -12,7 +13,7 @@ repositories {
12
13
dependencies {
13
14
compileOnly ' org.spigotmc:spigot-api:1.15.2-R0.1-SNAPSHOT'
14
15
15
- implementation project(' :SkyChanger-Core' )
16
+ api project(' :SkyChanger-Core' )
16
17
implementation ' org.bstats:bstats-bukkit:1.7'
17
18
}
18
19
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ buildscript {
11
11
plugins {
12
12
id ' org.spongepowered.plugin' version ' 0.9.0'
13
13
id ' net.minecrell.vanillagradle.server' version ' 2.2-6'
14
+ id ' java-library'
14
15
}
15
16
16
17
minecraft {
@@ -38,7 +39,7 @@ repositories {
38
39
dependencies {
39
40
compileOnly ' org.spongepowered:spongeapi:7.1.0'
40
41
41
- implementation project(' :SkyChanger-Core' )
42
+ api project(' :SkyChanger-Core' )
42
43
implementation ' org.bstats:bstats-sponge:1.7'
43
44
}
44
45
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' net.minecrell.licenser' version ' 0.4.1'
3
- id ' com.github.johnrengelman.shadow' version ' 4.0.3 '
4
- id ' com.jfrog.bintray' version ' 1.8.4 '
3
+ id ' com.github.johnrengelman.shadow' version ' 4.0.1 '
4
+ id ' com.jfrog.bintray' version ' 1.8.3 '
5
5
}
6
6
7
7
allprojects {
@@ -31,10 +31,20 @@ subprojects {
31
31
32
32
def major = ' 3'
33
33
def minor = ' 1'
34
- def spongeRevision = ' 0 '
35
- def bukkitRevision = ' 0 '
34
+ def spongeRevision = ' 1 '
35
+ def bukkitRevision = ' 1 '
36
36
37
- version = " ${ major} .${ minor} .${ project.name.endsWith('Sponge') ? spongeRevision : bukkitRevision} "
37
+ def rev
38
+
39
+ if (project. name. endsWith(' Sponge' )) {
40
+ rev = spongeRevision
41
+ } else if (project. name. endsWith(' Bukkit' )) {
42
+ rev = bukkitRevision
43
+ } else {
44
+ rev = spongeRevision. toInteger() > bukkitRevision. toInteger() ? spongeRevision : bukkitRevision
45
+ }
46
+
47
+ version = " ${ major} .${ minor} .${ rev} "
38
48
39
49
tasks. withType(JavaCompile ) {
40
50
options. encoding = ' UTF-8'
You can’t perform that action at this time.
0 commit comments