1- import org .typelevel .scalacoptions ._
1+ import org .typelevel .scalacoptions .*
2+ import sbt .Keys .versionScheme
3+ import xerial .sbt .Sonatype .sonatypeCentralHost
24
35val root = (project in file(" ." ))
46 .settings(commonSettings)
@@ -28,10 +30,11 @@ lazy val commonSettings = List(
2830 ScmInfo (
2931 url(" https://github.com/Chili-Piper/scala-quartz" ),
3032 " scm:git:https://github.com/Chili-Piper/scala-quartz.git" ,
31- Some (" scm:git:git@github.com:Chili-Piper/scala-quartz.git" )
32- )
33+ Some (" scm:git:git@github.com:Chili-Piper/scala-quartz.git" ),
34+ ),
3335 ),
34- sonatypeCredentialHost := " s01.oss.sonatype.org" ,
36+ sonatypeCredentialHost := sonatypeCentralHost,
37+ sonatypeProfileName := " com.chilipiper" ,
3538 versionScheme := Some (" early-semver" ),
3639 scalaVersion := " 2.13.16" ,
3740 crossScalaVersions := List (scalaVersion.value, " 3.3.6" ),
@@ -48,9 +51,6 @@ lazy val commonSettings = List(
4851 buildInfoKeys := List [BuildInfoKey ](organization, moduleName, version),
4952 buildInfoOptions += BuildInfoOption .ToJson ,
5053 buildInfoPackage := s " ${organization.value}. ${moduleName.value}" .replace(" -" , " ." ),
51- Compile / packageBin / packageOptions += Package .ManifestAttributes (
52- " Automatic-Module-Name" -> s " ${organization.value}. ${moduleName.value}" .replace(" -" , " ." ),
53- ),
5454 scalacOptions ++= {
5555 CrossVersion .partialVersion(scalaVersion.value) match {
5656 case Some ((2 , _)) =>
0 commit comments