Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}

withSourcesJar()
withJavadocJar()
}

tasks.shadowJar {
Expand All @@ -65,9 +68,9 @@ tasks.test {
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifact(tasks.shadowJar) {
builtBy(tasks.shadowJar)
}
from(components["shadow"])
artifact(tasks.named<Jar>("sourcesJar"))
artifact(tasks.named<Jar>("javadocJar"))

groupId = domain
artifactId = id
Expand Down
4 changes: 2 additions & 2 deletions common/src/main/java/gg/moonrise/engine/message/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static Message of(String content) {
}

/**
* Creates a Message object from multiple lines of strings, joining them with the <newline> delimiter.
* Creates a Message object from multiple lines of strings, joining them with the {@code <newline>} delimiter.
* @param lines the lines of strings to join
* @return a Message object containing the joined content
*/
Expand All @@ -33,7 +33,7 @@ public static Message of(String... lines) {
}

/**
* Creates a Message object from a list of strings, joining them with the <newline> delimiter.
* Creates a Message object from a list of strings, joining them with the {@code <newline>} delimiter.
* @param lines the list of strings to join
* @return a Message object containing the joined content
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* <p>The class uses a singleton pattern for the two possible instances ({@code true} and {@code false})
* to ensure memory efficiency and reference equality for instances with the same boolean value.</p>
*
* <h3>Usage Examples:</h3>
* <h2>Usage Examples:</h2>
* <pre>{@code
* OptionalBool condition = OptionalBool.of(someCondition);
*
Expand Down Expand Up @@ -218,4 +218,3 @@ public String toString() {
return "OptionalBool[" + value + "]";
}
}

9 changes: 6 additions & 3 deletions paper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}

withSourcesJar()
withJavadocJar()
}

tasks.jar {
Expand All @@ -72,9 +75,9 @@ tasks.test {
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifact(tasks.shadowJar) {
builtBy(tasks.shadowJar)
}
from(components["shadow"])
artifact(tasks.named<Jar>("sourcesJar"))
artifact(tasks.named<Jar>("javadocJar"))

groupId = domain
artifactId = id
Expand Down