Skip to content

Commit 8fd9e2a

Browse files
authored
Merge pull request #121 from SethTisue/publish-via-sonatype
2 parents 181cee2 + c019a1b commit 8fd9e2a

File tree

3 files changed

+7
-46
lines changed

3 files changed

+7
-46
lines changed

.travis.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1+
version: ~> 1.0 # needed for imports
2+
import: scala/scala-dev:travis/default.yml
13
language: scala
24

3-
jdk:
4-
- openjdk8
5+
env:
6+
- ADOPTOPENJDK=8
57

68
script:
79
- sbt test
810

9-
before_cache:
10-
- find $HOME/.sbt -name "*.lock" | xargs rm
11-
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
12-
cache:
13-
directories:
14-
- $HOME/.ivy2
15-
- $HOME/.sbt/boot
16-
- $HOME/.sbt/launchers
17-
1811
notifications:
1912
email:
20-
2113

README.md

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ The following settings are also available:
7777

7878
## Set up tag-based publishing
7979

80-
The instructions here are a sumamry of the readme in https://github.com/olafurpg/sbt-ci-release
80+
The instructions here are a summary of the readme in https://github.com/olafurpg/sbt-ci-release
81+
8182
- Create a fresh GPG key: `gpg --gen-key`
8283
- Real name: use "project-name bot"
8384
- Email: "[email protected]"
@@ -95,34 +96,3 @@ The instructions here are a sumamry of the readme in https://github.com/olafurpg
9596
- ubuntu: `gpg --armor --export-secret-keys $LONG_ID | base64 -w0`
9697
- `SONATYPE_PASSWORD`: need that one
9798
- `SONATYPE_USERNAME`: that one too
98-
99-
## Publishing a new release (of this plugin)
100-
101-
### Publishing (short version)
102-
103-
Create and push a tag and add the release notes. In sbt, verify that `version` picks the tag up, then run `publish` and bump the version number in the readme.
104-
105-
### Publishing (in detail)
106-
107-
- Sign in to Bintray (https://bintray.com/login) or create an "Open Source" account (https://bintray.com/signup/oss)
108-
- Check if you have a repository named `sbt-plugins`. If not, create it (Name: sbt-plugins, Type: Generic).
109-
- Make sure to use Java 8
110-
- Tag the release and add release notes to https://github.com/scala/sbt-scala-module/releases
111-
- Make sure the current `HEAD` is a tagged revision. In sbt, `version` (set by sbt-git) should be according to a tag.
112-
113-
> version
114-
[info] 2.3.4
115-
116-
- Run `publish` in sbt. If you don't have a `~/.bintray/.credentials` file, the sbt-bintray plugin will ask you for your
117-
username and API key. The API key can be obtained under "Edit Profile" (https://bintray.com/profile/edit). The sbt-bintray
118-
plugin saves credentials to `~/.bintray/.credentials` for future use.
119-
- If you haven't done so before, add your package for this plugin (https://bintray.com/YOUR_USERNAME/sbt-plugins/sbt-scala-module)
120-
to the community sbt repository (https://bintray.com/sbt/sbt-plugin-releases). Otherwise you're done, the release is available.
121-
- Check if you added your package by searching for "sbt-scala-module" in the repository.
122-
- If you cannot find your package, click "Include My Package"
123-
- Search for your plugin (`sbt-scala-module`)
124-
- Click "Send" to send the request
125-
126-
The above instructions are a short version of https://www.scala-sbt.org/1.x/docs/Bintray-For-Plugins.html.
127-
128-
Don't forget to bump the version number here in this readme!

project/plugins.sbt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
2-
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.6.1")
1+
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.5")

0 commit comments

Comments
 (0)