diff --git a/build.gradle b/build.gradle index 49b32f9..af986ad 100644 --- a/build.gradle +++ b/build.gradle @@ -91,22 +91,6 @@ dependencies { testAnnotationProcessor 'org.projectlombok:lombok:1.18.12' } -test { - useJUnitPlatform() - testLogging { - events "passed", "skipped", "failed" - } - ignoreFailures = true -} - -test { - useJUnitPlatform() - testLogging { - events "passed", "skipped", "failed" - } - ignoreFailures = true -} - shadowJar { classifier = '' // dependencies { @@ -119,6 +103,14 @@ shadowJar { tasks.build.dependsOn(shadowJar) tasks.publish.dependsOn(shadowJar) +test { + useJUnitPlatform() + testLogging { + events "passed", "skipped", "failed" + } + ignoreFailures = false +} + processResources { project.properties.put("version", this.version) expand project.properties @@ -132,9 +124,11 @@ task cleanPlugin() { task copyPluginYaml(type: Copy, dependsOn: spigotPluginYaml) { from(new File(spigotPluginYaml.temporaryDir, "plugin.yml")) - into(sourceSets.main.resources.srcDirs[0]) + into(sourceSets.test.resources.srcDirs[0]) } +tasks.test.dependsOn(copyPluginYaml) + task deploy(type: Copy, dependsOn: [ 'cleanPlugin', 'jar'