Skip to content

Commit

Permalink
Update to sbt 1.10.2
Browse files Browse the repository at this point in the history
Fixes #39

In sbt 1.10.2 the managed resources are automatically included in the
packageSrc (sbt/sbt#7630), and doing it again
explicitly causes errors.
  • Loading branch information
raboof authored and mdedetrich committed Sep 23, 2024
1 parent 0148e22 commit 9ca05a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ set.
Once this is done you can then publish your projects Maven artifacts into Apache's Nexus by using
`publish`/`publishSigned` as is idiomatically done in sbt projects.

This plugin requires at least sbt version 1.10.2.

## Usage

Since this plugin is an [auto plugin](https://www.scala-sbt.org/1.x/api/sbt/AutoPlugin.html) that immediately triggers
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.7
sbt.version=1.10.2
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,6 @@ object ApacheSonatypePlugin extends AutoPlugin {
.toList
}
},
// See https://issues.apache.org/jira/browse/LEGAL-28
packageSrc / mappings ++= {
Seq(
apacheSonatypeLicenseFile.value -> "META-INF/LICENSE",
apacheSonatypeNoticeFile.value -> "META-INF/NOTICE"
) ++ apacheSonatypeDisclaimerFile.value.map(path => path -> "META-INF/DISCLAIMER").toSeq
},
packageDoc / mappings ++= {
Seq(
apacheSonatypeLicenseFile.value -> "META-INF/LICENSE",
Expand Down
1 change: 1 addition & 0 deletions src/sbt-test/sbt-apache-sonatype/simple/test
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
$ must-mirror target/scala-2.13/resource_managed/main/META-INF/LICENSE LICENSE
$ must-mirror target/scala-2.13/resource_managed/main/META-INF/NOTICE NOTICE
> packageSrc
# See https://issues.apache.org/jira/browse/LEGAL-28
> extractPackageSrcContents
$ must-mirror target/scala-2.13/packageSrc/META-INF/LICENSE LICENSE
$ must-mirror target/scala-2.13/packageSrc/META-INF/NOTICE NOTICE
Expand Down

0 comments on commit 9ca05a7

Please sign in to comment.