I found an example in the repository that shows you how to create a project that produces an api and impl jar
Is it possible to declare a dependency on just the api from another (sub) project and if so what would be the syntax for that
I found an example in the repository that shows you how to create a project that produces an api and impl jar
Is it possible to declare a dependency on just the api from another (sub) project and if so what would be the syntax for that
shameless self bump
Basically, you publish the Jars under two different configurations and then depend on a particular one from the other project. Something like:
projectA.gradle
configurations {
api
impl
}
artifacts {
api taskThatProducesApiArtifact
impl taskThatProducesImplArtifact
}
projectB.gradle
dependencies {
compile project(path: ":projectA", configuration: "api")
}
thanks!