-
Notifications
You must be signed in to change notification settings - Fork 0
Multi Module Projects
AzureDoom edited this page Aug 5, 2026
·
3 revisions
In a multi-module Gradle project, apply HytalePublisher only to the subproject that produces the mod JAR.
pluginManagement {
repositories {
gradlePluginPortal()
mavenLocal()
maven {
url = uri("https://maven.azuredoom.com/mods")
}
}
}
rootProject.name = "my-hytale-mods"
include "core"
include "addon"subprojects {
group = "com.example.hytale"
version = "1.0.0"
ext.hytale_version = "your-game-version"
}plugins {
id "java"
id "com.azuredoom.hytalepublisher" version "1.+"
}
hytalePublisher {
releaseType = "release"
changelogFile = "changelog.md"
modtale {
enabled = true
projectId = "your-modtale-project-id"
}
curseforge {
enabled = true
projectId = "123456"
}
modifold {
enabled = true
projectId = "your-modifold-project-slug"
gameVersions = [project.hytale_version]
loaders = ["vanilla"]
}
}Run publishing from the root project with the subproject path:
./gradlew :core:publishAllOr publish to a single platform:
./gradlew :core:publishToModtaleEach publish task uses the JAR built by the subproject where the plugin is applied.