diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index d2adc6d..b8342b2 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,10 @@ plugins { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 +if(rootProject.file('private.gradle').exists()) { //Publishing details + apply from: 'private.gradle' +} + archivesBaseName = project.archives_base_name version = project.mod_version group = project.maven_group @@ -22,6 +26,7 @@ dependencies { // Fabric API. This is technically optional, but you probably want it anyway. modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" + compileOnly ("com.google.code.findbugs:jsr305:3.0.2") { transitive = false } // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. // You may need to force-disable transitiveness on them. } @@ -63,6 +68,10 @@ publishing { publications { mavenJava(MavenPublication) { // add all the jars that should be included when publishing to maven + artifact ("${project.buildDir.absolutePath}/libs/${archivesBaseName}-${project.version}.jar") { //release jar - file location not provided anywhere in loom + classifier null + builtBy remapJar + } artifact(jar) { builtBy remapJar } |