mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-11-18 00:46:55 +01:00
updated shadow, added test dependencies for jmh and junit
This commit is contained in:
parent
47e336c1fe
commit
9ddb21220f
70
build.gradle
70
build.gradle
@ -1,6 +1,6 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'com.github.johnrengelman.shadow' version '5.2.0'
|
||||
id 'java'
|
||||
id 'com.github.johnrengelman.shadow' version '6.0.0'
|
||||
}
|
||||
|
||||
group 'me.clip'
|
||||
@ -10,42 +10,58 @@ description 'PlaceholderAPI'
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
maven {
|
||||
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
|
||||
}
|
||||
maven {
|
||||
url = 'https://repo.codemc.org/repository/maven-public'
|
||||
}
|
||||
maven {
|
||||
url = 'https://rayzr.dev/repo/'
|
||||
}
|
||||
maven {
|
||||
url = 'http://repo.maven.apache.org/maven2'
|
||||
}
|
||||
mavenLocal()
|
||||
maven {
|
||||
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
|
||||
}
|
||||
maven {
|
||||
url = 'https://repo.codemc.org/repository/maven-public'
|
||||
}
|
||||
maven {
|
||||
url = 'https://rayzr.dev/repo/'
|
||||
}
|
||||
maven {
|
||||
url = 'http://repo.maven.apache.org/maven2'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.google.code.gson:gson:2.8.5'
|
||||
implementation 'org.bstats:bstats-bukkit:1.5'
|
||||
implementation 'me.rayzr522:jsonmessage:1.2.1'
|
||||
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.jetbrains:annotations:19.0.0'
|
||||
implementation 'com.google.code.gson:gson:2.8.5'
|
||||
implementation 'org.bstats:bstats-bukkit:1.5'
|
||||
implementation 'me.rayzr522:jsonmessage:1.2.1'
|
||||
|
||||
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
|
||||
compileOnly 'org.jetbrains:annotations:19.0.0'
|
||||
|
||||
testImplementation 'org.openjdk.jmh:jmh-core:1.23'
|
||||
testImplementation 'org.openjdk.jmh:jmh-generator-annprocess:1.23'
|
||||
|
||||
testCompile "org.junit.jupiter:junit-jupiter-engine:5.6.2"
|
||||
testRuntime "org.junit.jupiter:junit-jupiter-engine:5.6.2"
|
||||
}
|
||||
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
processResources {
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
filter ReplaceTokens, tokens: [name: rootProject.name, version: project.version, description: project.description]
|
||||
}
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
filter ReplaceTokens, tokens: [name: rootProject.name, version: project.version, description: project.description]
|
||||
}
|
||||
}
|
||||
|
||||
compileJava.options.encoding = 'UTF-8'
|
||||
|
||||
shadowJar {
|
||||
archiveClassifier.set("")
|
||||
relocate "org.bstats", "me.clip.placeholderapi.metrics"
|
||||
relocate "com.google.gson", "me.clip.placeholderapi.libs.gson"
|
||||
relocate "me.rayzr522.jsonmessage", "me.clip.placeholderapi.libs.jsonmessage"
|
||||
archiveClassifier.set("")
|
||||
relocate "org.bstats", "me.clip.placeholderapi.metrics"
|
||||
relocate "com.google.gson", "me.clip.placeholderapi.libs.gson"
|
||||
relocate "me.rayzr522.jsonmessage", "me.clip.placeholderapi.libs.jsonmessage"
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
test.compileClasspath += configurations.compileOnly
|
||||
test.runtimeClasspath += configurations.compileOnly
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user