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 {
|
2022-05-21 00:00:00 +02:00
|
|
|
mixin.defaultRefmapName = "hexcasting.mixins.refmap.json"
|
2022-05-14 06:50:57 +02:00
|
|
|
|
2022-06-02 16:57:18 +02:00
|
|
|
accessWidenerPath = file("src/main/resources/fabricasting.accesswidener")
|
2022-05-01 19:38:58 +02:00
|
|
|
|
2022-05-14 06:50:57 +02:00
|
|
|
runs {
|
|
|
|
client {
|
|
|
|
client()
|
|
|
|
setConfigName("Fabric Client")
|
|
|
|
}
|
|
|
|
server {
|
|
|
|
server()
|
|
|
|
setConfigName("Fabric Server")
|
|
|
|
}
|
2022-05-23 21:21:13 +02:00
|
|
|
datagen {
|
|
|
|
client()
|
|
|
|
vmArg "-Dfabric-api.datagen"
|
|
|
|
vmArg "-Dfabric-api.datagen.modid=${modID}"
|
|
|
|
vmArg "-Dfabric-api.datagen.output-dir=${file("src/generated/resources")}"
|
|
|
|
}
|
2022-05-14 06:50:57 +02:00
|
|
|
|
|
|
|
configureEach {
|
2022-05-16 02:56:15 +02:00
|
|
|
runDir "Fabric/run"
|
2022-05-14 06:50:57 +02:00
|
|
|
ideConfigGenerated(true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-25 22:52:03 +02:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2022-06-02 03:51:12 +02:00
|
|
|
mavenLocal()
|
2022-04-25 22:52:03 +02:00
|
|
|
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-06-02 22:14:15 +02:00
|
|
|
maven { url "https://mvn.devos.one/snapshots/" }
|
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-06-02 04:53:24 +02:00
|
|
|
// Reqs
|
|
|
|
compileOnly "com.demonwav.mcdev:annotations:1.0"
|
|
|
|
|
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-06-03 03:42:27 +02:00
|
|
|
include "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
|
|
|
|
2022-06-03 01:41:18 +02:00
|
|
|
modImplementation "io.github.tropheusj:serialization-hooks:$serializationHooksVersion"
|
|
|
|
include "io.github.tropheusj:serialization-hooks:$serializationHooksVersion"
|
2022-06-02 22:32:40 +02:00
|
|
|
|
2022-06-02 04:53:24 +02:00
|
|
|
// Optional integrations
|
|
|
|
|
2022-06-01 03:43:05 +02:00
|
|
|
modCompileOnly "me.shedaniel:RoughlyEnoughItems-api-fabric:$reiVersion"
|
2022-06-02 03:51:12 +02:00
|
|
|
|
|
|
|
modImplementation "dev.emi:emi:1.0.0-beta"
|
2022-06-01 03:43:05 +02:00
|
|
|
|
2022-06-02 04:53:24 +02:00
|
|
|
modImplementation "maven.modrinth:fusions-gravity-api:$gravityApiVersion"
|
2022-06-02 09:11:48 +02:00
|
|
|
modApi("com.github.Virtuoel:Pehkui:${pehkuiVersion}", {
|
|
|
|
exclude group: "net.fabricmc.fabric-api"
|
|
|
|
})
|
2022-04-25 16:40:32 +02:00
|
|
|
}
|
|
|
|
|
2022-05-15 19:58:14 +02:00
|
|
|
tasks.withType(JavaCompile) {
|
2022-05-14 06:50:57 +02:00
|
|
|
source(project(":Common").sourceSets.main.allSource)
|
|
|
|
}
|
2022-05-16 02:56:15 +02:00
|
|
|
compileKotlin {
|
|
|
|
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-15 23:48:18 +02:00
|
|
|
sourceSets {
|
|
|
|
main.resources.srcDirs += ['src/generated/resources', '../Common/src/generated/resources']
|
2022-05-11 23:23:39 +02:00
|
|
|
}
|
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
|
|
|
|
}
|
|
|
|
}
|
2022-05-23 21:21:13 +02:00
|
|
|
|
|
|
|
setupJar(this)
|