diff --git a/build.gradle b/build.gradle index 5b3103f660..84cfbefca7 100644 --- a/build.gradle +++ b/build.gradle @@ -320,11 +320,6 @@ project(":core"){ } } - artifacts{ - archives sourcesJar - archives assetsJar - } - dependencies{ compileJava.dependsOn(preGen) @@ -442,6 +437,9 @@ configure([":core", ":server"].collect{project(it)}){ publications{ maven(MavenPublication){ from components.java + if(project.name == "core"){ + artifact(tasks.named("assetsJar")) + } } } }