XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

MyDimension-Lord

【我的世界】我的维度附属模组:维度之主

公开
关注 0 Fork 0 Star 0
UTF-8
// Override this path when the parent checkout has a different name/location.
ext.parentProjectDir = file(providers.gradleProperty('parentProjectDir').getOrElse('../mydimension-template-1.20.1'))
def parentClasses = new File(parentProjectDir, 'build/classes/java/main')
def parentResources = new File(parentProjectDir, 'build/resources/main')
ext.parentResourcesDir = parentResources.exists() ? parentResources : parentClasses
sourceSets {
    parentMod {
        java.srcDirs = []
        resources.srcDirs = []
        output.classesDirs.setFrom(parentClasses)
        output.resourcesDir = parentResourcesDir
    }
}
// These outputs belong to the separately built parent. Empty-source Gradle tasks
// otherwise clean them before the addon development run.
tasks.named('compileParentModJava') { enabled = false }
tasks.named('processParentModResources') { enabled = false }
dependencies {
    implementation sourceSets.parentMod.output
}