fabric/build.gradle

71 lines
1.6 KiB
Groovy
Raw Normal View History

buildscript {
repositories {
jcenter()
2018-12-14 13:48:37 -05:00
gradlePluginPortal()
maven {
name = 'Fabric'
2018-12-22 10:21:31 -05:00
url = 'https://maven.fabricmc.net/'
}
}
dependencies {
2018-12-22 10:21:31 -05:00
classpath "net.fabricmc:fabric-loom:0.2.0-SNAPSHOT"
}
}
plugins {
id 'java'
id 'eclipse'
id 'idea'
2018-12-14 13:48:37 -05:00
id 'com.matthewprenger.cursegradle' version "1.1.2"
}
apply plugin: net.fabricmc.loom.LoomGradlePlugin
sourceCompatibility = 1.8
targetCompatibility = 1.8
archivesBaseName = "fabric"
2018-12-14 13:48:37 -05:00
2019-01-06 07:33:50 -05:00
def baseVersion = "0.1.4"
2019-01-20 03:36:47 -05:00
def mcVersion = "19w03c"
2018-12-09 11:47:35 -05:00
def ENV = System.getenv()
2018-12-14 13:48:37 -05:00
version = baseVersion + "." + (ENV.BUILD_NUMBER ?: "local")
2018-12-09 11:47:35 -05:00
minecraft {
refmapName = "net.fabricmc.fabric.refmap.json"
}
dependencies {
2018-12-14 13:48:37 -05:00
minecraft "com.mojang:minecraft:$mcVersion"
2019-01-20 03:36:47 -05:00
mappings "net.fabricmc:yarn:$mcVersion.4"
modCompile "net.fabricmc:fabric-loader:0.3.3.98"
2018-12-22 10:21:31 -05:00
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
2018-12-14 13:48:37 -05:00
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'