Skip to content

Commit

Permalink
Refresh Stutter Locks (#164)
Browse files Browse the repository at this point in the history
* Refresh Stutter Locks

* Restore line endings

* Ignore warnings for now
  • Loading branch information
TWiStErRob authored Feb 17, 2023
1 parent 9b47d2e commit b9495cb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .stutter/java11.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
5.0
5.6.4
6.0.1
6.9.1
6.9.3
7.0.2
7.3
7.6
8.0
4 changes: 3 additions & 1 deletion .stutter/java17.lock
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# DO NOT MODIFY: Generated by Stutter plugin.
7.3
7.3.3
7.6
8.0
5 changes: 3 additions & 2 deletions .stutter/java8.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
5.0
5.6.4
6.0.1
6.9.1
6.9.3
7.0.2
7.3
7.6
8.0
Original file line number Diff line number Diff line change
Expand Up @@ -949,10 +949,19 @@ class NexusPublishPluginTests {
gradleRunner(*arguments).buildAndFail()

private fun gradleRunner(vararg arguments: String): GradleRunner {
val warnings = when {
// There's a deprecation in Gradle 7.6 that doesn't allow for passing builds.
// See https://github.com/gradle-nexus/publish-plugin/issues/152 for more details.
// This conditional branch of when should be removed once that issue is fixed.
gradleVersion >= GradleVersion.version("7.6") -> "all"
// Failing only became an option at Gradle 5.6.
gradleVersion >= GradleVersion.version("5.6") -> "fail"
else -> "all"
}
return gradleRunner
// .withDebug(true)
.withProjectDir(projectDir.toFile())
.withArguments(*arguments, "--stacktrace", "--warning-mode=${if (gradleVersion >= GradleVersion.version("5.6")) "fail" else "all"}")
.withArguments(*arguments, "--stacktrace", "--warning-mode=$warnings")
.forwardOutput()
}

Expand Down

0 comments on commit b9495cb

Please sign in to comment.