Skip to content

Commit

Permalink
Bumps mu to v0.29.1 (#324)
Browse files Browse the repository at this point in the history
* Update build.sbt

* Bumps Scala

* Bumps Scala on scripted tests

* Fixes test Scala path

* More Scala path fixes

* Update build.sbt

Co-authored-by: Francisco Diaz <[email protected]>

Co-authored-by: Francisco Diaz <[email protected]>
  • Loading branch information
fedefernandez and franciscodr authored Oct 19, 2022
1 parent e7d8ba6 commit 10c773d
Show file tree
Hide file tree
Showing 31 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ lazy val core = project
)
)

val muV = "0.28.0+42-bd246ae6-SNAPSHOT" // TODO update when mu-scala is released
val muV = "0.29.1"
lazy val plugin = project
.dependsOn(core)
.settings(moduleName := "sbt-mu-srcgen")
Expand Down
4 changes: 2 additions & 2 deletions plugin/src/sbt-test/sbt-mu-srcgen/avroWithBadSchema/build.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version := sys.props("version")
scalaVersion := "2.13.8"
scalaVersion := "2.13.10"

enablePlugins(SrcGenPlugin)

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")
libraryDependencies ++= Seq(
"io.higherkindness" %% "mu-rpc-service" % sys.props("mu")
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))
6 changes: 3 additions & 3 deletions plugin/src/sbt-test/sbt-mu-srcgen/avroWithSchema/build.sbt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version := sys.props("version")
scalaVersion := "2.13.8"
crossScalaVersions := List(scalaVersion.value, "3.1.1")
scalaVersion := "2.13.10"
crossScalaVersions := List(scalaVersion.value, "3.2.0")

enablePlugins(SrcGenPlugin)

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")
libraryDependencies ++= Seq(
"io.higherkindness" %% "mu-rpc-service" % sys.props("mu")
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))
8 changes: 4 additions & 4 deletions plugin/src/sbt-test/sbt-mu-srcgen/avroWithSchema/test
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ $ exists src/main/resources/service.avdl
> 'set muSrcGenSerializationType := higherkindness.mu.rpc.srcgen.Model.SerializationType.Avro'
> +muSrcGen
$ exists target/scala-2.13/src_managed/main/io/higherkindness/MyService.scala
$ exists target/scala-3.1.1/src_managed/main/io/higherkindness/MyService.scala
$ exists target/scala-3.2.0/src_managed/main/io/higherkindness/MyService.scala
> +compile
$ delete target/scala-2.13/src_managed/main/io/higherkindness/MyService.scala
$ delete target/scala-3.1.1/src_managed/main/io/higherkindness/MyService.scala
$ delete target/scala-3.2.0/src_managed/main/io/higherkindness/MyService.scala

> 'set muSrcGenSerializationType := higherkindness.mu.rpc.srcgen.Model.SerializationType.AvroWithSchema'
> +muSrcGen
$ exists target/scala-2.13/src_managed/main/io/higherkindness/MyService.scala
$ exists target/scala-3.1.1/src_managed/main/io/higherkindness/MyService.scala
$ exists target/scala-3.2.0/src_managed/main/io/higherkindness/MyService.scala
$ must-mirror target/scala-2.13/src_managed/main/io/higherkindness/MyService.scala expected/scala-2/MyService.scala.txt
$ must-mirror target/scala-3.1.1/src_managed/main/io/higherkindness/MyService.scala expected/scala-3/MyService.scala.txt
$ must-mirror target/scala-3.2.0/src_managed/main/io/higherkindness/MyService.scala expected/scala-3/MyService.scala.txt
> +compile
> +compile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version := sys.props("version")
scalaVersion := "2.13.8"
crossScalaVersions := List(scalaVersion.value, "3.1.1")
scalaVersion := "2.13.10"
crossScalaVersions := List(scalaVersion.value, "3.2.0")

