1- // *****************************************************************************
2- // Projects
3- // *****************************************************************************
4-
51lazy val `kalix-codegen` =
62 project
73 .in(file(" ." ))
84 .enablePlugins(AutomateHeaderPlugin )
9- .settings(commonSettings ++ Seq (skip in publish := true ))
5+ .settings(commonSettings ++ Seq (publish / skip := true ))
106 .aggregate(`kalix-codegen-core`, `kalix-codegen-js`, `kalix-codegen-js-cli`)
117
128lazy val `kalix-codegen-core` =
@@ -48,7 +44,7 @@ lazy val `kalix-codegen-js-cli` =
4844 .settings(
4945 buildInfoKeys := Seq [BuildInfoKey ](version),
5046 buildInfoPackage := " io.kalix.codegen.js" ,
51- name in NativeImage := " kalix-codegen-js" ,
47+ NativeImage / name := " kalix-codegen-js" ,
5248 nativeImageVersion := " 22.1.0" ,
5349 /**
5450 * Due to limitations of the Windows command prompt/PowerShell, with a the native-image command fails with a long
@@ -57,7 +53,7 @@ lazy val `kalix-codegen-js-cli` =
5753 *
5854 * This has been raised as an issue against the plugin: https://github.com/scalameta/sbt-native-image/issues/26
5955 */
60- fullClasspath in Compile := Seq (Attributed (assembly.value)(AttributeMap .empty)),
56+ Compile / fullClasspath := Seq (Attributed (assembly.value)(AttributeMap .empty)),
6157 cachedNativeImage := Def .taskDyn {
6258 import sbt .util .CacheImplicits ._
6359
@@ -79,10 +75,10 @@ lazy val `kalix-codegen-js-cli` =
7975 nativeImageAgentMerge := true ,
8076 nativeImageOptions ++= Seq (
8177 " --no-fallback" ,
82- " -H:JNIConfigurationFiles=" + (resourceDirectory in Compile ).value / " jni-config.json" ,
83- " -H:DynamicProxyConfigurationFiles=" + (resourceDirectory in Compile ).value / " proxy-config.json" ,
84- " -H:ReflectionConfigurationFiles=" + (resourceDirectory in Compile ).value / " reflect-config.json" ,
85- " -H:ResourceConfigurationFiles=" + (resourceDirectory in Compile ).value / " resource-config.json" ),
78+ " -H:JNIConfigurationFiles=" + (Compile / resourceDirectory ).value / " jni-config.json" ,
79+ " -H:DynamicProxyConfigurationFiles=" + (Compile / resourceDirectory ).value / " proxy-config.json" ,
80+ " -H:ReflectionConfigurationFiles=" + (Compile / resourceDirectory ).value / " reflect-config.json" ,
81+ " -H:ResourceConfigurationFiles=" + (Compile / resourceDirectory ).value / " resource-config.json" ),
8682 libraryDependencies ++= Seq (
8783 library.scopt,
8884 library.munit % " it,test" ,
@@ -91,8 +87,8 @@ lazy val `kalix-codegen-js-cli` =
9187 library.requests % " it" ,
9288 library.testcontainers % " it" ,
9389 library.typesafeConfig % " it" ),
94- testOptions in IntegrationTest += Tests .Argument (s " -Djs-codegen-cli.native-image= ${cachedNativeImage.value}" ),
95- skip in publish := true )
90+ IntegrationTest / testOptions += Tests .Argument (s " -Djs-codegen-cli.native-image= ${cachedNativeImage.value}" ),
91+ publish / skip := true )
9692 .dependsOn(`kalix-codegen-js`)
9793
9894// *****************************************************************************
@@ -155,7 +151,7 @@ lazy val commonSettings =
155151 sys.env.getOrElse(" CLOUDSMITH_USER" , " " ),
156152 sys.env.getOrElse(" CLOUDSMITH_PASS" , " " )),
157153 // Assembly
158- assemblyMergeStrategy in assembly := {
154+ assembly / assemblyMergeStrategy := {
159155 case s if s.endsWith(" .proto" ) =>
160156 MergeStrategy .first
161157 case " module-info.class" => MergeStrategy .discard
0 commit comments