1
1
Global / onChangedBuildSource := ReloadOnSourceChanges
2
2
3
- name := " snappy-java"
4
- organization := " org.xerial.snappy"
3
+ name := " snappy-java"
4
+ organization := " org.xerial.snappy"
5
5
organizationName := " xerial.org"
6
- description := " snappy-java: A fast compression/decompression library"
6
+ description := " snappy-java: A fast compression/decompression library"
7
7
8
- sonatypeProfileName := " org.xerial"
8
+ sonatypeProfileName := " org.xerial"
9
9
ThisBuild / publishTo := sonatypePublishToBundle.value
10
- licenses := Seq (" Apache-2.0" -> url(" https://www.apache.org/licenses/LICENSE-2.0.html" ))
11
- homepage := Some (url(" https://github.com/xerial/snappy-java" ))
10
+ licenses := Seq (" Apache-2.0" -> url(" https://www.apache.org/licenses/LICENSE-2.0.html" ))
11
+ homepage := Some (url(" https://github.com/xerial/snappy-java" ))
12
12
scmInfo := Some (
13
13
ScmInfo (
14
14
browseUrl = url(" https://github.com/xerial/snappy-java" ),
@@ -19,6 +19,11 @@ developers := List(
19
19
Developer (id
= " leo" , name
= " Taro L. Saito" , email
= " [email protected] " , url
= url(
" http://xerial.org/leo" ))
20
20
)
21
21
22
+ // Use dynamic snapshot version strings for non tagged versions
23
+ ThisBuild / dynverSonatypeSnapshots := true
24
+ // Use coursier friendly version separator
25
+ ThisBuild / dynverSeparator := " -"
26
+
22
27
ThisBuild / scalaVersion := " 2.12.11"
23
28
24
29
// For building jars for JDK8
@@ -57,27 +62,27 @@ testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v")
57
62
Test / parallelExecution := false
58
63
59
64
autoScalaLibrary := false
60
- crossPaths := false
65
+ crossPaths := false
61
66
62
67
libraryDependencies ++= Seq (
63
- " junit" % " junit" % " 4.13.2" % " test" ,
64
- " org.codehaus.plexus" % " plexus-classworlds" % " 2.7.0" % " test" ,
65
- " org.xerial.java" % " xerial-core" % " 2.1" % " test" ,
68
+ " junit" % " junit" % " 4.13.2" % " test" ,
69
+ " org.codehaus.plexus" % " plexus-classworlds" % " 2.7.0" % " test" ,
70
+ " org.xerial.java" % " xerial-core" % " 2.1" % " test" ,
66
71
" org.wvlet.airframe" %% " airframe-log" % " 22.12.6" % " test" ,
67
- " org.osgi" % " org.osgi.core" % " 4.3.0" % " provided" ,
68
- " com.github.sbt" % " junit-interface" % " 0.13.3" % " test" ,
72
+ " org.osgi" % " org.osgi.core" % " 4.3.0" % " provided" ,
73
+ " com.github.sbt" % " junit-interface" % " 0.13.3" % " test" ,
69
74
" org.apache.hadoop" % " hadoop-common" % " 2.10.2" % " test" exclude (" org.xerial.snappy" , " snappy-java" )
70
75
)
71
76
72
77
enablePlugins(SbtOsgi )
73
78
74
79
osgiSettings
75
80
76
- OsgiKeys .exportPackage := Seq (" org.xerial.snappy" , " org.xerial.snappy.buffer" , " org.xerial.snappy.pool" )
81
+ OsgiKeys .exportPackage := Seq (" org.xerial.snappy" , " org.xerial.snappy.buffer" , " org.xerial.snappy.pool" )
77
82
OsgiKeys .bundleSymbolicName := " org.xerial.snappy.snappy-java"
78
- OsgiKeys .bundleActivator := Option (" org.xerial.snappy.SnappyBundleActivator" )
79
- OsgiKeys .importPackage := Seq (""" org.osgi.framework;version="[1.5,2)"""" )
80
- OsgiKeys .requireCapability := """ osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.7))""""
83
+ OsgiKeys .bundleActivator := Option (" org.xerial.snappy.SnappyBundleActivator" )
84
+ OsgiKeys .importPackage := Seq (""" org.osgi.framework;version="[1.5,2)"""" )
85
+ OsgiKeys .requireCapability := """ osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.7))""""
81
86
82
87
OsgiKeys .additionalHeaders := Map (
83
88
" Bundle-NativeCode" -> Seq (
@@ -108,22 +113,3 @@ OsgiKeys.additionalHeaders := Map(
108
113
" Bundle-ActivationPolicy" -> " lazy" ,
109
114
" Bundle-Name" -> " snappy-java: A fast compression/decompression library"
110
115
)
111
-
112
- import ReleaseTransformations ._
113
-
114
- releaseTagName := { (ThisBuild / version).value }
115
-
116
- releaseProcess := Seq [ReleaseStep ](
117
- checkSnapshotDependencies,
118
- inquireVersions,
119
- runClean,
120
- runTest,
121
- setReleaseVersion,
122
- commitReleaseVersion,
123
- tagRelease,
124
- releaseStepCommand(" publishSigned" ),
125
- releaseStepCommand(" sonatypeBundleRelease" ),
126
- setNextVersion,
127
- commitNextVersion,
128
- pushChanges
129
- )
0 commit comments