1
- import sbtrelease .ReleaseStateTransformations ._
2
-
3
- ThisBuild / organization := " com.github.gseitz"
1
+ ThisBuild / organization := " com.github.sbt"
4
2
5
3
lazy val protocJar = " com.github.os72" % " protoc-jar" % " 3.11.4"
6
4
@@ -12,38 +10,31 @@ lazy val root = (project in file("."))
12
10
libraryDependencies += protocJar
13
11
scalacOptions := Seq (" -deprecation" , " -unchecked" , " -Xlint" , " -Yno-adapted-args" )
14
12
(Compile / doc / scalacOptions) ++= {
15
- val tagOrBranch = if (isSnapshot.value) {
16
- sys.process.Process (" git rev-parse HEAD" ).lineStream_!.head
17
- } else {
18
- " v" + version.value
19
- }
13
+ val hash = sys.process.Process (" git rev-parse HEAD" ).lineStream_!.head
20
14
Seq (
21
15
" -sourcepath" , baseDirectory.value.getAbsolutePath,
22
- " -doc-source-url" , " https://github.com/sbt/sbt-protobuf/blob/" + tagOrBranch + " €{FILE_PATH}.scala"
16
+ " -doc-source-url" , " https://github.com/sbt/sbt-protobuf/blob/" + hash + " €{FILE_PATH}.scala"
23
17
)
24
18
}
25
- publishMavenStyle := false
26
- bintrayOrganization := Some (" sbt" )
27
- bintrayRepository := " sbt-plugin-releases"
28
- bintrayPackage := " sbt-protobuf"
29
- bintrayReleaseOnPublish := false
19
+ licenses += ((" Apache-2.0" , url(" https://www.apache.org/licenses/LICENSE-2.0" )))
20
+ homepage := Some (url(" https://github.com/sbt/sbt-protobuf" ))
21
+ pomExtra := {
22
+ <developers >{
23
+ Seq (
24
+ (" xuwei-k" , " Kenji Yoshida" ),
25
+ (" eed3si9n" , " Eugene Yokota" ),
26
+ ).map { case (id, name) =>
27
+ <developer >
28
+ <id >{id}</id >
29
+ <name >{name}</name >
30
+ <url >https:// github.com/ {id}</url >
31
+ </developer >
32
+ }
33
+ }</developers >
34
+ }
30
35
scriptedBufferLog := false
31
36
scriptedLaunchOpts += s " -Dplugin.version= ${version.value}"
32
37
33
38
// Don't update to 1.3.0 https://github.com/sbt/sbt/issues/5049
34
39
crossSbtVersions := Seq (" 0.13.18" , " 1.2.8" )
35
- releaseProcess := Seq [ReleaseStep ](
36
- checkSnapshotDependencies,
37
- inquireVersions,
38
- runClean,
39
- releaseStepCommandAndRemaining(" ^ test" ),
40
- releaseStepCommandAndRemaining(" ^ scripted" ),
41
- setReleaseVersion,
42
- commitReleaseVersion,
43
- tagRelease,
44
- releaseStepCommandAndRemaining(" ^ publish" ),
45
- setNextVersion,
46
- commitNextVersion,
47
- pushChanges
48
- )
49
40
})
0 commit comments