plugins { id 'fabric-loom' version '0.2.4-SNAPSHOT' id 'maven-publish' id 'com.jfrog.bintray' version '1.8.4' } sourceCompatibility = 1.8 targetCompatibility = 1.8 group = "me.shedaniel" archivesBaseName = "ClothConfig2" version = project.mod_version minecraft { } processResources { filesMatching('fabric.mod.json') { expand 'version': project.version } inputs.property "version", project.version } dependencies { minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings "net.fabricmc:yarn:${project.yarn_version}" modImplementation "net.fabricmc:fabric-loader:${project.fabric_loader_version}" modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" modApi "io.github.prospector.modmenu:ModMenu:${modmenu_version}" } bintray { user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER') key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_KEY') publications = ["MyPublication"] pkg { repo = "ClothConfig" name = "ClothConfig2" userOrg = "shedaniel" licenses = ["Unlicense"] vcsUrl = "https://github.com/shedaniel/ClothConfig.git" version { name = project.version vcsTag = project.version released = new Date() } } } // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task // if it is present. // If you remove this task, sources will not be generated. task sourcesJar(type: Jar, dependsOn: classes) { classifier = 'sources' from sourceSets.main.allSource } publishing { publications { MyPublication(MavenPublication) { artifact(file("${project.buildDir}/libs/${project.archivesBaseName}-${project.version}.jar")) { builtBy remapJar } artifact(sourcesJar) { builtBy remapSourcesJar } } } // select the repositories you want to publish to repositories { // uncomment to publish to the local maven // mavenLocal() } }