8000 Fix Sonatype repository · BotTech/scala2plantuml@af3f19d · GitHub
[go: up one dir, main page]

Skip to content

Commit af3f19d

Browse files
committed
Fix Sonatype repository
1 parent 653f76a commit af3f19d

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For most use cases you should add Scala2PlantUML as a global plugin since your b
3636
Create `~/.sbt/1.0/plugins/scala2PlantUML.sbt` containing:
3737

3838
```text
39-
addSbtPlugin("nz.co.bottech" % "sbt-scala2plantuml" % "0.1.8")
39+
addSbtPlugin("nz.co.bottech" % "sbt-scala2plantuml" % "0.1.9")
4040
```
4141

4242
## CLI
@@ -52,7 +52,7 @@ cs install --channel https://git.io/Jqv1i scala2plantuml
5252
### Usage
5353

5454
```text
55-
Scala2PlantUML version 0.1.8
55+
Scala2PlantUML version 0.1.9
5656
Usage: scala2plantuml [options] symbol
5757
5858
Scala2PlantUML generates PlantUML Class Diagrams from Scala SemanticDB files.

build.sbt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,19 @@ inThisBuild(
8787
// This needs to be set otherwise the GitHub workflow plugin gets confused about which
8888
// version to use for the publish job.
8989
scalaVersion := scala212,
90-
versionPolicyFirstVersion := Some("0.1.8"),
90+
versionPolicyFirstVersion := Some("0.1.9"),
9191
versionPolicyIntention := Compatibility.BinaryAndSourceCompatible,
9292
versionScheme := Some("early-semver")
9393
)
9494
)
9595

96-
val commonProjectSettings = List(
96+
val sonatypeSettings = List(
97+
// Workaround for https://github.com/olafurpg/sbt-ci-release/issues/181
98+
sonatypeCredentialHost := "s01.oss.sonatype.org",
99+
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
100+
)
101+
102+
val commonProjectSettings = sonatypeSettings ++ List(
97103
isScala213 := isScala213Setting.value,
98104
scalastyleFailOnError := true,
99105
scalastyleFailOnWarning := true,
@@ -121,12 +127,11 @@ val libraryProjectSettings = commonProjectSettings
121127
lazy val root = (project in file("."))
122128
.aggregate(cli, core, docs, sbtProject)
123129
.settings(metaProjectSettings)
130+
// The sbt-sonatype plugin requires these to go on the root project too.
131+
.settings(sonatypeSettings)
124132
.settings(
125133
crossScalaVersions := supportedScalaVersions,
126134
name := "scala2plantuml",
127-
// Workaround for https://github.com/olafurpg/sbt-ci-release/issues/181
128-
sonatypeCredentialHost := "s01.oss.sonatype.org",
129-
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
130135
)
131136

132137
lazy val core = project

0 commit comments

Comments
 (0)
0