2020-01-16 12:35:46 +01:00
|
|
|
plugins {
|
|
|
|
id 'java-library'
|
2021-06-26 13:15:42 +02:00
|
|
|
id 'fabric-loom' version '0.8-SNAPSHOT'
|
2018-09-12 01:29:35 +02:00
|
|
|
}
|
|
|
|
|
2021-06-26 13:15:42 +02:00
|
|
|
apply plugin: 'fabric-loom'
|
2021-02-13 20:05:24 +01:00
|
|
|
|
2021-06-26 13:15:42 +02:00
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
2021-02-13 20:05:24 +01:00
|
|
|
|
2021-06-26 13:15:42 +02:00
|
|
|
version = "${project.minecraft_version}-${project.version}"
|
2021-02-13 20:05:24 +01:00
|
|
|
|
2021-06-26 13:15:42 +02:00
|
|
|
if (project.release != 'RELEASE') {
|
|
|
|
version += "-${project.release}"
|
|
|
|
}
|
2021-02-13 20:53:11 +01:00
|
|
|
|
2021-06-26 13:15:42 +02:00
|
|
|
group = project.group
|
|
|
|
description = project.displayname
|
|
|
|
archivesBaseName = project.name
|
2021-02-13 20:53:11 +01:00
|
|
|
|
2021-06-26 13:15:42 +02:00
|
|
|
// check for updates every build when on CI
|
|
|
|
if (System.env.CI) {
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
|
2021-02-13 20:53:11 +01:00
|
|
|
}
|
2020-01-16 12:35:46 +01:00
|
|
|
}
|
2018-09-12 01:29:35 +02:00
|
|
|
|
|
|
|
minecraft {
|
2020-01-16 12:35:46 +01:00
|
|
|
refmapName = 'unicopia.mixin.refmap.json'
|
2018-09-12 01:29:35 +02:00
|
|
|
}
|
|
|
|
|
2019-01-07 09:35:11 +01:00
|
|
|
dependencies {
|
2021-06-26 13:15:42 +02:00
|
|
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
|
|
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
|
|
|
modApi "net.fabricmc:fabric-loader:${project.loader_version}"
|
|
|
|
modApi "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
|
|
|
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
|
|
|
|
|
2021-02-10 12:18:01 +01:00
|
|
|
modApi "com.minelittlepony:MineLittlePony:${project.minelp_version}"
|
2020-04-22 22:41:00 +02:00
|
|
|
|
2020-01-16 12:35:46 +01:00
|
|
|
modApi "com.minelittlepony:Kirin:${project.kirin_version}"
|
|
|
|
include "com.minelittlepony:Kirin:${project.kirin_version}"
|
|
|
|
|
2020-04-22 16:28:20 +02:00
|
|
|
modCompileOnly("io.github.prospector:modmenu:${project.modmenu_version}") {
|
|
|
|
transitive = false
|
|
|
|
}
|
2021-06-26 13:15:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
inputs.property "version", project.version
|
2021-02-10 19:36:19 +01:00
|
|
|
|
2021-06-26 13:15:42 +02:00
|
|
|
filesMatching("fabric.mod.json") {
|
|
|
|
expand "version": project.version
|
2021-02-18 23:07:22 +01:00
|
|
|
}
|
2021-06-26 13:15:42 +02:00
|
|
|
}
|
2021-02-18 23:07:22 +01:00
|
|
|
|
2021-06-26 13:15:42 +02:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
|
|
classifier = "sources"
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name = 'minelp'
|
|
|
|
url = 'https://repo.minelittlepony-mod.com/maven/snapshot'
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = 'minelp-release'
|
|
|
|
url = 'https://repo.minelittlepony-mod.com/maven/release'
|
2021-02-18 23:07:22 +01:00
|
|
|
}
|
2019-01-07 09:35:11 +01:00
|
|
|
}
|
2021-06-26 13:15:42 +02:00
|
|
|
|
|
|
|
|