[2.x] test: Test -Werror in metabuild (#8510)

**Problem**
-Werror in the metabuild didn't work on sbt 1.x.

**Solution**
This adds test for it on sbt 2.x.
This commit is contained in:
eugene yokota 2026-01-13 04:28:27 -05:00 committed by GitHub
parent 02dcab80b9
commit 570ca30f69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,6 @@
scalaVersion := "3.7.4"
@deprecated
def foo = true
fork := foo

View File

@ -0,0 +1,6 @@
scalaVersion := "3.7.4"
@deprecated
def foo = true
fork := !foo

View File

@ -0,0 +1 @@
scalacOptions += "-Werror"

View File

@ -0,0 +1,6 @@
> name
$ copy-file changes/p.sbt project/p.sbt
$ copy-file changes/build.sbt build.sbt
-> reload