daml/scala-protoc-plugins/scalapb/ScalaPbCompilerPlugin.scala
Gerolf Seitz a2d785e3ee
Use com.daml as root package (#5343)
Packages com.digitalasset.daml and com.daml have been unified under com.daml

Ledger API and DAML-LF DEV protos have also been moved from `com/digitalasset`
to `com/daml` on the file system.
Protos for already released DAML LF versions (1.6, 1.7, 1.8) stay in the
package `com.digitalasset`.

CHANGELOG_BEGIN
[SDK] All Java and Scala packages starting with
``com.digitalasset.daml`` and ``com.digitalasset`` are now consolidated
under ``com.daml``. Simply changing imports should be enough to
migrate your code.
CHANGELOG_END
2020-04-05 19:49:57 +02:00

16 lines
489 B
Scala

// Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package com.daml.protoc.plugins.scalapb
import scala.reflect.io.Streamable
// This file is mostly copied over from ScalaPbCodeGenerator and ProtobufGenerator
object ScalaPbCompilerPlugin {
def main(args: Array[String]): Unit = {
val request = Streamable.bytes(System.in)
System.out.write(scalapb.ScalaPbCodeGenerator.run(request))
}
}