mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 08:14:45 +00:00
The built-ins no longer travel as one iris-builtins.jar that a pack has to copy by hand. IrisModule builds one jar per module (the eight placement stages share one) with an index of the id and version each module reports, and Iris bundles that folder. A pack lists the modules it uses in modules.json, with the version it was built with and an optional pinned list. Before a pack loads, Iris installs the jars of listed modules and replaces a jar that differs from the one it ships. It keeps a jar when the module is pinned, when the pack holds a newer version than Iris ships, and, in a world's copy of a pack, when the major version changed, because new chunks would not match the old ones. A jar that shares classes with a kept jar stays with it, since the two were compiled against each other. /iris pack update takes the kept terrain changes for a world. What is installed is recorded in modules.lock.json. Module versions are now major.minor.patch per module, starting at 1.0.0, with major meaning "places different blocks or stops loading settings".
67 lines
2.7 KiB
Groovy
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 module folder. They build against the Iris API alone; core depends on their
|
|
// classes and bundles their checked pack module jars (capability art.arcane:iris-shipped-modules).
|
|
includeBuild(new File(settingsDir, 'module').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')
|
|
}
|