Skip to content

Options set on transtitive projects are not picked up. #283

Description

@borissmidt

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' }}
    }
  ]
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions