Projects that dependOn other sbt projects does not include defined protofiles from other sbt projects.
so if i define this in the 'commons ' project and have a concrete project depend on it:
lazy val common = project(file("common"))
lazy val api = project(file("my-api")).dependsOn(common)
where the commons has these transformers defined it will not be picked up by the other project:
package com.mycompany;
import "scalapb/scalapb.proto";
//Company wide conversions! can be overrided in sub packages if needed
option (scalapb.options) = {
scope: PACKAGE
import: "com.mycompany.protobuf.ProtoToJoda._"
field_transformations : [
{
when : {
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
}
set : {[scalapb.field] {type : 'org.joda.time.base.AbstractInstant' }}
},
{
when : {
type: TYPE_MESSAGE
type_name: ".google.protobuf.Duration"
}
//this should become scala.concurrent.FinitDuration
set : {[scalapb.field] {type : 'org.joda.time.Duration' }}
}
]
};
Projects that dependOn other sbt projects does not include defined protofiles from other sbt projects.
so if i define this in the 'commons ' project and have a concrete project depend on it:
where the commons has these transformers defined it will not be picked up by the other project: