plugins { id 'idea' id 'java' id 'maven-publish' id 'org.spongepowered.gradle.vanilla' version '0.2.1-SNAPSHOT' } base { archivesName = "${mod_id}-common-${minecraft_version}" } minecraft { version(minecraft_version) if(file("src/main/resources/${mod_id}.accesswidener").exists()){ accessWideners(file("src/main/resources/${mod_id}.accesswidener")) } } repositories { maven { url 'https://jitpack.io' } } dependencies { compileOnly group:'org.spongepowered', name:'mixin', version:'0.8.5' implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1' implementation("io.github.llamalad7:mixinextras-common:${mixinextras_version}") annotationProcessor("io.github.llamalad7:mixinextras-common:${mixinextras_version}") } processResources { def buildProps = project.properties.clone() filesMatching(['pack.mcmeta']) { expand buildProps } } publishing { publications { mavenJava(MavenPublication) { groupId project.group artifactId base.archivesName .get() version project.version from components.java } } repositories { maven { url "file://" + System.getenv("local_maven") } } }