fabric/build.gradle
2018-12-14 18:48:37 +00:00

65 lines
1.5 KiB
Groovy

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.2"
modCompile "net.fabricmc:fabric-loader:0.2.0.64"
}
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'