diff --git a/build.gradle b/build.gradle index b8c353a..969b4e2 100644 --- a/build.gradle +++ b/build.gradle @@ -19,8 +19,6 @@ plugins { group 'me.realized' version '3.2.2' -project.tasks.assemble.dependsOn project.tasks.shadowJar -jar.enabled = false compileJava.options.encoding = 'UTF-8' sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8 @@ -28,19 +26,6 @@ shadowJar { duplicatesStrategy = DuplicatesStrategy.EXCLUDE } -processResources { - def group = project.group.toString() + "." + project.name.toLowerCase() + ".shaded" - - from(sourceSets.main.resources.srcDirs) { - include '**/*.yml' - filter(ReplaceTokens, tokens: [NAME: project.name, VERSION: project.version, SHADED_GROUP: group]) - } -} - -artifacts { - archives jar -} - clean.doFirst { delete "$rootDir/out/" } @@ -49,8 +34,13 @@ tasks.withType(ShadowJar) { destinationDir = file("$rootDir/out/") } -tasks.withType(Jar) { - destinationDir = file("$rootDir/out/") +processResources { + def group = project.group.toString() + "." + project.name.toLowerCase() + ".shaded" + + from(sourceSets.main.resources.srcDirs) { + include '**/*.yml' + filter(ReplaceTokens, tokens: [NAME: project.name, VERSION: project.version, SHADED_GROUP: group]) + } } repositories { @@ -128,4 +118,6 @@ shadowJar { relocate 'org.slf4j', group + "slf4j" relocate 'org.bstats', group + 'bstats' relocate 'org.inventivetalent.update.spiget', group + 'update.spiget' -} \ No newline at end of file +} + +build.dependsOn(shadowJar) \ No newline at end of file