generated from Slimefun/Addon-Template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
674 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
/bin/ | ||
/.settings/ | ||
/target/ | ||
/.idea/ | ||
*.iml | ||
.gradle | ||
**/build/ | ||
!src/**/build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
# Avoid ignore Gradle wrappper properties | ||
!gradle-wrapper.properties | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
# Eclipse Gradle plugin generated files | ||
# Eclipse Core | ||
.project | ||
# JDT-specific (Eclipse Java Development Tools) | ||
.classpath | ||
dependency-reduced-pom.xml | ||
|
||
.idea/ | ||
vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
plugins { | ||
id("java") | ||
id("maven-publish") | ||
id("io.freefair.lombok") version "8.7.1" | ||
id("com.gradleup.shadow") version "8.3.0" | ||
id("net.minecrell.plugin-yml.bukkit") version "0.6.0" | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") | ||
maven("https://repo.papermc.io/repository/maven-public/") | ||
maven("https://jitpack.io") | ||
} | ||
|
||
dependencies { | ||
compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT") | ||
compileOnly("com.github.Slimefun:Slimefun4:RC-37") | ||
implementation("org.bstats:bstats-bukkit:3.0.3") | ||
implementation("com.google.code.findbugs:jsr305:3.0.2") | ||
implementation("net.guizhanss:guizhanlib-all:2.0.0-SNAPSHOT") | ||
} | ||
|
||
group = "io.github.thebusybiscuit" | ||
version = "UNOFFICIAL" | ||
description = "MobCapturer" | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_21 | ||
} | ||
|
||
publishing { | ||
publications.create<MavenPublication>("maven") { | ||
from(components["java"]) | ||
} | ||
} | ||
|
||
tasks.compileJava { | ||
options.encoding = "UTF-8" | ||
} | ||
|
||
tasks.javadoc { | ||
options.encoding = "UTF-8" | ||
} | ||
|
||
tasks.shadowJar { | ||
fun doRelocate(from: String) { | ||
val last = from.split(".").last() | ||
relocate(from, "io.github.thebusybiscuit.mobcapturer.libs.$last") | ||
} | ||
doRelocate("org.bstats") | ||
doRelocate("javax.annotation") | ||
doRelocate("io.papermc.paperlib") | ||
minimize() | ||
archiveClassifier = "" | ||
} | ||
|
||
bukkit { | ||
main = "io.github.thebusybiscuit.mobcapturer.MobCapturer" | ||
apiVersion = "1.18" | ||
authors = listOf("TheBusyBiscuit", "ybw0014") | ||
description = "A Slimefun Addon that adds a tool that allows you to capture mobs" | ||
website = "https://github.com/Slimefun-Addon-Community/MobCapturer" | ||
depend = listOf("Slimefun") | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.