Skip to content

Commit

Permalink
remove publishing to old maven org
Browse files Browse the repository at this point in the history
  • Loading branch information
lhns authored Jun 23, 2024
1 parent 607c46c commit f18845f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ jobs:
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: |
sbt "; test; sonatypeBundleClean; publishSigned; sonatypeBundleRelease"
sed -i -e 's/organization := "de.lhns"/organization := "de.lolhens"/' build.sbt
sbt "; sonatypeBundleClean; publishSigned; sonatypeBundleRelease"
20 changes: 2 additions & 18 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ lazy val commonSettings: SettingsDefinition = Def.settings(

publishTo := sonatypePublishToBundle.value,

sonatypeCredentialHost := {
if (sonatypeProfileName.value == "de.lolhens")
"oss.sonatype.org"
else
"s01.oss.sonatype.org"
},
sonatypeCredentialHost := "s01.oss.sonatype.org",

credentials ++= (for {
username <- sys.env.get("SONATYPE_USERNAME")
Expand All @@ -51,18 +46,7 @@ lazy val commonSettings: SettingsDefinition = Def.settings(
sonatypeCredentialHost.value,
username,
password
)).toList,

pomExtra := {
if (sonatypeProfileName.value == "de.lolhens")
<distributionManagement>
<relocation>
<groupId>de.lhns</groupId>
</relocation>
</distributionManagement>
else
pomExtra.value
}
)).toList
)


Expand Down

0 comments on commit f18845f

Please sign in to comment.