base API project

This commit is contained in:
dfsek 2021-09-24 12:06:06 -07:00
parent c35d1acbbf
commit a7d0e7f49b
5 changed files with 14 additions and 7 deletions

View File

@ -41,8 +41,8 @@ fun Project.configureDependencies() {
if (project(":common:addons").subprojects.contains(this)) { // If this is an addon project, depend on the API.
dependencies {
"compileOnly"(project(":common:api:core"))
"testImplementation"(project(":common:api:core"))
"compileOnly"(project(":common:api"))
"testImplementation"(project(":common:api"))
}
}
}

View File

@ -0,0 +1,10 @@
afterEvaluate {
subprojects.forEach {
if(it != project) {
println("Project: ${it.name}")
dependencies {
"shadedApi"(it)
}
}
}
}

View File

@ -1,5 +1,5 @@
dependencies {
"shadedApi"(project(":common:api:core"))
"shadedApi"(project(":common:api"))
"shadedApi"(project(":common:loader:config"))
"shadedApi"(project(":common:loader:addon"))

View File

@ -1,3 +1,3 @@
dependencies {
"shadedApi"(project(":common:api:core"))
"shadedApi"(project(":common:api"))
}

View File

@ -1,3 +0,0 @@
dependencies {
"shadedApi"(project(":common:api:core"))
}