Skip to content

Commit

Permalink
Check sbt version
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Surée committed Nov 13, 2024
1 parent 78eb086 commit 8029aa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sbt-license-report

This plugin will allow you to report the licenses used in your projects. It requires 1.0.0+.
This plugin will allow you to report the licenses used in your projects. It requires 1.10.5+.

## Installation

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/sbtlicensereport/SbtLicenseReport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ object SbtLicenseReport extends AutoPlugin {
Seq(
licenseReportTitle := s"${normalizedName.value}-licenses",
updateLicenses := {
if (VersionNumber(sbtVersion.value).matchesSemVer(SemanticSelector("<1.10.5")))
throw new sbt.MessageOnlyException("sbt-license-report requires sbt 1.10.5 or greater.")
val overrides = licenseOverrides.value.lift
val depExclusions = licenseDepExclusions.value.lift
val originatingModule = DepModuleInfo(organization.value, name.value, version.value)
Expand Down

0 comments on commit 8029aa6

Please sign in to comment.