forked from scala-ide/scalariform
-
Notifications
You must be signed in to change notification settings - Fork 31
Release process
mdr edited this page May 7, 2012
·
27 revisions
Edit ~/.posterous:
email = [email protected]
password = XXXXXXXXX
Edit ~/.sbt/sonatype.sbt:
credentials += Credentials("Sonatype Nexus Repository Manager",
"oss.sonatype.org",
"mattrussell",
"XXXXXXXX")
Edit ~/.m2/settings.xml:
<server>
<id>sonatype-nexus-snapshots</id>
<username>mattrussell</username>
<password>hlhlhl5</password>
</server>
<server>
<id>sonatype-nexus-staging</id>
<username>mattrussell</username>
<password>hlhlhl5</password>
</server>
Also GPG stuff.
export FROM=0.1.1
export TO=0.1.2
export NEW=0.1.3
sed -i s/$FROM/$TO/g README.rst
- Add date to CHANGELOG.
- Create
scalariform/notes/$TO.markdown
, check at http://www.ctrlshift.net/project/markdowneditor/ - Check tests locally; also check Maven plugin compiles
- Any new build versions to add to sbt
git add .
git commit -a -m "Preparing for $TO release"
git checkout -b $TO
scripts/update-version.sh $TO-SNAPSHOT $TO
git grep -n $TO-SNAPSHOT # $FROM etc
git commit -a -m "Update versions for $TO release"
(May need to up -XX:ReservedCodeCacheSize=)
sbt
> +test
> project scalariform
> +publish
Check at https://oss.sonatype.org/content/groups/public/org/scalariform/
Close and then release at: https://oss.sonatype.org/index.html#stagingRepositories
cd scalariform
herald
herald --publish
one-jar
Then upload to:
https://github.com/mdr/scalariform/downloads
git push -u origin $TO
git co master
scripts/update-version.sh $TO-SNAPSHOT $NEW-SNAPSHOT
scripts/update-version.sh $TO.qualifier $NEW.qualifier
git commit -a -m "Update versions for $NEW-SNAPSHOT"
Update to use latest version of Scalariform. Then,
cd scalariform-maven-plugin
mvn release:clean
mvn release:prepare
mvn release:perform
Then close, release at https://oss.sonatype.org/index.html#stagingRepositories
- Home - Overview of Scalariform
- Command-line tool
- Maven plugin
- Library
- Formatter preferences