2020-01-16 12:35:46 +01:00
|
|
|
plugins {
|
|
|
|
id 'java-library'
|
2022-06-25 00:19:55 +02:00
|
|
|
id 'fabric-loom' version '0.12-SNAPSHOT'
|
2021-08-04 15:38:03 +02:00
|
|
|
id 'org.ajoberstar.reckon' version '0.13.0'
|
2018-09-12 01:29:35 +02:00
|
|
|
}
|
|
|
|
|
2021-08-04 15:38:03 +02:00
|
|
|
java {
|
|
|
|
toolchain {
|
2021-12-22 10:15:09 +01:00
|
|
|
languageVersion = JavaLanguageVersion.of(17)
|
2021-08-04 15:38:03 +02:00
|
|
|
}
|
2022-06-25 00:19:55 +02:00
|
|
|
withSourcesJar()
|
2021-06-26 13:15:42 +02:00
|
|
|
}
|
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-12-22 10:15:09 +01:00
|
|
|
loom {
|
|
|
|
mixin.defaultRefmapName = 'unicopia.mixin.refmap.json'
|
|
|
|
accessWidenerPath = file('src/main/resources/unicopia.aw')
|
2021-08-04 15:38:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
reckon {
|
|
|
|
scopeFromProp()
|
2022-12-15 12:15:50 +01:00
|
|
|
stageFromProp 'beta', 'rc', 'final'
|
2021-08-04 15:38:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
2022-12-15 12:15:50 +01:00
|
|
|
maven { name 'entity-reach-attributes'; url 'https://maven.jamieswhiteshirt.com/libs-release' }
|
|
|
|
maven { name 'trinkets'; url 'https://ladysnake.jfrog.io/artifactory/mods' }
|
|
|
|
maven { name 'mod-menu'; url 'https://maven.terraformersmc.com/' }
|
|
|
|
maven { name 'minelp'; url 'https://repo.minelittlepony-mod.com/maven/snapshot' }
|
|
|
|
maven { name 'minelp-release'; url 'https://repo.minelittlepony-mod.com/maven/release' }
|
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}"
|
|
|
|
|
2021-08-04 15:38:03 +02:00
|
|
|
modApi "com.minelittlepony:minelittlepony:${project.minelp_version}"
|
2020-04-22 22:41:00 +02:00
|
|
|
|
2021-08-04 15:38:03 +02:00
|
|
|
modApi "com.minelittlepony:kirin:${project.kirin_version}"
|
|
|
|
include "com.minelittlepony:kirin:${project.kirin_version}"
|
2020-01-16 12:35:46 +01:00
|
|
|
|
2022-12-06 23:52:24 +01:00
|
|
|
modApi "com.jamieswhiteshirt:reach-entity-attributes:${project.reach_attributes_version}"
|
|
|
|
include "com.jamieswhiteshirt:reach-entity-attributes:${project.reach_attributes_version}"
|
|
|
|
|
2022-12-07 21:47:33 +01:00
|
|
|
modCompileOnly "com.terraformersmc:modmenu:${project.modmenu_version}"
|
2022-09-20 23:50:15 +02:00
|
|
|
modCompileOnly "dev.emi:trinkets:3.4.0"
|
2021-06-26 13:15:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
2021-08-04 15:38:03 +02:00
|
|
|
inputs.property "version", project.version.toString()
|
2021-02-10 19:36:19 +01:00
|
|
|
|
2021-06-26 13:15:42 +02:00
|
|
|
filesMatching("fabric.mod.json") {
|
2021-08-04 15:38:03 +02:00
|
|
|
expand "version": project.version.toString()
|
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"
|
|
|
|
}
|