@@ -59,33 +59,45 @@ lazy val lib = project
59
59
Compile / unmanagedResources / includeFilter := " regexes.yaml" ,
60
60
Test / unmanagedResourceDirectories += (ThisBuild / baseDirectory).value / " core" ,
61
61
Test / unmanagedResources / includeFilter := " *.yaml" ,
62
-
63
- // Publishing
64
- publishMavenStyle := true ,
65
- publishTo := {
62
+ Test / publishArtifact := false ,
63
+ publishMavenStyle := true ,
64
+ publishTo := {
66
65
val centralSnapshots = " https://central.sonatype.com/repository/maven-snapshots/"
67
66
if (isSnapshot.value) Some (" central-snapshots" at centralSnapshots)
68
67
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 >
89
101
<licenses >
90
102
<license >
91
103
<name >WTFPL </name >
@@ -119,18 +131,6 @@ lazy val lib = project
119
131
<url >https:// twitter.com/ phuc89</url >
120
132
</developer >
121
133
</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
- )
134
134
135
135
// do not cross build or publish the aggregating root
136
136
crossScalaVersions := Nil
0 commit comments