Ivan Carracedo Asensio
02/26/2025, 11:37 AMsourceSets {
commonMain.dependencies {
projects.customerFeatureKMP.customerFeature.apply {
implementation(core)
implementation(data)
implementation(presentation)
implementation(domain)
}
}
the point is that everything compiles, but the final pom and .module have each layer defined as a dependency with an undefined version:
example from .module:
"dependencies": [
{
"group": "CustomerFeatureKMP.customerFeature",
"module": "presentation",
"version": {
"requires": "unspecified"
},
example from .pom
<dependency>
<groupId>CustomerFeatureKMP.customerFeature</groupId>
<artifactId>presentation</artifactId>
<version>unspecified</version>
<scope>runtime</scope>
How can I achieve with this structure a whole thing, customerFeature as a library with the layers just included and not added as dependencies, because when I do this, in the final app I get the error because itโs trying to look for each layer individually(with undefined version btw(I know this is solveable by defining a global version, but still, in the final project it wouldnโt find the layers))
Failed to resolve:CustomerFeatureKMP.customerFeature:domain:unspecified
Failed to resolve:CustomerFeatureKMP.customerFeature:data:unspecified
Failed to resolve:CustomerFeatureKMP.customerFeature:presentation:unspecified
Failed to resolve:CustomerFeatureKMP.customerFeature:core:unspecified
Thanks in advance for anyone taking the time to read this, Iโve been with this for days, trying a lot of options and nothing worksโฆVampire
02/26/2025, 12:50 PMVampire
02/26/2025, 12:50 PMVampire
02/26/2025, 12:51 PMVampire
02/26/2025, 12:52 PMIvan Carracedo Asensio
02/26/2025, 12:54 PM