forked from FabricMC/fabric
70 lines
1.6 KiB
Groovy
70 lines
1.6 KiB
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
gradlePluginPortal()
|
|
maven {
|
|
name = 'Fabric'
|
|
url = 'https://maven.fabricmc.net/'
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath "net.fabricmc:fabric-loom:0.2.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.5"
|
|
def mcVersion = "19w05a"
|
|
|
|
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.3"
|
|
modCompile "net.fabricmc:fabric-loader:0.3.4.104"
|
|
}
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
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'
|