@@ -59,33 +59,45 @@ lazy val lib = project
5959 Compile / unmanagedResources / includeFilter := " regexes.yaml" ,
6060 Test / unmanagedResourceDirectories += (ThisBuild / baseDirectory).value / " core" ,
6161 Test / unmanagedResources / includeFilter := " *.yaml" ,
62-
63- // Publishing
64- publishMavenStyle := true ,
65- publishTo := {
62+ Test / publishArtifact := false ,
63+ publishMavenStyle := true ,
64+ publishTo := {
6665 val centralSnapshots = " https://central.sonatype.com/repository/maven-snapshots/"
6766 if (isSnapshot.value) Some (" central-snapshots" at centralSnapshots)
6867 else localStaging.value
69- },
70- Test / publishArtifact := false ,
71- releaseCrossBuild := true ,
72- releaseTagComment := s " Release ${(ThisBuild / version).value}" ,
73- releaseCommitMessage := s " Set version to ${(ThisBuild / version).value}" ,
74- releaseProcess := Seq [ReleaseStep ](
75- checkSnapshotDependencies,
76- inquireVersions,
77- runClean,
78- runTest,
79- setReleaseVersion,
80- commitReleaseVersion,
81- tagRelease,
82- releaseStepCommandAndRemaining(" +publishSigned" ),
83- releaseStepCommand(" sonaRelease" ),
84- setNextVersion,
85- commitNextVersion,
86- pushChanges
87- ),
88- pomExtra := (<url >https:// github.com/ ua- parser/ uap- scala</url >
68+ }
69+ )
70+
71+ lazy val benchmark = project
72+ .in(file(" modules/benchmark" ))
73+ .settings(commonSettings * )
74+ .dependsOn(lib)
75+ .enablePlugins(JmhPlugin )
76+ .settings(
77+ name := " uap-scala-benchmark" ,
78+ Jmh / run / mainClass := Some (" org.uaparser.scala.benchmark.Main" ),
79+ publish / skip := true
80+ )
81+
82+ // Publishing settings
83+ releaseCrossBuild := true
84+ releaseTagComment := s " Release ${(ThisBuild / version).value}"
85+ releaseCommitMessage := s " Set version to ${(ThisBuild / version).value}"
86+ releaseProcess := Seq [ReleaseStep ](
87+ checkSnapshotDependencies,
88+ inquireVersions,
89+ runClean,
90+ runTest,
91+ setReleaseVersion,
92+ commitReleaseVersion,
93+ tagRelease,
94+ releaseStepCommandAndRemaining(" +publishSigned" ),
95+ releaseStepCommand(" sonaRelease" ),
96+ setNextVersion,
97+ commitNextVersion,
98+ pushChanges
99+ )
100+ ThisBuild / pomExtra := (<url >https:// github.com/ ua- parser/ uap- scala</url >
89101 <licenses >
90102 <license >
91103 <name >WTFPL </name >
@@ -119,18 +131,6 @@ lazy val lib = project
119131 <url >https:// twitter.com/ phuc89</url >
120132 </developer >
121133 </developers >)
122- )
123-
124- lazy val benchmark = project
125- .in(file(" modules/benchmark" ))
126- .settings(commonSettings * )
127- .dependsOn(lib)
128- .enablePlugins(JmhPlugin )
129- .settings(
130- name := " uap-scala-benchmark" ,
131- Jmh / run / mainClass := Some (" org.uaparser.scala.benchmark.Main" ),
132- publish / skip := true
133- )
134134
135135// do not cross build or publish the aggregating root
136136crossScalaVersions := Nil
0 commit comments