-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure multi-module SBT plugins respect
excludedModules
setting (#199)
* Ensure multi-module SBT plugins respect `excludedModules` setting Co-authored-by: Julien Richard-Foy <julien@richard-foy.fr>
- Loading branch information
1 parent
821df30
commit c8c8794
Showing
4 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
sbt-version-policy/src/sbt-test/sbt-version-policy/ignored-internal-sbt-plugin/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
ThisBuild / scalaVersion := "2.12.18" | ||
ThisBuild / organization := "com.example" | ||
ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible | ||
|
||
val a_1 = | ||
project | ||
.settings( | ||
name := "ignored-internal-dependencies-a", | ||
version := "1.0.0" | ||
) | ||
|
||
val b_1 = | ||
project | ||
.enablePlugins(SbtPlugin) | ||
.settings( | ||
name := "ignored-internal-dependencies-b", | ||
version := "1.0.0" | ||
) | ||
|
||
val c_1 = | ||
project | ||
.enablePlugins(SbtPlugin) | ||
.settings( | ||
name := "ignored-internal-dependencies-c", | ||
version := "1.0.0" | ||
) | ||
.dependsOn(a_1, b_1) | ||
|
||
val a_2 = | ||
project | ||
.settings( | ||
name := "ignored-internal-dependencies-a", | ||
version := "2.0.0" | ||
) | ||
|
||
val b_2 = | ||
project | ||
.enablePlugins(SbtPlugin) | ||
.settings( | ||
name := "ignored-internal-dependencies-b", | ||
version := "2.0.0" | ||
) | ||
|
||
val c_2 = | ||
project | ||
.enablePlugins(SbtPlugin) | ||
.settings( | ||
name := "ignored-internal-dependencies-c", | ||
version := "1.0.1" | ||
) | ||
.dependsOn(a_2, b_2) |
1 change: 1 addition & 0 deletions
1
...on-policy/src/sbt-test/sbt-version-policy/ignored-internal-sbt-plugin/project/plugins.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % sys.props("plugin.version")) |
11 changes: 11 additions & 0 deletions
11
sbt-version-policy/src/sbt-test/sbt-version-policy/ignored-internal-sbt-plugin/test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Publish v1.0.0 of modules | ||
> a_1/publishLocal | ||
> b_1/publishLocal | ||
> c_1/publishLocal | ||
|
||
# Checking dependency issues fails because internal dependencies bumped their major version | ||
-> c_2/versionPolicyReportDependencyIssues | ||
|
||
# Explicitly ignore the major version bump makes versionPolicyReportDependencyIssues pass | ||
> set c_2/versionPolicyIgnoredInternalDependencyVersions := Some("2.0.0".r) | ||
> c_2/versionPolicyReportDependencyIssues |