Skip to content

Commit 4f985d3

Browse files
authored
Merge pull request #95 from pikinier20/maven-release
Configure release to Sonatype
2 parents 28a059d + 17994fa commit 4f985d3

File tree

7 files changed

+44
-12
lines changed

7 files changed

+44
-12
lines changed

.github/workflows/release.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release
2+
on:
3+
push:
4+
tags: ["*"]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-20.04
8+
steps:
9+
- uses: actions/[email protected]
10+
with:
11+
fetch-depth: 0
12+
- uses: olafurpg/setup-scala@v13
13+
- run: sbt ci-release
14+
env:
15+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
16+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
17+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
18+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
.settings/
44
/project/project/
55
target
6+
.bsp/
7+
.DS_Store
8+
.idea/
9+
.metals/
10+
.vscode/

build.sbt

+17-8
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
1-
lazy val commonSettings = Seq(
2-
ThisBuild / organization := "com.eed3si9n",
3-
scalaVersion := "2.12.15"
4-
)
1+
lazy val commonSettings = inThisBuild(
2+
List(
3+
organization := "com.github.sbt",
4+
homepage := Some(url("https://github.com/sbt/sbt-unidoc")),
5+
licenses := Seq("Apache License v2" -> url("http://www.apache.org/licenses/LICENSE-2.0.html")),
6+
developers := List(
7+
Developer(
8+
"eed3si9n",
9+
"Eugene Yokota",
10+
"@eed3si9n",
11+
url("https://github.com/eed3si9n")
12+
)
13+
)
14+
)
15+
) ++ Seq(
16+
scalaVersion := "2.12.15"
17+
)
518

619
lazy val root = (project in file(".")).
720
enablePlugins(SbtPlugin).
821
settings(commonSettings: _*).
922
settings(
1023
name := "sbt-unidoc",
1124
description := "sbt plugin to create a unified API document across projects",
12-
licenses := Seq("Apache License v2" -> url("http://www.apache.org/licenses/LICENSE-2.0.html")),
1325
scalacOptions := Seq("-deprecation", "-unchecked"),
1426
Compile / packageBin / publishArtifact := true,
1527
Test / packageBin / publishArtifact := false,
1628
Compile / packageDoc / publishArtifact := false,
1729
Compile / packageSrc / publishArtifact := true,
18-
publishMavenStyle := false,
19-
bintrayOrganization := Some("sbt"),
20-
bintrayRepository := "sbt-plugin-releases",
2130
scriptedLaunchOpts ++= Seq("-Xmx1024M", "-XX:MaxPermSize=256M", "-Dplugin.version=" + version.value),
2231
scriptedBufferLog := false
2332
)

project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
2-
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.6")
2+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.9")
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % System.getProperty("plugin.version"))
1+
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % System.getProperty("plugin.version"))
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % System.getProperty("plugin.version"))
1+
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % System.getProperty("plugin.version"))
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % System.getProperty("plugin.version"))
1+
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % System.getProperty("plugin.version"))

0 commit comments

Comments
 (0)