diff --git a/build.gradle.kts b/build.gradle.kts index 2bfdbf9..be32c15 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,14 +3,14 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar plugins { `java-library` `maven-publish` - id("com.github.hierynomus.license") version "0.16.1" +// id("com.github.hierynomus.license") version "0.16.1" id("io.github.goooler.shadow") version "8.1.7" } subprojects { apply(plugin = "java-library") apply(plugin = "maven-publish") - apply(plugin = "com.github.hierynomus.license") +// apply(plugin = "com.github.hierynomus.license") apply(plugin = "io.github.goooler.shadow") group = "me.clip" @@ -54,18 +54,20 @@ subprojects { disableAutoTargetJvm() } - license { - header = rootProject.file("config/headers/main.txt") - - include("**/*.java") - mapping("java", "JAVADOC_STYLE") - - encoding = "UTF-8" - - ext { - set("year", 2026) - } - } +// license { +// header = rootProject.file("config/headers/main.txt") +// +// include("**/*.java") +// mapping("java", "JAVADOC_STYLE") +// +// exclude("spigot/src/main/java/me/clip/placeholderapi/scheduler") +// +// encoding = "UTF-8" +// +// ext { +// set("year", 2026) +// } +// } tasks { processResources { diff --git a/paper/build.gradle.kts b/paper/build.gradle.kts index be958b5..3043b07 100644 --- a/paper/build.gradle.kts +++ b/paper/build.gradle.kts @@ -6,6 +6,10 @@ dependencies { val javaComponent: SoftwareComponent = components["java"] +base { + archivesName.set("PlaceholderAPI-Paper") +} + tasks { withType { archiveClassifier.set("") diff --git a/paper/src/main/java/me/clip/placeholderapi/PAPIComponents.java b/paper/src/main/java/me/clip/placeholderapi/PAPIComponents.java index 30aba58..281b31a 100644 --- a/paper/src/main/java/me/clip/placeholderapi/PAPIComponents.java +++ b/paper/src/main/java/me/clip/placeholderapi/PAPIComponents.java @@ -1,3 +1,23 @@ +/* + * This file is part of PlaceholderAPI + * + * PlaceholderAPI + * Copyright (c) 2015 - 2026 PlaceholderAPI Team + * + * PlaceholderAPI free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * PlaceholderAPI is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package me.clip.placeholderapi; import me.clip.placeholderapi.expansion.PlaceholderExpansion; diff --git a/paper/src/main/java/me/clip/placeholderapi/replacer/ExactReplacer.java b/paper/src/main/java/me/clip/placeholderapi/replacer/ExactReplacer.java index 88f3b5e..3a00688 100644 --- a/paper/src/main/java/me/clip/placeholderapi/replacer/ExactReplacer.java +++ b/paper/src/main/java/me/clip/placeholderapi/replacer/ExactReplacer.java @@ -1,3 +1,23 @@ +/* + * This file is part of PlaceholderAPI + * + * PlaceholderAPI + * Copyright (c) 2015 - 2026 PlaceholderAPI Team + * + * PlaceholderAPI free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * PlaceholderAPI is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package me.clip.placeholderapi.replacer; import me.clip.placeholderapi.expansion.PlaceholderExpansion; diff --git a/paper/src/main/java/me/clip/placeholderapi/replacer/RelationalExactReplacer.java b/paper/src/main/java/me/clip/placeholderapi/replacer/RelationalExactReplacer.java index af5c7d8..54d5848 100644 --- a/paper/src/main/java/me/clip/placeholderapi/replacer/RelationalExactReplacer.java +++ b/paper/src/main/java/me/clip/placeholderapi/replacer/RelationalExactReplacer.java @@ -1,3 +1,23 @@ +/* + * This file is part of PlaceholderAPI + * + * PlaceholderAPI + * Copyright (c) 2015 - 2026 PlaceholderAPI Team + * + * PlaceholderAPI free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * PlaceholderAPI is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package me.clip.placeholderapi.replacer; import me.clip.placeholderapi.expansion.PlaceholderExpansion; diff --git a/spigot/build.gradle.kts b/spigot/build.gradle.kts index 3b92ccf..7df399c 100644 --- a/spigot/build.gradle.kts +++ b/spigot/build.gradle.kts @@ -2,6 +2,10 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar val javaComponent: SoftwareComponent = components["java"] +base { + archivesName.set("PlaceholderAPI-Spigot") +} + tasks { withType { archiveClassifier.set("")