mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-03 22:15:34 +00:00
Move from gradle to kotlin (#7)
This commit is contained in:
1 parent
5b07416c08
commit
53bb09908f
68 files changed
+128
-61
No files matched your search
@@ -0,0 +1,63 @@
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
import net.minecrell.gradle.licenser.LicenseExtension
|
||||
|
||||
plugins {
|
||||
id("java")
|
||||
id("net.minecrell.licenser") version "0.4.1"
|
||||
id("com.github.johnrengelman.shadow") version "6.0.0"
|
||||
}
|
||||
|
||||
configure<JavaPluginConvention> {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
jcenter()
|
||||
maven {
|
||||
name = "Spigot"
|
||||
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots")
|
||||
}
|
||||
maven {
|
||||
name = "bStats"
|
||||
url = uri("https://repo.codemc.org/repository/maven-public")
|
||||
}
|
||||
maven {
|
||||
name = "Mojang"
|
||||
url = uri("https://libraries.minecraft.net/")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
"compileOnly"("org.spigotmc:spigot-api:1.16.2-R0.1-SNAPSHOT")
|
||||
"implementation"("com.mojang:authlib:1.5.25")
|
||||
"implementation"("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
|
||||
"compile"("org.bstats:bstats-bukkit:1.7")
|
||||
}
|
||||
|
||||
version = "2.0.0"
|
||||
|
||||
tasks.named<ShadowJar>("shadowJar") {
|
||||
dependencies {
|
||||
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl"))
|
||||
include(dependency("org.slf4j:slf4j-api"))
|
||||
include(dependency("org.bstats:bstats-bukkit:1.7"))
|
||||
relocate("org.apache.logging.slf4j", "net.arcaniax.logging.apache")
|
||||
relocate("org.slf4j", "net.arcaniax.logging.slf4j")
|
||||
relocate("org.bstats", "net.arcaniax.metrics")
|
||||
}
|
||||
}
|
||||
|
||||
configure<LicenseExtension> {
|
||||
header = rootProject.file("HEADER")
|
||||
include("**/*.java")
|
||||
exclude("**/XMaterial.java")
|
||||
|
||||
}
|
||||
|
||||
tasks.named<Copy>("processResources") {
|
||||
filesMatching("plugin.yml") {
|
||||
expand("version" to project.version)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user