mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-01 02:04:51 +00:00
Compile core against IrisApi from the sibling checkout
gradle/irisapi-resolution.settings.gradle includes the IrisApi checkout as a composite build, like VolmLib, and fails clearly when there is none. Core uses it compileOnly and in tests: how the API reaches a server is undecided, so it is not shaded and a built jar cannot load packs yet.
This commit is contained in:
1 parent
efc1320923
commit
d80dd66588
3 files changed
+91
No files matched your search
@@ -53,6 +53,11 @@ String volmLibCoordinate = providers.gradleProperty('volmLibCoordinate')
|
||||
dependencies {
|
||||
api(project(':spi'))
|
||||
|
||||
// IrisApi, from the sibling checkout (gradle/irisapi-resolution.settings.gradle). compileOnly on
|
||||
// purpose: how the API reaches a server at runtime is undecided, so it is not shaded into the
|
||||
// plugin or mod jars, and a built jar cannot load packs until that is decided.
|
||||
compileOnly('com.volmit:IrisApi')
|
||||
|
||||
// Provided or Classpath
|
||||
compileOnly(libs.lombok)
|
||||
annotationProcessor(libs.lombok)
|
||||
@@ -107,6 +112,7 @@ dependencies {
|
||||
slim(libs.dom4j)
|
||||
slim(libs.jaxen)
|
||||
|
||||
testImplementation('com.volmit:IrisApi')
|
||||
testImplementation('junit:junit:4.13.2')
|
||||
testImplementation('org.mockito:mockito-core:5.23.0')
|
||||
testImplementation(libs.paper.api)
|
||||
|
||||
Reference in new issue
Block a user