mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 06:24:12 +01:00
Stubborn stubs
- Remove Stub SourceSet
This commit is contained in:
parent
d881ba5302
commit
ad2f3c860b
@ -9,7 +9,6 @@ plugins {
|
||||
val api = sourceSets.create("api")
|
||||
val lib = sourceSets.create("lib")
|
||||
val backend = sourceSets.create("backend")
|
||||
val stubs = sourceSets.create("stubs")
|
||||
val main = sourceSets.getByName("main")
|
||||
|
||||
transitiveSourceSets {
|
||||
@ -26,11 +25,8 @@ transitiveSourceSets {
|
||||
rootCompile()
|
||||
compile(api, lib)
|
||||
}
|
||||
sourceSet(stubs) {
|
||||
rootCompile()
|
||||
}
|
||||
sourceSet(main) {
|
||||
compile(api, lib, backend, stubs)
|
||||
compile(api, lib, backend)
|
||||
}
|
||||
sourceSet(sourceSets.getByName("test")) {
|
||||
implementation(api, lib, backend)
|
||||
@ -46,7 +42,6 @@ jarSets {
|
||||
outgoing("commonApiOnly", api)
|
||||
outgoing("commonLib", lib)
|
||||
outgoing("commonBackend", backend)
|
||||
outgoing("commonStubs", stubs)
|
||||
outgoing("commonImpl", main)
|
||||
|
||||
// For publishing.
|
||||
|
@ -10,7 +10,6 @@ plugins {
|
||||
val api = sourceSets.create("api")
|
||||
val lib = sourceSets.create("lib")
|
||||
val backend = sourceSets.create("backend")
|
||||
val stubs = sourceSets.create("stubs")
|
||||
val main = sourceSets.getByName("main")
|
||||
|
||||
transitiveSourceSets {
|
||||
@ -27,12 +26,7 @@ transitiveSourceSets {
|
||||
rootCompile()
|
||||
compile(api, lib)
|
||||
}
|
||||
sourceSet(stubs) {
|
||||
rootCompile()
|
||||
}
|
||||
sourceSet(main) {
|
||||
// Don't want stubs at runtime
|
||||
compile(stubs)
|
||||
implementation(api, lib, backend)
|
||||
}
|
||||
|
||||
@ -41,7 +35,7 @@ transitiveSourceSets {
|
||||
|
||||
platform {
|
||||
commonProject = project(":common")
|
||||
compileWithCommonSourceSets(api, lib, backend, stubs, main)
|
||||
compileWithCommonSourceSets(api, lib, backend, main)
|
||||
setupLoomMod(api, lib, backend, main)
|
||||
setupLoomRuns()
|
||||
setupFatJar(api, lib, backend, main)
|
||||
@ -83,6 +77,5 @@ dependencies {
|
||||
"forApi"(project(path = ":common", configuration = "commonApiOnly"))
|
||||
"forLib"(project(path = ":common", configuration = "commonLib"))
|
||||
"forBackend"(project(path = ":common", configuration = "commonBackend"))
|
||||
"forStubs"(project(path = ":common", configuration = "commonStubs"))
|
||||
"forMain"(project(path = ":common", configuration = "commonImpl"))
|
||||
}
|
||||
|
@ -10,7 +10,6 @@ plugins {
|
||||
val api = sourceSets.create("api")
|
||||
val lib = sourceSets.create("lib")
|
||||
val backend = sourceSets.create("backend")
|
||||
val stubs = sourceSets.create("stubs")
|
||||
val main = sourceSets.getByName("main")
|
||||
|
||||
transitiveSourceSets {
|
||||
@ -27,11 +26,8 @@ transitiveSourceSets {
|
||||
rootCompile()
|
||||
compile(api, lib)
|
||||
}
|
||||
sourceSet(stubs) {
|
||||
rootCompile()
|
||||
}
|
||||
sourceSet(main) {
|
||||
compile(api, lib, backend, stubs)
|
||||
compile(api, lib, backend)
|
||||
}
|
||||
|
||||
createCompileConfigurations()
|
||||
@ -39,7 +35,7 @@ transitiveSourceSets {
|
||||
|
||||
platform {
|
||||
commonProject = project(":common")
|
||||
compileWithCommonSourceSets(api, lib, backend, stubs, main)
|
||||
compileWithCommonSourceSets(api, lib, backend, main)
|
||||
setupLoomMod(api, lib, backend, main)
|
||||
setupLoomRuns()
|
||||
setupFatJar(api, lib, backend, main)
|
||||
@ -91,6 +87,5 @@ dependencies {
|
||||
"forApi"(project(path = ":common", configuration = "commonApiOnly"))
|
||||
"forLib"(project(path = ":common", configuration = "commonLib"))
|
||||
"forBackend"(project(path = ":common", configuration = "commonBackend"))
|
||||
"forStubs"(project(path = ":common", configuration = "commonStubs"))
|
||||
"forMain"(project(path = ":common", configuration = "commonImpl"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user