[2.0.x] fix: Remove will-be-ignored warning (#9144)

**Problem**
run warns about jvm option not being applied,
but it is applied for client-side run.

**Solution**
Remove the warning.
This commit is contained in:
eugene yokota 2026-04-27 04:14:12 -04:00 committed by GitHub
parent cecf8bd6c2
commit ec497c38ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 29 deletions

View File

@ -2006,20 +2006,6 @@ object Defaults extends BuildCommon {
s.log.debug(s"javaOptions: $options")
new ForkRun(opts)
} else {
if (options.nonEmpty) {
val mask = ScopeMask(project = false)
val showJavaOptions = Scope.displayMasked(
(resolvedScope / javaOptions).scopedKey.scope,
(resolvedScope / javaOptions).key.label,
mask
)
val showFork = Scope.displayMasked(
(resolvedScope / fork).scopedKey.scope,
(resolvedScope / fork).key.label,
mask
)
s.log.warn(s"$showJavaOptions will be ignored, $showFork is set to false")
}
new Run(si, trap, tmp)
}
}

View File

@ -95,21 +95,6 @@ private[sbt] object ClassLoaders {
val s = streams.value
val opts = forkOptions.value
val options = javaOptions.value
if options.nonEmpty then
val mask = ScopeMask(project = false)
val showJavaOptions = Scope.displayMasked(
(resolvedScope / javaOptions).scopedKey.scope,
(resolvedScope / javaOptions).key.label,
mask
)
val showFork = Scope.displayMasked(
(resolvedScope / fork).scopedKey.scope,
(resolvedScope / fork).key.label,
mask
)
s.log.warn(s"$showJavaOptions will be ignored, $showFork is set to false")
val exclude = dependencyJars(exportedProducts).value
.map(converter.toPath)
.map(_.toFile)