Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
pop4959 committed Dec 29, 2023
1 parent 42675df commit 92cb55a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
10 changes: 6 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import java.util.*

plugins {
id("java-library")
id("maven-publish")
id("com.github.johnrengelman.shadow") version "7.1.2"
id("com.github.johnrengelman.shadow") version "8.1.1"
}

java {
Expand All @@ -22,7 +24,7 @@ repositories {
}

dependencies {
compileOnly(group = "org.spigotmc", name = "spigot-api", version = "1.20.1-R0.1-SNAPSHOT")
compileOnly(group = "org.spigotmc", name = "spigot-api", version = "1.20.4-R0.1-SNAPSHOT")
compileOnly(group = "com.sk89q.worldedit", name = "worldedit-core", version = "7.1.0")
compileOnly(group = "com.sk89q.worldguard", name = "worldguard-bukkit", version = "7.0.0")
compileOnly(group = "com.palmergames.bukkit.towny", name = "towny", version = "0.98.2.0")
Expand All @@ -31,7 +33,7 @@ dependencies {
}
compileOnly(group = "com.github.MilkBowl", name = "VaultAPI", version = "1.7.1")
compileOnly(group = "com.google.guava", name = "guava", version = "23.0")
implementation(group = "org.bstats", name = "bstats-bukkit", version = "3.0.0")
implementation(group = "org.bstats", name = "bstats-bukkit", version = "3.0.2")
}

tasks {
Expand All @@ -50,7 +52,7 @@ tasks {
}
shadowJar {
archiveClassifier.set("")
archiveFileName.set("${rootProject.name.toUpperCase()}-${project.version}.jar")
archiveFileName.set("${rootProject.name.uppercase(Locale.getDefault())}-${project.version}.jar")
relocate("org.bstats", "${project.group}.${rootProject.name}.lib.bstats")
}
build {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
5 changes: 5 additions & 0 deletions src/main/java/com/griefcraft/bukkit/EntityBlockState.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ public BlockData getBlockData() {
return null;
}

@Override
public BlockState copy() {
return null;
}

@Override
public void setBlockData(BlockData arg0) {
// TODO Auto-generated method stub
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/griefcraft/util/MaterialUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static Material getMaterialById(int id) {
case 1:
return Material.STONE;
case 2:
return Material.GRASS;
return Material.GRASS_BLOCK;
case 3:
return Material.DIRT;
case 4:
Expand Down

0 comments on commit 92cb55a

Please sign in to comment.