mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2026-01-04 15:31:47 +00:00
1.1
This commit is contained in:
76
build.gradle
Normal file
76
build.gradle
Normal file
@@ -0,0 +1,76 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
||||
}
|
||||
|
||||
group = 'net.momirealms'
|
||||
version = '1.1'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
name = 'papermc-repo'
|
||||
url = 'https://papermc.io/repo/repository/maven-public/'
|
||||
}
|
||||
maven {
|
||||
name = 'sonatype'
|
||||
url = 'https://oss.sonatype.org/content/groups/public/'
|
||||
}
|
||||
maven {
|
||||
name = "sonatype-oss-snapshots1"
|
||||
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
|
||||
}
|
||||
maven {
|
||||
name = "dmulloy2-repo"
|
||||
url = "https://repo.dmulloy2.net/repository/public/"
|
||||
}
|
||||
maven {
|
||||
name = "clip-repo"
|
||||
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT'
|
||||
compileOnly group: "com.comphenix.protocol", name: "ProtocolLib", version: "4.8.0"
|
||||
compileOnly 'me.clip:placeholderapi:2.11.1'
|
||||
implementation('com.zaxxer:HikariCP:5.0.1')
|
||||
implementation('net.kyori:adventure-api:4.11.0')
|
||||
implementation('net.kyori:adventure-platform-bukkit:4.1.1')
|
||||
implementation('net.kyori:adventure-text-minimessage:4.11.0')
|
||||
implementation("net.kyori:adventure-text-serializer-gson:4.11.0")
|
||||
implementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
|
||||
}
|
||||
|
||||
def targetJavaVersion = 16
|
||||
java {
|
||||
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
|
||||
sourceCompatibility = javaVersion
|
||||
targetCompatibility = javaVersion
|
||||
if (JavaVersion.current() < javaVersion) {
|
||||
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
|
||||
options.release = targetJavaVersion
|
||||
}
|
||||
}
|
||||
|
||||
processResources {
|
||||
def props = [version: version]
|
||||
inputs.properties props
|
||||
filteringCharset 'UTF-8'
|
||||
filesMatching('plugin.yml') {
|
||||
expand props
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate 'net.kyori', 'net.momirealms.customnameplates.libs.kyori'
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
Reference in New Issue
Block a user