project hierarchy
- parent-module
– child-module
Hello,
How to publish parent module including child module.
this is build.gradle.kts file at root
publishing {
publications {
create<MavenPublication>("maven") {
groupId = group.toString()
artifactId = project.name
version = version.toString()
from(components["java"])
}
}
}
this setting above only publish parent module
so after research I ended up adding this line
from(subprojects.flatMap { it.components["java"] })
under from(components[“java”])
but It didn’t work.
Thank you…