mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 16:25:36 +00:00
Point the build at the api, module and studio folders
The Iris and module builds used to find IrisApi and IrisModule as siblings; they now use the folders in this repo.
This commit is contained in:
1 parent
4e226b93f4
commit
b3b0c64b55
7 files changed
+14
-15
No files matched your search
@@ -29,8 +29,7 @@ Canonical English is defined in the typed Java catalogs under `core/src/main/jav
|
||||
|
||||
Java 25 is required on every platform.
|
||||
|
||||
Built-in feature implementations and their pack settings live in the sibling
|
||||
[`IrisModule`](../IrisModule/README.md) project. During the extraction stage they retain their
|
||||
Built-in feature implementations and their pack settings live in the [`module`](module/README.md) folder. During the extraction stage they retain their
|
||||
engine dependencies and compile together with the host; the existing platform artifacts still
|
||||
bundle them. Core owns lifecycle, loading, scheduling, storage and platform integration.
|
||||
|
||||
|
||||
+4
-4
@@ -324,10 +324,10 @@ List<Object> moddedSharedInputs = []
|
||||
'adapters/client-common/src',
|
||||
'core/src/main',
|
||||
'core/build.gradle',
|
||||
'../IrisModule/src/main',
|
||||
'../IrisModule/build.gradle.kts',
|
||||
'../IrisModule/settings.gradle.kts',
|
||||
'../IrisModule/builtin-modules.txt',
|
||||
'module/src/main',
|
||||
'module/build.gradle.kts',
|
||||
'module/settings.gradle.kts',
|
||||
'module/builtin-modules.txt',
|
||||
'spi/src/main',
|
||||
'spi/build.gradle',
|
||||
'build.gradle',
|
||||
|
||||
+1
-1
@@ -132,7 +132,7 @@ tasks.named('test').configure {
|
||||
systemProperty('iris.irisToolbeltSource', file('src/main/java/art/arcane/iris/core/tools/IrisToolbelt.java').absolutePath)
|
||||
systemProperty('iris.irisCreatorSource', file('src/main/java/art/arcane/iris/core/tools/IrisCreator.java').absolutePath)
|
||||
systemProperty('iris.bukkitChunkGeneratorSource', file('src/main/java/art/arcane/iris/engine/platform/BukkitChunkGenerator.java').absolutePath)
|
||||
systemProperty('iris.defaultModuleSources', rootProject.file('../IrisModule/src/main/java').absolutePath)
|
||||
systemProperty('iris.defaultModuleSources', rootProject.file('module/src/main/java').absolutePath)
|
||||
}
|
||||
|
||||
java {
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
* -PlocalIrisApiDirectory=<path> explicit IrisApi checkout (relative paths resolve against the
|
||||
* including build's settings directory).
|
||||
* IRISAPI_DIR=<path> same, via environment.
|
||||
* otherwise walk up from settingsDir looking for an `IrisApi` directory
|
||||
* otherwise walk up from settingsDir looking for an `api` directory
|
||||
* that contains a settings script.
|
||||
*
|
||||
* When nothing is found the build fails here, naming where it looked, rather than later with an
|
||||
@@ -67,7 +67,7 @@ File irisResolveLocalIrisApiDirectory() {
|
||||
|
||||
File currentDirectory = settingsDir
|
||||
while (currentDirectory != null) {
|
||||
File candidate = new File(currentDirectory, 'IrisApi')
|
||||
File candidate = new File(currentDirectory, 'api')
|
||||
if (irisHasIrisApiSettings(candidate)) {
|
||||
return candidate
|
||||
}
|
||||
@@ -76,7 +76,7 @@ File irisResolveLocalIrisApiDirectory() {
|
||||
}
|
||||
|
||||
throw new GradleException("No IrisApi checkout found in ${settingsDir} or its parent directories; "
|
||||
+ "clone IrisApi next to Iris, or pass -PlocalIrisApiDirectory=<path> or IRISAPI_DIR")
|
||||
+ "expected an `api` folder with a settings script, or pass -PlocalIrisApiDirectory=<path> or IRISAPI_DIR")
|
||||
}
|
||||
|
||||
includeBuild(irisResolveLocalIrisApiDirectory()) {
|
||||
|
||||
+2
-2
@@ -154,14 +154,14 @@ by its stage id, such as `iris:carve/caves`; a name that matches no stage fails
|
||||
## Building
|
||||
|
||||
This is a Gradle build of its own (`art.arcane:iris-module`). Its compile classpath is the Iris API
|
||||
(`com.volmit:iris-api`, from the sibling `../IrisApi` checkout; never `iris-host`), VolmLib, Gson, Lombok and the JDK,
|
||||
(`com.volmit:iris-api`, from the sibling `../api` folder; never `iris-host`), VolmLib, Gson, Lombok and the JDK,
|
||||
all `compileOnly`: a host provides them at runtime. VolmLib comes from a sibling `VolmLib` checkout when there is one,
|
||||
found the way Iris finds it (`-PuseLocalVolmLib=false`, `-PlocalVolmLibDirectory=<path>` or `VOLMLIB_DIR`), otherwise
|
||||
from the published `volmLibCoordinate` in `gradle.properties`, which matches Iris's. Classes compile with Iris's options
|
||||
(`-parameters`, no debug info) and `lombok.config` repeats Iris's, so they are the classes Iris shipped when it
|
||||
compiled these sources itself.
|
||||
|
||||
Iris includes this build (`includeBuild('../IrisModule')` in its `settings.gradle`) and depends on its classes: Iris
|
||||
Iris includes this build (`includeBuild('module')` in its `settings.gradle`) and depends on its classes: Iris
|
||||
core and its adapters still name many of them (the cut-over that ends this comes later). Classes that need Iris itself
|
||||
are Iris's and live in Iris core: the layout model (`IrisBiome`, `IrisRegion`, `IrisDimension`, generators, noise
|
||||
styles, expressions, images), the pack's objects and blocks, the structure assembler, locator, fitting and placer
|
||||
|
||||
@@ -2,7 +2,7 @@ rootProject.name = "IrisModule"
|
||||
|
||||
// The built-ins compile against the Iris API alone, from the sibling checkout. Never against iris-host: that is what a host
|
||||
// such as Iris uses to load modules, and packs never see it.
|
||||
includeBuild("../IrisApi") {
|
||||
includeBuild("../api") {
|
||||
dependencySubstitution {
|
||||
substitute(module("com.volmit:iris-api")).using(project(":api"))
|
||||
substitute(module("com.volmit:iris-host")).using(project(":host"))
|
||||
|
||||
+2
-2
@@ -25,9 +25,9 @@ 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
|
||||
// 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 jar (capability art.arcane:iris-builtins).
|
||||
includeBuild(new File(settingsDir, '../IrisModule').canonicalFile) {
|
||||
includeBuild(new File(settingsDir, 'module').canonicalFile) {
|
||||
dependencySubstitution {
|
||||
substitute(module('art.arcane:iris-module')).using(project(':'))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user