buildscript { repositories { jcenter() gradlePluginPortal() maven { name = 'Fabric' url = 'http://maven.fabricmc.net/' } } dependencies { classpath "net.fabricmc:fabric-loom:0.1.0-SNAPSHOT" } } plugins { id 'java' id 'eclipse' id 'idea' id 'com.matthewprenger.cursegradle' version "1.1.2" } apply plugin: net.fabricmc.loom.LoomGradlePlugin sourceCompatibility = 1.8 targetCompatibility = 1.8 archivesBaseName = "fabric" def baseVersion = "0.1.1" def mcVersion = "18w50a" def ENV = System.getenv() version = baseVersion + "." + (ENV.BUILD_NUMBER ?: "local") minecraft { refmapName = "net.fabricmc.fabric.refmap.json" } dependencies { minecraft "com.mojang:minecraft:$mcVersion" mappings "net.fabricmc:yarn:$mcVersion.34" modCompile "net.fabricmc:fabric-loader:0.2.0.70" } curseforge { if (project.hasProperty('curse_api_key')){ apiKey = project.getProperty('curse_api_key') } project { id = '306612' changelog = 'A changelog can be found at https://github.com/FabricMC/fabric/commits/master' releaseType = 'alpha' addGameVersion '1.14-Snapshot' mainArtifact(jar) { displayName = "[$mcVersion] Fabric API $baseVersion build $ENV.BUILD_NUMBER" } } options{ forgeGradleIntegration = false } } apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/maven.gradle' apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/license.gradle' apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/ideconfig.gradle'