I have three gradle<\/code> projects.
Say
ProjectA<\/code> ,
ProjectB<\/code> and
ProjectC<\/code> .
While
ProjectB<\/code> is dependent on
ProjectA<\/code> .
dependencies {
implementation project(':ProjectA')
implementation project(':ProjectB')
}
Because implementation
is precisely for that: it tells that ProjectA is needed for the code of ProjectB to work (internally), but is not part of its API (ie you don't want clients of ProjectB to rely on the fact that it uses ProjectA internally).
If you want ProjectA to be part of the API or ProjectB, then use the api
configuration rather than implementation.
See the guide for more details.
Add
plugins {
id 'java-library'
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.