enablePlugins(SrcGenPlugin)

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")
libraryDependencies ++= Seq(
"io.higherkindness" %% "mu-rpc-server" % sys.props("mu")
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))
4 changes: 2 additions & 2 deletions plugin/src/sbt-test/sbt-mu-srcgen/avrohuggerRewrites/test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$ exists src/main/resources/model.avdl
> +muSrcGen
$ exists target/scala-2.13/src_managed/main/foo/model.scala
$ exists target/scala-3.1.1/src_managed/main/foo/model.scala
$ exists target/scala-3.2.0/src_managed/main/foo/model.scala
$ must-mirror target/scala-2.13/src_managed/main/foo/model.scala expected/scala-2/model.scala.txt
$ must-mirror target/scala-3.1.1/src_managed/main/foo/model.scala expected/scala-3/model.scala.txt
$ must-mirror target/scala-3.2.0/src_managed/main/foo/model.scala expected/scala-3/model.scala.txt
> +compile
6 changes: 3 additions & 3 deletions plugin/src/sbt-test/sbt-mu-srcgen/basic/build.sbt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version := sys.props("version")
scalaVersion := "2.13.8"
crossScalaVersions := List(scalaVersion.value, "3.1.1")
scalaVersion := "2.13.10"
crossScalaVersions := List(scalaVersion.value, "3.2.0")

enablePlugins(SrcGenPlugin)

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")
libraryDependencies ++= Seq(
"io.higherkindness" %% "mu-rpc-server" % sys.props("mu")
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))
2 changes: 1 addition & 1 deletion plugin/src/sbt-test/sbt-mu-srcgen/basic/test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ exists src/main/resources/model.avdl
> +muSrcGen
$ exists target/scala-2.13/src_managed/main/foo/model.scala
$ exists target/scala-3.1.1/src_managed/main/foo/model.scala
$ exists target/scala-3.2.0/src_managed/main/foo/model.scala
> +compile
4 changes: 2 additions & 2 deletions plugin/src/sbt-test/sbt-mu-srcgen/gzipCompression/build.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version := sys.props("version")
scalaVersion := "2.13.8"
scalaVersion := "2.13.10"

