mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-21 11:35:16 +01:00
Generate IDE run configurations, prevent circular dependencies. (#369)
- Now able to launch any supported Minecraft version within the IDE and from CLI. - There are no longer any odd circular or library dependency issues on subprojects. - Explicitly defines rootProject within the subproject remapJar dependency loop.
This commit is contained in:
parent
5fbebdc9f0
commit
c5dcc31c37
19
build.gradle
19
build.gradle
@ -84,8 +84,23 @@ allprojects {
|
||||
}
|
||||
|
||||
subprojects {
|
||||
loom {
|
||||
runs {
|
||||
named("client") {
|
||||
client()
|
||||
ideConfigGenerated(true)
|
||||
runDir("run")
|
||||
}
|
||||
named("server") {
|
||||
server()
|
||||
ideConfigGenerated(true)
|
||||
runDir("run")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(rootProject) {
|
||||
implementation(project(path: ":", configuration: "namedElements")) {
|
||||
exclude group: "net.fabricmc", module: "fabric-loader" // prevent duplicate fabric-loader on run
|
||||
}
|
||||
}
|
||||
@ -126,7 +141,7 @@ static void setupRepositories(RepositoryHandler repositories) {
|
||||
}
|
||||
|
||||
subprojects.each {
|
||||
remapJar.dependsOn("${it.path}:remapJar")
|
||||
rootProject.remapJar.dependsOn("${it.path}:remapJar")
|
||||
}
|
||||
|
||||
configurations {
|
||||
|
Loading…
Reference in New Issue
Block a user