@@ -50,12 +50,6 @@ val commonSettings = Sonatype.sonatypeSettings ++ releaseSettings ++ Seq(
5050 crossScalaVersions := Seq (" 2.12.10" , " 2.13.8" ),
5151 resolvers += " confluent" at " https://packages.confluent.io/maven/" ,
5252 scalacOptions ++= Seq (" -target:jvm-1.8" , " -deprecation" , " -feature" , " -unchecked" , " -Yrangepos" ),
53- scalacOptions in (Compile , doc) ++= {
54- scalaBinaryVersion.value match {
55- case " 2.12" => " -no-java-comments" :: Nil
56- case _ => Nil
57- }
58- },
5953 scalacOptions ++= {
6054 if (isScala213x.value) {
6155 Seq (" -Ymacro-annotations" , " -Ywarn-unused" )
@@ -72,19 +66,19 @@ val commonSettings = Sonatype.sonatypeSettings ++ releaseSettings ++ Seq(
7266 )
7367 }
7468 },
75- sourceDirectories in Compile := (sourceDirectories in Compile ).value
69+ Compile / sourceDirectories := (Compile / sourceDirectories ).value
7670 .filterNot(_.getPath.endsWith(" /src_managed/main" )),
77- managedSourceDirectories in Compile := (managedSourceDirectories in Compile ).value
71+ Compile / managedSourceDirectories := (Compile / managedSourceDirectories ).value
7872 .filterNot(_.getPath.endsWith(" /src_managed/main" )),
7973 javacOptions ++= Seq (" -source" , " 1.8" , " -target" , " 1.8" , " -Xlint:unchecked" ),
8074 addCompilerPlugin(scalafixSemanticdb),
8175 run / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy .Flat
8276)
8377
8478lazy val protoBufSettings = Seq (
85- version in ProtobufConfig := protoBufVersion,
86- protobufRunProtoc in ProtobufConfig := (args =>
87- com.github.os72.protocjar.Protoc .runProtoc(" -v330 " +: args.toArray)
79+ ProtobufConfig / version := protoBufVersion,
80+ ProtobufConfig / protobufRunProtoc := (args =>
81+ com.github.os72.protocjar.Protoc .runProtoc(" -v3.17.3 " +: args.toArray)
8882 )
8983)
9084
@@ -98,7 +92,7 @@ lazy val releaseSettings = Seq(
9892 releaseCrossBuild := true ,
9993 releasePublishArtifactsAction := PgpKeys .publishSigned.value,
10094 publishMavenStyle := true ,
101- publishArtifact in Test := false ,
95+ Test / publishArtifact := false ,
10296 publishTo := Some (
10397 if (isSnapshot.value) Opts .resolver.sonatypeSnapshots else Opts .resolver.sonatypeStaging
10498 ),
@@ -161,7 +155,7 @@ lazy val ratatoolCommon = project
161155 " com.google.guava" % " guava" % guavaVersion
162156 ),
163157 // In case of scalacheck failures print more info
164- testOptions in Test += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" )
158+ Test / testOptions += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" )
165159 )
166160 .enablePlugins(ProtobufPlugin )
167161 .settings(protoBufSettings)
@@ -185,8 +179,8 @@ lazy val ratatoolSampling = project
185179 " org.scalatest" %% " scalatest" % scalaTestVersion % " test"
186180 ),
187181 // In case of scalacheck failures print more info
188- testOptions in Test += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" ),
189- parallelExecution in Test := false
182+ Test / testOptions += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" ),
183+ Test / parallelExecution := false
190184 )
191185 .enablePlugins(ProtobufPlugin )
192186 .dependsOn(
@@ -211,8 +205,8 @@ lazy val ratatoolDiffy = project
211205 " org.scalatest" %% " scalatest" % scalaTestVersion % " test"
212206 ),
213207 // In case of scalacheck failures print more info
214- testOptions in Test += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" ),
215- parallelExecution in Test := false ,
208+ Test / testOptions += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" ),
209+ Test / parallelExecution := false ,
216210 libraryDependencies ++= {
217211 if (isScala213x.value) {
218212 Seq ()
@@ -242,8 +236,8 @@ lazy val ratatoolShapeless = project
242236 " org.scalatest" %% " scalatest" % scalaTestVersion % " test"
243237 ),
244238 // In case of scalacheck failures print more info
245- testOptions in Test += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" ),
246- parallelExecution in Test := false
239+ Test / testOptions += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" ),
240+ Test / parallelExecution := false
247241 )
248242 .dependsOn(
249243 ratatoolDiffy,
@@ -260,7 +254,7 @@ lazy val ratatoolCli = project
260254 " org.scalatest" %% " scalatest" % scalaTestVersion % " test"
261255 ),
262256 // In case of scalacheck failures print more info
263- testOptions in Test += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" )
257+ Test / testOptions += Tests .Argument (TestFrameworks .ScalaCheck , " -verbosity" , " 3" )
264258 )
265259 .enablePlugins(ProtobufPlugin , PackPlugin )
266260 .dependsOn(
0 commit comments