2022-04-25 16:40:32 +02:00
|
|
|
plugins {
|
2022-11-03 18:29:48 +01:00
|
|
|
id 'fabric-loom' // version "1.0-SNAPSHOT"
|
2023-04-24 18:15:44 +02:00
|
|
|
id "at.petra-k.PKSubprojPlugin"
|
2022-04-25 16:40:32 +02:00
|
|
|
}
|
|
|
|
|
2023-04-24 18:15:44 +02:00
|
|
|
pkSubproj {
|
|
|
|
platform "fabric"
|
|
|
|
curseforgeJar remapJar.archiveFile
|
|
|
|
curseforgeDependencies[]
|
|
|
|
modrinthJar remapJar.archiveFile
|
|
|
|
modrinthDependencies[]
|
|
|
|
}
|
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()
|
2023-04-24 18:15:44 +02:00
|
|
|
|
|
|
|
// paucal and patchi
|
|
|
|
maven { url = 'https://maven.blamejared.com' }
|
|
|
|
// modmenu and clothconfig
|
2022-04-25 22:52:03 +02:00
|
|
|
maven { url "https://maven.shedaniel.me/" }
|
2023-04-24 18:15:44 +02:00
|
|
|
maven { url 'https://ladysnake.jfrog.io/artifactory/mods' }
|
|
|
|
// Entity reach
|
|
|
|
maven { url "https://maven.jamieswhiteshirt.com/libs-release/" }
|
2022-06-02 22:14:15 +02:00
|
|
|
maven { url "https://mvn.devos.one/snapshots/" }
|
2023-04-24 18:15:44 +02:00
|
|
|
maven { url = "https://maven.terraformersmc.com/releases/" }
|
2022-11-16 06:26:35 +01:00
|
|
|
exclusiveContent {
|
|
|
|
forRepository {
|
2023-04-24 18:15:44 +02:00
|
|
|
maven { url = "https://api.modrinth.com/maven" }
|
2022-11-16 06:26:35 +01:00
|
|
|
}
|
2023-04-24 18:15:44 +02:00
|
|
|
filter { includeGroup "maven.modrinth" }
|
2022-11-16 06:26:35 +01:00
|
|
|
}
|
2023-04-24 18:15:44 +02:00
|
|
|
// pehkui
|
|
|
|
maven { url = "https://jitpack.io" }
|
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
|
2022-08-18 23:06:06 +02:00
|
|
|
compileOnly "org.jetbrains:annotations:$jetbrainsAnnotationsVersion"
|
|
|
|
testCompileOnly "org.jetbrains:annotations:$jetbrainsAnnotationsVersion"
|
2022-06-02 04:53:24 +02:00
|
|
|
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-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
|
|
|
|
2022-11-04 18:21:08 +01:00
|
|
|
modImplementation "com.jamieswhiteshirt:reach-entity-attributes:${entityReachVersion}"
|
|
|
|
include "com.jamieswhiteshirt:reach-entity-attributes:${entityReachVersion}"
|
2022-05-15 03:26:08 +02:00
|
|
|
|
2022-11-03 18:29:48 +01:00
|
|
|
// apparently the 1.18 version Just Works on 1.19
|
|
|
|
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-04 02:49:01 +02:00
|
|
|
modApi("me.shedaniel.cloth:cloth-config-fabric:$clothConfigVersion") {
|
|
|
|
exclude(group: "net.fabricmc.fabric-api")
|
|
|
|
}
|
|
|
|
|
2022-07-25 16:56:23 +02:00
|
|
|
modImplementation "dev.emi:trinkets:$trinketsVersion"
|
2022-06-08 18:02:02 +02:00
|
|
|
modImplementation "dev.emi:emi:${emiVersion}"
|
2022-06-01 03:43:05 +02:00
|
|
|
|
2022-06-24 05:51:31 +02:00
|
|
|
modImplementation "maven.modrinth:gravity-api:$gravityApiVersion"
|
2022-06-02 09:11:48 +02:00
|
|
|
modApi("com.github.Virtuoel:Pehkui:${pehkuiVersion}", {
|
|
|
|
exclude group: "net.fabricmc.fabric-api"
|
|
|
|
})
|
2022-11-06 19:47:28 +01:00
|
|
|
|
|
|
|
// *Something* is including an old version of modmenu with a broken mixin
|
|
|
|
// We can't figure out what it is
|
|
|
|
// so i'm just including a fresher version
|
2022-11-21 21:07:27 +01:00
|
|
|
modImplementation("com.terraformersmc:modmenu:$modmenuVersion")
|
2022-11-16 06:26:35 +01:00
|
|
|
|
|
|
|
// i am speed
|
|
|
|
// sodium is causing frustum mixin errors so don't use it
|
|
|
|
// modImplementation "maven.modrinth:sodium:${sodiumVersion}"
|
|
|
|
modImplementation "maven.modrinth:lithium:${lithiumVersion}"
|
|
|
|
modImplementation "maven.modrinth:phosphor:${phosphorVersion}"
|
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 {
|
2022-07-25 03:45:46 +02:00
|
|
|
source(project(":Common").sourceSets.main.kotlin)
|
2022-05-16 02:56:15 +02:00
|
|
|
}
|
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
|
|
|
|
}
|
|
|
|
}
|