Improve testing and change playtime permissions

This commit is contained in:
okx-code
2021-06-25 18:18:29 +01:00
parent e125f962db
commit 59e97d3f61
21 changed files with 127 additions and 61 deletions
+13 -4
View File
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '6.1.0'
id "io.freefair.lombok" version "5.1.0"
id "io.freefair.lombok" version "6.0.0-m2"
}
group 'sh.okx'
@@ -29,13 +29,14 @@ repositories {
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation 'com.github.seeseemelk:MockBukkit-v1.16:1.0.0'
testImplementation("org.junit.platform:junit-platform-launcher:1.7.2")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.7.2")
testImplementation 'com.github.MockBukkit:MockBukkit:04889261630cd6f5aaebd86a576bbcd12c442ea7'
testImplementation group: 'org.slf4j', name: 'slf4j-nop', version: '1.7.30'
testImplementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'
compileOnly 'org.jetbrains:annotations:16.0.2'
compileOnly 'org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT'
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
compileOnly('com.github.Realizedd:TokenManager:3.2.4') {
transitive = false
}
@@ -72,6 +73,7 @@ shadowJar {
processResources {
// do this again whenever version changes
inputs.property 'version', project.version
duplicatesStrategy = 'include'
// copy plugin.yml and replace version
from(sourceSets.main.resources.srcDirs) {
@@ -91,3 +93,10 @@ task spigot(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
archiveFileName = "Rankup.jar"
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}