Files
Iris/settings.gradle
T
piexel b0a8904b31 Batch 5 of the API review: depend on IrisModule as a build of its own
settings.gradle includes ../IrisModule (art.arcane:iris-module); core depends on it with api, so the
adapters keep seeing module classes. Core no longer compiles the module's sources: gradle/default-module.gradle,
the ownership check and the module root of bukkitPurityRatchet are gone. The 111 module sources that need Iris
itself (layout model, objects and blocks, structure model and placer, object placers) move into core
unchanged.

:core:builtinModulesJar now takes IrisModule's checked iris-builtins.jar (capability art.arcane:iris-builtins),
checks it once more against the VolmLib classes the Bukkit jar leaves out, and writes it to
build/builtin-modules for the jar and shadowJar. The shadowJar leaves out the module artifact's copies of the
jar's classes, read from the jar itself. Tests copy that jar into packs (iris.builtinModulesJar) instead of
rebuilding it from builtin-modules.txt; the pack type purity gate scans both class roots.

EntityKeyHandler names iris:spawn's entity kind by id instead of SpawnResources.ENTITIES, which ships only in
the built-ins jar (verifyBukkitArtifact failed on it since batch 3).
2026-10-24 04:46:50 +02:00

67 lines
2.7 KiB
Groovy

/*
* Iris is a World Generator for Minecraft Bukkit Servers
* Copyright (c) 2021 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '1.0.0'
}
rootProject.name = 'Iris'
apply from: new File(settingsDir, 'gradle/volmlib-resolution.settings.gradle')
apply from: new File(settingsDir, 'gradle/irisapi-resolution.settings.gradle')
// The built-in modules, from the sibling IrisModule checkout. They build against the Iris API alone; core depends on their
// classes and bundles their checked pack module jar (capability art.arcane:iris-builtins).
includeBuild(new File(settingsDir, '../IrisModule').canonicalFile) {
dependencySubstitution {
substitute(module('art.arcane:iris-module')).using(project(':'))
}
}
include(':core', ':core:agent')
include(':probe')
include(':spi')
include(':adapters:bukkit:plugin')
include(':adapters:bukkit:nms:v26_2_R1')
/*
* Opt-in: surface the three modded adapter builds to the IDE.
*
* ./gradlew -PincludeModdedAdapters=true ...
*
* OFF by default, and deliberately so. Each adapter settings file does
* `includeBuild('../..')` back onto this build so it can substitute `art.arcane:core` and
* `art.arcane:spi` with the root projects. Including the adapters from here therefore closes a
* composite cycle (root -> adapter -> root) and registers the same VolmLib checkout from two
* participants at once. The release path does not need it: `fabricJar`/`forgeJar`/`neoforgeJar`
* invoke each adapter through its own wrapper as a standalone build (see build.gradle), which is
* also what keeps Loom, ForgeGradle, and ModDevGradle off one plugin classpath.
*
* Enable it only for IDE import, and expect to disable it again if Gradle rejects the cycle.
*/
boolean includeModdedAdapters = providers.gradleProperty('includeModdedAdapters')
.orElse('false')
.map { String value -> value.equalsIgnoreCase('true') }
.get()
if (includeModdedAdapters) {
includeBuild('adapters/fabric')
includeBuild('adapters/forge')
includeBuild('adapters/neoforge')
}