@@ -2,7 +2,6 @@ import sbt._
22import Keys ._
33import sbtprotoc .ProtocPlugin .autoImport .PB
44import scala .sys .process .{ProcessLogger , Process }
5- import xerial .sbt .Sonatype .autoImport .sonatypeBundleDirectory
65
76object NoProcessLogger extends ProcessLogger {
87 def info (s : => String ) = ()
@@ -40,9 +39,9 @@ final case class ProtosProject(
4039 else s " ${module.revision}- ${buildNumber}"
4140 },
4241 crossScalaVersions := (scalapbMajorMinor match {
43- case " 0.9" => List (Scala213 , Scala212 , Scala211 )
4442 case " 0.10" => List (Scala213 , Scala212 )
4543 case " 0.11" => List (Scala3 , Scala213 , Scala212 )
44+ case " 1.0" => List (Scala3 , Scala213 , Scala212 )
4645 }),
4746 versionTag := s " ${basePackageName}/ ${module.revision}- ${buildNumber}" ,
4847 libraryDependencies ++= (if (grpc)
@@ -69,7 +68,6 @@ final case class ProtosProject(
6968 createTags := createTagsImpl.value,
7069 publish / skip := (sys.env
7170 .getOrElse(" PUBLISH_ONLY" , basePackageName) != basePackageName),
72- sonatypeBundleDirectory := (ThisBuild / baseDirectory).value / " target" / " sonatype-staging" ,
7371 Compile / resourceGenerators += Def .task {
7472
7573 val packageOptionsFile =
@@ -104,21 +102,21 @@ final case class ProtosProject(
104102 )
105103 }
106104
107- def scalapb09 : Project =
108- protoProject(" 0.9.8" ).dependsOn(
109- dependencies.map(d => ClasspathDependency (d.scalapb09, None )): _*
110- )
111-
112105 val scalapb10 : Project =
113106 protoProject(" 0.10.11" ).dependsOn(
114107 dependencies.map(d => ClasspathDependency (d.scalapb10, None )): _*
115108 )
116109
117110 val scalapb11 : Project =
118- protoProject(" 0.11.5 " ).dependsOn(
111+ protoProject(" 0.11.20 " ).dependsOn(
119112 dependencies.map(d => ClasspathDependency (d.scalapb11, None )): _*
120113 )
121114
115+ val scalapb1 : Project =
116+ protoProject(" 1.0.0-alpha.2" ).dependsOn(
117+ dependencies.map(d => ClasspathDependency (d.scalapb1, None )): _*
118+ )
119+
122120 def dependsOn (other : ProtosProject ) =
123121 copy(dependencies = dependencies :+ other)
124122}
0 commit comments