mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-10-07 11:45:26 +02:00
updated shadow, added test dependencies for jmh and junit
This commit is contained in:
18
build.gradle
18
build.gradle
@@ -1,6 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'com.github.johnrengelman.shadow' version '5.2.0'
|
id 'com.github.johnrengelman.shadow' version '6.0.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
group 'me.clip'
|
group 'me.clip'
|
||||||
@@ -29,8 +29,15 @@ dependencies {
|
|||||||
implementation 'com.google.code.gson:gson:2.8.5'
|
implementation 'com.google.code.gson:gson:2.8.5'
|
||||||
implementation 'org.bstats:bstats-bukkit:1.5'
|
implementation 'org.bstats:bstats-bukkit:1.5'
|
||||||
implementation 'me.rayzr522:jsonmessage:1.2.1'
|
implementation 'me.rayzr522:jsonmessage:1.2.1'
|
||||||
|
|
||||||
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
|
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
|
||||||
compileOnly 'org.jetbrains:annotations:19.0.0'
|
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
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
@@ -49,3 +56,12 @@ shadowJar {
|
|||||||
relocate "com.google.gson", "me.clip.placeholderapi.libs.gson"
|
relocate "com.google.gson", "me.clip.placeholderapi.libs.gson"
|
||||||
relocate "me.rayzr522.jsonmessage", "me.clip.placeholderapi.libs.jsonmessage"
|
relocate "me.rayzr522.jsonmessage", "me.clip.placeholderapi.libs.jsonmessage"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
useJUnitPlatform()
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
test.compileClasspath += configurations.compileOnly
|
||||||
|
test.runtimeClasspath += configurations.compileOnly
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user