HexCasting/Fabric/build.gradle

118 lines
3.5 KiB
Groovy
Raw Normal View History

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
}
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)
}
}
}
repositories {
mavenCentral()
2022-06-02 03:51:12 +02:00
mavenLocal()
maven { url "https://maven.shedaniel.me/" }
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/"
}
maven { url "https://mvn.devos.one/snapshots/" }
}
2022-04-25 16:40:32 +02:00
dependencies {
minecraft "com.mojang:minecraft:${minecraftVersion}"
mappings loom.officialMojangMappings()
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
// 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
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"
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-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
// 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
2022-06-04 02:49:01 +02:00
modApi("me.shedaniel.cloth:cloth-config-fabric:$clothConfigVersion") {
exclude(group: "net.fabricmc.fabric-api")
}
2022-06-02 03:51:12 +02:00
modImplementation "dev.emi:emi:1.0.0-beta"
2022-06-01 03:43:05 +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
}
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)