Open Goooler opened 1 month ago
Declare subprojects in settings.gradle like:
settings.gradle
include( ":sample", ":compose-multiplatform:library", ":compose-multiplatform:sample" )
the structure should be:
├── compose-multiplatform │ ├── library │ └── sample ├── sample
then configure BCV in root build.gradle:
build.gradle
plugins { id("org.jetbrains.kotlinx.binary-compatibility-validator:0.15.1") } apiValidation { ignoredProjects += listOf( "sample" ) }
then dump APIs for them, compose-multiplatform:sample and sample projects are both ignored.
compose-multiplatform:sample
sample
If we add compose-multiplatform:sample into ignoredProjects and run again, there will be an error:
Cannot find excluded project compose-multiplatform:sample in all projects: [root-project, compose-multiplatform, core, sample, library, sample]
as you can see, there are 2 projects listed here with the same name sample, they should be split.
Duplicate of #16
Declare subprojects in
settings.gradle
like:the structure should be:
then configure BCV in root
build.gradle
:then dump APIs for them,
compose-multiplatform:sample
andsample
projects are both ignored.If we add
compose-multiplatform:sample
into ignoredProjects and run again, there will be an error:as you can see, there are 2 projects listed here with the same name
sample
, they should be split.