eygraber
08/30/2022, 7:01 PMdependsOn(appleMain) necessary?
with(sourceSets) {
val appleMain = create("appleMain") {
dependsOn(getByName("commonMain"))
}
create("appleTest") {
dependsOn(appleMain)
dependsOn(getByName("commonTest"))
}
}Javier
08/30/2022, 7:06 PMJavier
08/30/2022, 7:06 PMdarwinMain.dependsOn(commonMain)
for (darwinMainSourceSet in darwinMainSourceSets) {
darwinMainSourceSet.dependsOn(darwinMain)
}
darwinTest.dependsOn(commonTest)
for (darwinTestSourceSet in darwinTestSourceSets) {
darwinTestSourceSet.dependsOn(darwinTest)
}Javier
08/30/2022, 7:07 PMeygraber
08/30/2022, 7:08 PMcommonTest that I want to use in appleTest so I have that dependency there for that reason.
My question is, do I need a dependency on appleMain from appleTest or is one set up automagically?Javier
08/30/2022, 7:13 PMeygraber
08/30/2022, 7:14 PMephemient
08/30/2022, 7:16 PMkotlin.targets.apple then kotlin.sourceSets.appleMain, kotlin.sourceSets.appleTest will be set up, you don't need to createeygraber
08/30/2022, 7:20 PMapple target; just source setsOliver.O
08/30/2022, 7:35 PMeygraber
08/30/2022, 7:47 PMdependsOn(appleMain)
dependsOn(commonTest)Oliver.O
08/30/2022, 7:51 PMSebastian Sellmair [JB]
08/31/2022, 1:08 AMSebastian Sellmair [JB]
08/31/2022, 1:10 AMeygraber
08/31/2022, 1:15 AMmain and test?Javier
08/31/2022, 9:59 AMJavier
08/31/2022, 9:59 AMJavier
08/31/2022, 10:00 AMSebastian Sellmair [JB]
08/31/2022, 12:28 PMJavier
08/31/2022, 12:35 PMOliver.O
08/31/2022, 12:45 PMmain and test compilations and a modified source set hierarchy like so:
• commonMain
◦ frontendMain
▪︎ appleMain
▪︎ desktopMain
• commonTest
◦ appleTest
How would the plugin infer that appleTest should depend on appleMain but not on desktopMain or frontendMain?Javier
08/31/2022, 1:10 PMeygraber
08/31/2022, 2:01 PMtest source sets are matching the same compilation of their respective main sets
So if
iosMain depends on appleMain and iosTest depends on appleTest is the inference that appleTest should depend on appleMain?Javier
08/31/2022, 2:15 PMeygraber
09/05/2022, 8:50 PMSebastian Sellmair [JB]
09/06/2022, 7:34 AMassociatedCompilations where test compilations get associated with their main compilations. Based upon this the source set visibility inference is done.eygraber
09/06/2022, 7:58 AMOliver.O
09/07/2022, 11:05 AMSebastian Sellmair [JB]
09/07/2022, 2:25 PMOliver.O
09/07/2022, 2:32 PMSebastian Sellmair [JB]
09/07/2022, 7:55 PMSebastian Sellmair [JB]
09/07/2022, 7:55 PMOliver.O
09/07/2022, 8:01 PMSebastian Sellmair [JB]
09/07/2022, 8:02 PMSebastian Sellmair [JB]
09/07/2022, 8:02 PMbut never got an answer.Oh I am sorry to hear that, where did you ask?
Oliver.O
09/07/2022, 8:05 PMSebastian Sellmair [JB]
09/07/2022, 8:12 PMOliver.O
09/07/2022, 8:16 PMPamela Hill
09/08/2022, 6:06 AMOliver.O
09/08/2022, 11:03 AMPamela Hill
09/08/2022, 11:38 AM