Dariusz Kuc
05/11/2020, 3:28 PM- build.gradle.kts // [1] root builds java artifact
- src
- main/java - some common utils here
- main/resources - some common resources
- main/proto
- kotlin-specific
- build.gradle.kts [2] builds kotlin artfiact with some sources from [1]
- src/main/kotlin - kotlin specific utils
Whats the proper way to reference sources/resources from root [1] in my kotlin specific build [2]? e.g. I could do something like
sourceSets {
main {
java.srcDir("${rootProject.java}/src/main/java")
}
}
but wondering if there is a better wayaraqnid
05/11/2020, 3:34 PMdependencies {
api(project(":"))
}
Then it will be published as a compile-time dependency rather than duplicating the classesDariusz Kuc
05/11/2020, 4:14 PMaraqnid
05/11/2020, 4:33 PMDariusz Kuc
05/11/2020, 4:38 PMgrpc
plugin examples use protobuf
setup that always rely on java
lib and then adds separate generators (i.e. unsure if i can pull the generated base java sources to a common artifact, guess can try)araqnid
05/11/2020, 6:08 PMDariusz Kuc
05/11/2020, 6:12 PM