add fabric-registry-sync-v0 to all testmods runtime classpath (#2054)

This commit is contained in:
deirn 2022-03-13 20:52:18 +07:00 committed by GitHub
parent 2de5574501
commit ac596cd27a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,6 +226,11 @@ subprojects {
testmodImplementation project(path: ':fabric-gametest-api-v1', configuration: 'namedElements')
testmodImplementation project(path: ':fabric-resource-loader-v0', configuration: 'namedElements')
}
// Make all testmods run with registry-sync-v0 as it is required to register new objects.
if (project.name != "fabric-registry-sync-v0") {
testmodRuntimeOnly project(path: ':fabric-registry-sync-v0', configuration: 'namedElements')
}
}
publishing {