-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 79119b4
Showing
20 changed files
with
1,213 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Gradle-specific files | ||
.gradle/ | ||
build/ | ||
|
||
# Gradle wrapper files | ||
!gradle/wrapper/gradle-wrapper.jar | ||
gradle/wrapper/gradle-wrapper.properties | ||
|
||
# Java-specific files | ||
*.class | ||
*.jar | ||
*.war | ||
*.ear | ||
|
||
# IntelliJ IDEA specific files | ||
.idea/ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
out/ | ||
|
||
# NetBeans specific files | ||
nbproject/private/ | ||
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
.nb-gradle/ | ||
|
||
# Eclipse specific files | ||
.classpath | ||
.project | ||
.settings/ | ||
bin/ | ||
|
||
# VS Code specific files | ||
.vscode/ | ||
|
||
# MacOS specific files | ||
.DS_Store | ||
|
||
# Windows specific files | ||
Thumbs.db | ||
ehthumbs.db | ||
Desktop.ini | ||
|
||
# Linux specific files | ||
*~ | ||
|
||
# Log files | ||
*.log | ||
|
||
# Temporary files | ||
*.tmp | ||
*.swp | ||
*.swo | ||
*.bak | ||
*.orig | ||
|
||
# Other | ||
**/logs/ | ||
**/tmp/ | ||
**/temp/ | ||
**/cache/ | ||
**/caches/ | ||
*.lock |
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,77 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
*/ | ||
|
||
plugins { | ||
`java-library` | ||
`maven-publish` | ||
id("com.github.johnrengelman.shadow") version("8.1.1") | ||
id("com.diffplug.spotless") version "7.0.0.BETA1" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
|
||
maven { | ||
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") | ||
} | ||
|
||
maven { | ||
url = uri("https://oss.sonatype.org/content/groups/public/") | ||
} | ||
|
||
maven { | ||
url = uri("https://repo.maven.apache.org/maven2/") | ||
} | ||
} | ||
|
||
dependencies { | ||
compileOnly(libs.org.spigotmc.spigot.api) | ||
implementation("org.bstats:bstats-bukkit:3.0.2") | ||
implementation("net.kyori:adventure-api:4.17.0") | ||
implementation("net.kyori:adventure-text-minimessage:4.17.0") | ||
implementation("net.kyori:adventure-text-serializer-legacy:4.17.0") | ||
} | ||
|
||
group = "net.fameless" | ||
version = "1.0.0" | ||
description = "LevelBorder" | ||
java.sourceCompatibility = JavaVersion.VERSION_17 | ||
|
||
publishing { | ||
publications.create<MavenPublication>("maven") { | ||
from(components["java"]) | ||
} | ||
} | ||
|
||
tasks { | ||
shadowJar { | ||
this.archiveClassifier.set(null as String?) | ||
this.archiveFileName.set("${project.name}-${project.version}.${this.archiveExtension.getOrElse("jar")}") | ||
|
||
relocate("org.bstats", "net.fameless.relocation.bstats") | ||
} | ||
|
||
build { | ||
dependsOn(shadowJar) | ||
} | ||
|
||
|
||
withType<JavaCompile> { | ||
options.encoding = "UTF-8" | ||
} | ||
|
||
withType<Javadoc> { | ||
options.encoding = "UTF-8" | ||
} | ||
|
||
spotless { | ||
java { | ||
target("**/*.java") | ||
endWithNewline() | ||
trimTrailingWhitespace() | ||
removeUnusedImports() | ||
} | ||
} | ||
} |
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,8 @@ | ||
# This file was generated by the Gradle 'init' task. | ||
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format | ||
|
||
[versions] | ||
org-spigotmc-spigot-api = "1.20.4-R0.1-SNAPSHOT" | ||
|
||
[libraries] | ||
org-spigotmc-spigot-api = { module = "org.spigotmc:spigot-api", version.ref = "org-spigotmc-spigot-api" } |
Oops, something went wrong.