-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
415 changed files
with
252 additions
and
166 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,77 +1,82 @@ | ||
val utf8: String = Charsets.UTF_8.name() | ||
val javaVersion: Int = property("java.version").toString().toInt() | ||
val javaCompilerArgs: String = property("java.compilerArgs").toString() | ||
val projectGroup: String = property("project.group").toString() | ||
val projectVersion: Any = property("project.version")!! | ||
val projectDescription: String = property("project.description").toString() | ||
|
||
plugins { | ||
java | ||
alias(libs.plugins.paper.userdev) | ||
alias(libs.plugins.shadow) | ||
alias(libs.plugins.run.paper) | ||
alias(libs.plugins.shadow) apply false | ||
alias(libs.plugins.paper.userdev) apply false | ||
alias(libs.plugins.paper.run) apply false | ||
} | ||
|
||
group = "com.minersstudios" | ||
version = "1.0.0" | ||
description = "A Minecraft plugin for WhoMine" | ||
subprojects { | ||
apply(plugin = "java") | ||
|
||
java { | ||
toolchain.languageVersion.set(JavaLanguageVersion.of(17)) | ||
} | ||
group = project.group | ||
version = projectVersion | ||
description = projectDescription | ||
|
||
repositories { | ||
mavenCentral() | ||
maven("https://repo.papermc.io/repository/maven-public/") | ||
maven("https://repo.codemc.org/repository/maven-public/") | ||
maven("https://maven.playpro.com") | ||
} | ||
java { | ||
toolchain.languageVersion.set(JavaLanguageVersion.of(javaVersion)) | ||
} | ||
|
||
dependencies { | ||
paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT") | ||
compileOnly(libs.jetbrains.annotations) | ||
compileOnly(libs.jackson.annotations) | ||
compileOnly(libs.jda) | ||
compileOnly(libs.authme) | ||
compileOnly(libs.coreprotect) | ||
} | ||
repositories { | ||
mavenCentral() | ||
maven("https://repo.papermc.io/repository/maven-public/") | ||
maven("https://repo.codemc.org/repository/maven-public/") | ||
maven("https://maven.playpro.com") | ||
} | ||
|
||
sourceSets { | ||
test { | ||
java { | ||
srcDirs("src/main/test/java") | ||
} | ||
dependencies { | ||
compileOnly(rootProject.libs.fastutil) | ||
compileOnly(rootProject.libs.google.guava) | ||
compileOnly(rootProject.libs.google.gson) | ||
compileOnly(rootProject.libs.google.jsr305) | ||
compileOnly(rootProject.libs.jetbrains.annotations) | ||
compileOnly(rootProject.libs.jackson.annotations) | ||
compileOnly(rootProject.libs.jda) | ||
} | ||
} | ||
|
||
tasks { | ||
val utf8 = Charsets.UTF_8.name() | ||
tasks { | ||
compileJava { | ||
options.encoding = utf8 | ||
|
||
assemble { | ||
dependsOn(reobfJar) | ||
} | ||
options.release.set(javaVersion) | ||
options.compilerArgs.add(javaCompilerArgs) | ||
} | ||
|
||
compileJava { | ||
options.encoding = utf8 | ||
jar { | ||
archiveBaseName.set("${rootProject.name}-${project.name}") | ||
destinationDirectory.set(file("$rootDir/build")) | ||
} | ||
|
||
options.release.set(17) | ||
options.compilerArgs.add("-Xlint:deprecation") | ||
} | ||
javadoc { | ||
enabled = false | ||
options.encoding = utf8 | ||
setDestinationDir(file("$rootDir/builds/javadoc")) | ||
} | ||
|
||
javadoc { | ||
options.encoding = utf8 | ||
processResources { | ||
filteringCharset = utf8 | ||
} | ||
} | ||
} | ||
|
||
processResources { | ||
filteringCharset = utf8 | ||
val props = mapOf( | ||
"name" to rootProject.name, | ||
"version" to rootProject.version, | ||
"description" to "A Minecraft plugin for WhoMine", | ||
"author" to "MinersStudios", | ||
"contributors" to "p0loskun, PackmanDude", | ||
"website" to "https://whomine.net", | ||
"apiVersion" to "'1.20'", | ||
"coreProtectVersion" to libs.versions.coreprotect.get(), | ||
"authMeVersion" to libs.versions.authme.get(), | ||
) | ||
|
||
inputs.properties(props) | ||
filesMatching("paper-plugin.yml") { | ||
expand(props) | ||
tasks { | ||
compileJava { enabled = false } | ||
processResources { enabled = false } | ||
classes { enabled = false } | ||
jar { | ||
doLast { | ||
file("build").deleteRecursively() | ||
} | ||
} | ||
assemble { enabled = false } | ||
testClasses { enabled = false } | ||
test { enabled = false } | ||
check { enabled = false } | ||
build { enabled = false } | ||
} |
Empty file.
4 changes: 2 additions & 2 deletions
4
...minersstudios/whomine/annotation/Key.java → ...rsstudios/whomine/api/annotation/Key.java
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
4 changes: 2 additions & 2 deletions
4
...studios/whomine/annotation/Namespace.java → ...ios/whomine/api/annotation/Namespace.java
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
4 changes: 2 additions & 2 deletions
4
...studios/whomine/annotation/StatusKey.java → ...ios/whomine/api/annotation/StatusKey.java
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
4 changes: 2 additions & 2 deletions
4
...studios/whomine/status/FailureStatus.java → ...ios/whomine/api/status/FailureStatus.java
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
4 changes: 2 additions & 2 deletions
4
...ersstudios/whomine/status/ImplStatus.java → ...tudios/whomine/api/status/ImplStatus.java
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
8 changes: 4 additions & 4 deletions
8
.../minersstudios/whomine/status/Status.java → ...ersstudios/whomine/api/status/Status.java
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
2 changes: 1 addition & 1 deletion
2
...studios/whomine/status/StatusHandler.java → ...ios/whomine/api/status/StatusHandler.java
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
2 changes: 1 addition & 1 deletion
2
...studios/whomine/status/StatusWatcher.java → ...ios/whomine/api/status/StatusWatcher.java
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
4 changes: 2 additions & 2 deletions
4
...studios/whomine/status/SuccessStatus.java → ...ios/whomine/api/status/SuccessStatus.java
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
10 changes: 10 additions & 0 deletions
10
common/src/main/java/com/minersstudios/whomine/api/status/package-info.java
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,10 @@ | ||
/** | ||
* This package contains classes and interfaces related to statuses and their | ||
* management. They are thread-safe and can be safely used to manage plugin | ||
* statuses in a multithreading environment. | ||
* | ||
* @see com.minersstudios.whomine.api.status.Status | ||
* @see com.minersstudios.whomine.api.status.StatusWatcher | ||
* @see com.minersstudios.whomine.api.status.StatusHandler | ||
*/ | ||
package com.minersstudios.whomine.api.status; |
7 changes: 2 additions & 5 deletions
7
...ine/throwable/ConfigurationException.java → ...api/throwable/ConfigurationException.java
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
2 changes: 1 addition & 1 deletion
2
...mine/throwable/InvalidRegexException.java → .../api/throwable/InvalidRegexException.java
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,12 @@ | ||
java.version=17 | ||
java.compilerArgs=-Xlint:deprecation | ||
|
||
paper.version=1.20.4-R0.1-SNAPSHOT | ||
|
||
project.group=com.minersstudios | ||
project.name=WhoMine | ||
project.version=1.0.0 | ||
project.description=A Minecraft plugin for WhoMine | ||
project.author=MinersStudios | ||
project.contributors=p0loskun, PackmanDude | ||
project.website=https://whomine.net |
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,24 +1,32 @@ | ||
[versions] | ||
# libraries | ||
fastutil = "8.5.13" | ||
google-guava = "33.2.1-jre" | ||
google-gson = "2.11.0" | ||
google-jsr305 = "3.0.2" | ||
jetbrains-annotations = "24.0.1" | ||
jackson-annotations = "2.16.0" | ||
jda = "5.0.0-beta.23" | ||
authme = "5.6.0-SNAPSHOT" | ||
coreprotect = "22.2" | ||
jackson-annotations = "2.16.0" | ||
jda = "5.0.0-beta.23" | ||
authme = "5.6.0-SNAPSHOT" | ||
coreprotect = "22.2" | ||
|
||
# plugins | ||
paper-userdev = "1.5.11" | ||
shadow = "8.1.1" | ||
run-paper = "2.2.3" | ||
shadow = "8.1.1" | ||
paper-run = "2.2.3" | ||
|
||
[libraries] | ||
fastutil = { group = "it.unimi.dsi", name = "fastutil", version.ref = "fastutil" } | ||
google-guava = { group = "com.google.guava", name = "guava", version.ref = "google-guava" } | ||
google-gson = { group = "com.google.code.gson", name = "gson", version.ref = "google-gson" } | ||
google-jsr305 = { group = "com.google.code.findbugs", name = "jsr305", version.ref = "google-jsr305" } | ||
jetbrains-annotations = { group = "org.jetbrains", name = "annotations", version.ref = "jetbrains-annotations" } | ||
jackson-annotations = { group = "com.fasterxml.jackson.core", name = "jackson-annotations", version.ref = "jackson-annotations" } | ||
jda = { group = "net.dv8tion", name = "JDA", version.ref = "jda" } | ||
authme = { group = "fr.xephi", name = "authme", version.ref = "authme" } | ||
coreprotect = { group = "net.coreprotect", name = "coreprotect", version.ref = "coreprotect" } | ||
jackson-annotations = { group = "com.fasterxml.jackson.core", name = "jackson-annotations", version.ref = "jackson-annotations" } | ||
jda = { group = "net.dv8tion", name = "JDA", version.ref = "jda" } | ||
authme = { group = "fr.xephi", name = "authme", version.ref = "authme" } | ||
coreprotect = { group = "net.coreprotect", name = "coreprotect", version.ref = "coreprotect" } | ||
|
||
[plugins] | ||
paper-userdev = { id = "io.papermc.paperweight.userdev", version.ref = "paper-userdev" } | ||
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" } | ||
run-paper = { id = "xyz.jpenilla.run-paper", version.ref = "run-paper" } | ||
paper-run = { id = "xyz.jpenilla.run-paper", version.ref = "paper-run" } | ||
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" } |
Oops, something went wrong.