2018-11-05 09:54:00 -05:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
2018-12-14 13:48:37 -05:00
|
|
|
gradlePluginPortal()
|
2018-11-05 09:54:00 -05:00
|
|
|
maven {
|
|
|
|
name = 'Fabric'
|
2018-12-22 10:21:31 -05:00
|
|
|
url = 'https://maven.fabricmc.net/'
|
2018-11-05 09:54:00 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
2018-12-22 10:21:31 -05:00
|
|
|
classpath "net.fabricmc:fabric-loom:0.2.0-SNAPSHOT"
|
2018-11-05 09:54:00 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'eclipse'
|
|
|
|
id 'idea'
|
2018-12-14 13:48:37 -05:00
|
|
|
id 'com.matthewprenger.cursegradle' version "1.1.2"
|
2018-11-05 09:54:00 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
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-11-05 09:54:00 -05:00
|
|
|
|
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
|
|
|
|
2018-11-05 09:54:00 -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-11-05 09:54:00 -05:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-05 09:54:00 -05:00
|
|
|
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'
|