just so i dont have to update the documentation lol

This commit is contained in:
Telesphoreo 2022-04-24 00:43:54 -05:00
parent 5fd22ba582
commit bfdce97271
No known key found for this signature in database
GPG Key ID: B5CDDEBA526C0130
9 changed files with 23 additions and 7 deletions

2
Jenkinsfile vendored
View File

@ -23,7 +23,7 @@ pipeline {
} }
post { post {
always { always {
archiveArtifacts artifacts: "**/build/libs/*.jar", fingerprint: true archiveArtifacts artifacts: "build/libs/*.jar", fingerprint: true
javadoc javadocDir: "api/build/docs/javadoc", keepAll: false javadoc javadocDir: "api/build/docs/javadoc", keepAll: false
discordSend description: "**Build:** ${env.BUILD_NUMBER}\n**Status:** ${currentBuild.currentResult}", enableArtifactsList: true, footer: "Built with Jenkins", link: env.BUILD_URL, result: currentBuild.currentResult, scmWebUrl: "https://github.com/plexusorg/Plex", showChangeset: true, title: env.JOB_NAME, webhookURL: env.PLEX_WEBHOOK_URL discordSend description: "**Build:** ${env.BUILD_NUMBER}\n**Status:** ${currentBuild.currentResult}", enableArtifactsList: true, footer: "Built with Jenkins", link: env.BUILD_URL, result: currentBuild.currentResult, scmWebUrl: "https://github.com/plexusorg/Plex", showChangeset: true, title: env.JOB_NAME, webhookURL: env.PLEX_WEBHOOK_URL
cleanWs() cleanWs()

View File

@ -6,6 +6,16 @@ jar {
archiveBaseName.set("Plex-API") archiveBaseName.set("Plex-API")
} }
tasks {
jar {
finalizedBy(rootProject.tasks.copyJars)
}
shadowJar {
enabled = false
}
}
publishing { publishing {
publications { publications {
maven(MavenPublication) { maven(MavenPublication) {

View File

@ -36,5 +36,4 @@ public class AdminAddEvent extends Event
{ {
return handlers; return handlers;
} }
} }

View File

@ -13,7 +13,6 @@ import org.jetbrains.annotations.NotNull;
@Data @Data
public class GameModeUpdateEvent extends Event public class GameModeUpdateEvent extends Event
{ {
private static final HandlerList handlers = new HandlerList(); private static final HandlerList handlers = new HandlerList();
private final CommandSender sender; private final CommandSender sender;

View File

@ -11,7 +11,6 @@ import org.bukkit.event.HandlerList;
@Getter @Getter
public class PunishedPlayerMuteEvent extends PunishedPlayerEvent implements Cancellable public class PunishedPlayerMuteEvent extends PunishedPlayerEvent implements Cancellable
{ {
private static final HandlerList handlers = new HandlerList(); private static final HandlerList handlers = new HandlerList();
/** /**

View File

@ -7,7 +7,6 @@ import org.bukkit.permissions.PermissionAttachment;
public interface IPlexPlayer public interface IPlexPlayer
{ {
String getId(); String getId();
UUID getUuid(); UUID getUuid();

View File

@ -6,7 +6,6 @@ import org.json.JSONObject;
public interface IRank public interface IRank
{ {
int getLevel(); int getLevel();
String getLoginMessage(); String getLoginMessage();

View File

@ -1,6 +1,7 @@
plugins { plugins {
id "java" id "java"
id "maven-publish" id "maven-publish"
id "com.github.johnrengelman.shadow" version "7.1.2"
} }
group = "dev.plex" group = "dev.plex"
@ -10,6 +11,7 @@ description = "Plex"
subprojects { subprojects {
apply plugin: "java" apply plugin: "java"
apply plugin: "maven-publish" apply plugin: "maven-publish"
apply plugin: "com.github.johnrengelman.shadow"
repositories { repositories {
maven { maven {
@ -55,4 +57,10 @@ subprojects {
} }
} }
} }
}
task copyJars(type: Copy, dependsOn: subprojects.jar) {
from(subprojects.jar)
from(subprojects.shadowJar)
into project.file('build/libs')
} }

View File

@ -1,6 +1,5 @@
plugins { plugins {
id "net.minecrell.plugin-yml.bukkit" version "0.6.1-SNAPSHOT" id "net.minecrell.plugin-yml.bukkit" version "0.6.1-SNAPSHOT"
id "com.github.johnrengelman.shadow" version "7.1.2"
} }
dependencies { dependencies {
@ -104,6 +103,10 @@ tasks {
enabled = false enabled = false
} }
shadowJar {
finalizedBy(rootProject.tasks.copyJars)
}
javadoc { javadoc {
options.memberLevel = JavadocMemberLevel.PRIVATE options.memberLevel = JavadocMemberLevel.PRIVATE
} }