Skip to content

Commit bf7fde7

Browse files
committed
update instructions for maintainers on how to publish
1 parent 75f283a commit bf7fde7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PUBLISH.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,21 @@ These instructions have already been followed for this repo by Bjorn Regnell who
1515
1. Build and test locally.
1616

1717
2. Bump version in `build.sbt`, run `sbt package`. We also want a release on github and the course home page aligned with the release on Sonatype Central. Therefore You should also:
18+
- Don't forget to uppdate the `rootdoc.txt` file with current version information and package contents etc.: https://github.com/lunduniversity/introprog-scalalib/blob/master/src/rootdoc.txt
1819
- commit all changes and push and *then* create a github release with the packaged jar uploaded to https://github.com/lunduniversity/introprog-scalalib/releases
1920
- Publish the jar to the course home page at http://cs.lth.se/lib using `sh publish-jar.sh`
2021
- Publish updated docs to the course home page at http://cs.lth.se/api using script `sh publish-doc.sh`
2122
- Copy the introprog-scalalib/src the workspace subdir at https://github.com/lunduniversity/introprog to enable eclipse project generation with internal dependency of projects using `publish-workspace.sh`. Then run `sbt eclipse` in that repo and the `package.sh` script to create `workspace.zip` etc. TODO: For the future it would be nice to have another repo introprog-workspace and factor out code to that repo and solve the problem of dependency between latex code and the workspace.
2223

2324
3. In `sbt` run `publishedSigned`
2425

25-
4. Log into Sonatype Nexus here: https://oss.sonatype.org/#welcome
26+
4. Log into Sonatype Nexus here: (if the page does not load, clear the browser's cache by pressing Ctrl+F5) https://oss.sonatype.org/#welcome
2627

27-
5. Click on *Staging Repositories* in the Build Promotion list to the left. https://oss.sonatype.org/#stagingRepositories
28+
5. Click on *Staging Repositories* in the Build Promotion list to the left. Click "Refresh" if list is empty. https://oss.sonatype.org/#stagingRepositories
2829

2930
6. Scroll down and select selthcs-100X and select the *Contents* tab and expand until leaf level of the tree where you can see the `introprog_2.12-x.y.z.jar`
3031

31-
7. Download the staged jar by clicking on it and selecting the *Artifact* tab to the right and click the *Download* button. Save it e.g. in `tmp`.
32+
7. Download the staged jar by clicking on it and selecting the *Artifact* tab to the right and click the Repository Path to download. Save it e.g. in `tmp`.
3233

3334
8. Verify that the staged jar downloaded from sonatype works by running `scala -cp introprog-xxx.jar` and in REPL e.g. `val w = new introprog.PixelWindow`. The reason for this step is that there has been incidents where the uploading has failed and the jar was empty. A published jar can not be retracted even if corrupted according to Sonatype policies.
3435

0 commit comments

Comments
 (0)