enablePlugins(SrcGenPlugin)

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")
libraryDependencies ++= Seq(
"io.higherkindness" %% "mu-rpc-service" % sys.props("mu")
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version := sys.props("version")
scalaVersion := "2.13.8"
scalaVersion := "2.13.10"

enablePlugins(SrcGenPlugin)

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")
libraryDependencies ++= Seq(
"io.higherkindness" %% "mu-rpc-service" % sys.props("mu")
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))
4 changes: 2 additions & 2 deletions plugin/src/sbt-test/sbt-mu-srcgen/srcGenFromDirs/build.sbt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import higherkindness.mu.rpc.srcgen.Model.IdlType

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val root = project
.in(file("."))
.enablePlugins(SrcGenPlugin)
.settings(
name := "root",
version := "1.0.0",
scalaVersion := "2.13.8",
scalaVersion := "2.13.10",
muSrcGenIdlType := IdlType.Avro,
muSrcGenSourceDirs := Seq(
(Compile / resourceDirectory).value / "domain",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))
6 changes: 3 additions & 3 deletions plugin/src/sbt-test/sbt-mu-srcgen/srcGenFromJars/build.sbt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import higherkindness.mu.rpc.srcgen.Model.IdlType

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val domain = project
.in(file("domain"))
.enablePlugins(SrcGenPlugin)
.settings(
organization := "foo.bar.srcgenfromjars",
name := "domain",
scalaVersion := "2.13.8",
scalaVersion := "2.13.10",
version := "1.0.0-SNAPSHOT",
Compile / packageBin / mappings ~= { _.filter(!_._1.getName.endsWith(".class")) },
muSrcGenIdlType := IdlType.Avro,
Expand All @@ -24,7 +24,7 @@ lazy val root = project
.enablePlugins(SrcGenPlugin)
.settings(
name := "root",
scalaVersion := "2.13.8",
scalaVersion := "2.13.10",
version := sys.props("version"),
muSrcGenIdlType := IdlType.Avro,
muSrcGenJarNames := Seq("domain"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))
6 changes: 3 additions & 3 deletions plugin/src/sbt-test/sbt-mu-srcgen/srcGenFromJars2/build.sbt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import higherkindness.mu.rpc.srcgen.Model.IdlType

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val domain = project
.in(file("domain"))
.enablePlugins(SrcGenPlugin)
.settings(
organization := "foo.bar.srcgenfromjars2",
name := "domain",
scalaVersion := "2.13.8",
scalaVersion := "2.13.10",
version := "1.0.0-SNAPSHOT",
Compile / packageBin / mappings ~= { _.filter(!_._1.getName.endsWith(".class")) },
muSrcGenIdlType := IdlType.Avro,
Expand All @@ -24,7 +24,7 @@ lazy val root = project
.enablePlugins(SrcGenPlugin)
.settings(
name := "root",
scalaVersion := "2.13.8",
scalaVersion := "2.13.10",
version := sys.props("version"),
muSrcGenIdlType := IdlType.Avro,
muSrcGenJarNames := Seq("domain"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import higherkindness.mu.rpc.srcgen.Model.IdlType

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val root = project
.in(file("."))
.enablePlugins(SrcGenPlugin)
.settings(
crossScalaVersions := Seq("2.13.8", "3.1.1"),
crossScalaVersions := Seq("2.13.10", "3.2.0"),
muSrcGenIdlType := IdlType.Proto,
muSrcGenTargetDir := (Compile / sourceManaged).value / "compiled_proto",
libraryDependencies ++= Seq(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))
2 changes: 1 addition & 1 deletion plugin/src/sbt-test/sbt-mu-srcgen/srcProtoGenFromDirs/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ $ exists target/scala-2.13/src_managed/main/compiled_proto/com/proto/book/Book.s
$ exists target/scala-2.13/src_managed/main/compiled_proto/com/proto/book/GetBookRequest.scala
$ exists target/scala-2.13/src_managed/main/compiled_proto/com/proto/book/BookService.scala
$ must-mirror target/scala-2.13/src_managed/main/compiled_proto/com/proto/book/BookService.scala expected/scala-2/BookService.scala.txt
$ must-mirror target/scala-3.1.1/src_managed/main/compiled_proto/com/proto/book/BookService.scala expected/scala-3/BookService.scala.txt
$ must-mirror target/scala-3.2.0/src_managed/main/compiled_proto/com/proto/book/BookService.scala expected/scala-3/BookService.scala.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import higherkindness.mu.rpc.srcgen.Model.IdlType

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val domain = project
.in(file("domain"))
.enablePlugins(SrcGenPlugin)
.settings(
organization := "foo.bar.srcprotogenfromjars",
name := "domain",
scalaVersion := "2.13.8",
scalaVersion := "2.13.10",
version := "1.0.0-SNAPSHOT",
Compile / packageBin / mappings ~= { _.filter(!_._1.getName.endsWith(".class")) },
muSrcGenIdlType := IdlType.Proto,
Expand All @@ -26,7 +26,7 @@ lazy val root = project
.enablePlugins(SrcGenPlugin)
.settings(
name := "root",
scalaVersion := "2.13.8",
scalaVersion := "2.13.10",
version := sys.props("version"),
muSrcGenIdlType := IdlType.Proto,
muSrcGenJarNames := Seq("domain"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import higherkindness.mu.rpc.srcgen.Model.IdlType

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val domain = project
.in(file("domain"))
.enablePlugins(SrcGenPlugin)
.settings(
organization := "foo.bar.srcprotogenfromjars2",
name := "domain",
scalaVersion := "2.13.8",
scalaVersion := "2.13.10",
version := "1.0.0-SNAPSHOT",
Compile / packageBin / mappings ~= { _.filter(!_._1.getName.endsWith(".class")) },
muSrcGenIdlType := IdlType.Proto,
Expand All @@ -26,7 +26,7 @@ lazy val root = project
.enablePlugins(SrcGenPlugin)
.settings(
name := "root",
scalaVersion := "2.13.8",
scalaVersion := "2.13.10",
version := sys.props("version"),
muSrcGenIdlType := IdlType.Proto,
muSrcGenJarNames := Seq("domain"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import higherkindness.mu.rpc.srcgen.Model.IdlType

ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val root = project
.in(file("."))
.enablePlugins(SrcGenPlugin)
.settings(
crossScalaVersions := Seq("2.13.8", "3.1.1"),
crossScalaVersions := Seq("2.13.10", "3.2.0"),
muSrcGenIdlType := IdlType.Proto,
muSrcGenTargetDir := (Compile / sourceManaged).value / "compiled_proto",
muSrcGenValidateProto := true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("io.higherkindness" %% "sbt-mu-srcgen" % sys.props("version"))

0 comments on commit 10c773d

Please sign in to comment.