Skip to content

Commit

Permalink
fix(test): copy plugin.yml to test resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Silthus committed May 23, 2020
1 parent 64968ce commit 54893f2
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions build.gradle
Expand Up @@ -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 {
Expand All @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit 54893f2

Please sign in to comment.