2022-04-25 16:40:32 +02:00
|
|
|
plugins {
|
2022-05-14 22:15:25 +02:00
|
|
|
id 'fabric-loom' version "$loomVersion"
|
2022-04-25 16:40:32 +02:00
|
|
|
}
|
|
|
|
|
2022-05-15 18:49:28 +02:00
|
|
|
archivesBaseName = getArtifactID("fabric")
|
2022-04-25 16:40:32 +02:00
|
|
|
|
2022-05-14 06:50:57 +02:00
|
|
|
loom {
|
|
|
|
mixin.defaultRefmapName = "hexcasting.refmap.json"
|
|
|
|
|
|
|
|
runs {
|
|
|
|
client {
|
|
|
|
client()
|
|
|
|
setConfigName("Fabric Client")
|
|
|
|
}
|
|
|
|
server {
|
|
|
|
server()
|
|
|
|
setConfigName("Fabric Server")
|
|
|
|
}
|
|
|
|
|
|
|
|
configureEach {
|
|
|
|
runDir "run"
|
|
|
|
ideConfigGenerated(true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-25 22:52:03 +02:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven { url "https://maven.shedaniel.me/" }
|
2022-04-30 22:58:17 +02:00
|
|
|
maven {
|
|
|
|
url 'https://ladysnake.jfrog.io/artifactory/mods'
|
|
|
|
}
|
2022-05-09 20:23:39 +02:00
|
|
|
maven {
|
|
|
|
name "entity reach"
|
|
|
|
url "https://maven.jamieswhiteshirt.com/libs-release/"
|
|
|
|
}
|
2022-04-25 22:52:03 +02:00
|
|
|
}
|
|
|
|
|
2022-04-25 16:40:32 +02:00
|
|
|
dependencies {
|
|
|
|
minecraft "com.mojang:minecraft:${minecraftVersion}"
|
|
|
|
mappings loom.officialMojangMappings()
|
2022-05-15 03:26:08 +02:00
|
|
|
modImplementation("net.fabricmc:fabric-language-kotlin:1.7.4+kotlin.1.6.21")
|
2022-04-25 16:40:32 +02:00
|
|
|
modImplementation "net.fabricmc:fabric-loader:${fabricLoaderVersion}"
|
|
|
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabricVersion}"
|
2022-05-14 22:15:25 +02:00
|
|
|
|
2022-04-25 16:40:32 +02:00
|
|
|
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1'
|
2022-05-14 06:50:57 +02:00
|
|
|
compileOnly project(":Common")
|
2022-04-25 16:40:32 +02:00
|
|
|
|
2022-05-15 18:49:28 +02:00
|
|
|
modImplementation "at.petra-k.paucal:paucal-fabric-$minecraftVersion:$paucalVersion"
|
2022-05-14 06:50:57 +02:00
|
|
|
modImplementation "vazkii.patchouli:Patchouli:$minecraftVersion-$patchouliVersion-FABRIC"
|
2022-04-25 16:40:32 +02:00
|
|
|
|
2022-05-14 22:15:25 +02:00
|
|
|
modImplementation "me.zeroeightsix:fiber:$fiberVersion"
|
|
|
|
include "me.zeroeightsix:fiber:$fiberVersion"
|
2022-04-30 22:58:17 +02:00
|
|
|
|
|
|
|
modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-api:$cardinalComponentsVersion"
|
2022-05-09 20:23:39 +02:00
|
|
|
|
|
|
|
modImplementation "com.jamieswhiteshirt:reach-entity-attributes:2.1.1"
|
2022-05-14 22:15:25 +02:00
|
|
|
include "com.jamieswhiteshirt:reach-entity-attributes:2.1.1"
|
2022-05-15 03:26:08 +02:00
|
|
|
|
|
|
|
// only to shut up compile warnings from CCA's usage of CheckEnv and Env
|
|
|
|
compileOnly "com.demonwav.mcdev:annotations:1.0"
|
2022-04-25 16:40:32 +02:00
|
|
|
}
|
|
|
|
|
2022-05-14 06:50:57 +02:00
|
|
|
compileJava {
|
|
|
|
source(project(":Common").sourceSets.main.allSource)
|
|
|
|
}
|
2022-05-11 23:23:39 +02:00
|
|
|
|
2022-05-14 06:50:57 +02:00
|
|
|
sourcesJar {
|
|
|
|
from project(":Common").sourceSets.main.allJava
|
2022-04-25 16:40:32 +02:00
|
|
|
}
|
|
|
|
|
2022-05-11 23:23:39 +02:00
|
|
|
sourceSets.main.resources {
|
|
|
|
srcDir 'src/generated/resources'
|
|
|
|
srcDir '../Common/src/generated/resources'
|
|
|
|
}
|
2022-04-25 16:40:32 +02:00
|
|
|
|
|
|
|
processResources {
|
|
|
|
from project(":Common").sourceSets.main.resources
|
|
|
|
inputs.property "version", project.version
|
|
|
|
|
|
|
|
filesMatching("fabric.mod.json") {
|
|
|
|
expand "version": project.version
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
from("LICENSE") {
|
|
|
|
rename { "${it}_${modID}" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
groupId project.group
|
|
|
|
artifactId project.archivesBaseName
|
|
|
|
version project.version
|
|
|
|
from components.java
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url "file://" + System.getenv("local_maven")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|