123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- plugins {
- id 'fabric-loom' version '0.2.5-SNAPSHOT'
- id 'maven-publish'
- id 'net.minecrell.licenser' version '0.4.1'
- }
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- archivesBaseName = "RoughlyEnoughItems"
- group = "me.shedaniel"
- def ENV = System.getenv()
- version = project.mod_version + "+" + (ENV.BUILD_NUMBER ? ("build." + ENV.BUILD_NUMBER) : "local")
- def includeDep = true
- minecraft {
- }
- license {
- header rootProject.file('HEADER')
- include '**/*.java'
- exclude '**/Scissors.java'
- }
- repositories {
- maven { url "https://tehnut.info/maven/" }
- maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
- maven { url "https://minecraft.curseforge.com/api/maven" }
- }
- 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}"
- modApi "net.fabricmc:fabric-loader:${project.fabricloader_version}"
- modApi "net.fabricmc.fabric-api:fabric-api:${project.fabric_api}"
- modApi("me.shedaniel.cloth:cloth-events:${cloth_events_version}") {
- transitive = false
- }
- modImplementation("me.shedaniel.cloth:config-2:${cloth_config_version}") {
- transitive = false
- }
- modApi("me.shedaniel.cloth:fiber2cloth:1.1.0") {
- transitive = false
- }
- modApi "me.zeroeightsix:fiber:0.6.0-7"
- modApi "blue.endless:jankson:${project.jankson_version}"
- if (includeDep) {
- include("me.shedaniel.cloth:cloth-events:${cloth_events_version}") {
- transitive = false
- }
- include("me.shedaniel.cloth:config-2:${cloth_config_version}") {
- transitive = false
- }
- include("me.shedaniel.cloth:fiber2cloth:1.1.0") {
- transitive = false
- }
- include "me.zeroeightsix:fiber:0.6.0-7"
- }
- modImplementation "io.github.prospector:modmenu:${modmenu_version}"
- compile "org.lwjgl:lwjgl-jemalloc:3.2.1"
- compileOnly "com.google.code.findbugs:jsr305:3.0.2"
- implementation 'org.jetbrains:annotations:15.0'
- }
- task sourcesJar(type: Jar, dependsOn: classes) {
- classifier = "sources"
- from sourceSets.main.allSource
- }
- publishing {
- publications {
- mavenJava(MavenPublication) {
- artifact(remapJar) {
- builtBy remapJar
- }
- artifact(sourcesJar) {
- builtBy remapSourcesJar
- }
- }
- }
- repositories {
- if (project.hasProperty('danielshe_pass')) {
- maven {
- url = "http://deploy.modmuss50.me/"
- credentials {
- username = "danielshe"
- password = project.getProperty('danielshe_pass')
- }
- }
- }
- }
- }
|