@@ -151,9 +151,8 @@ object integration extends CliIntegration {
151
151
)
152
152
}
153
153
}
154
- @ unused
154
+
155
155
object `docker-slim` extends CliIntegrationDocker {
156
- @ unused
157
156
object test extends ScalaCliTests {
158
157
def sources : Target [Seq [PathRef ]] = Task .Sources {
159
158
integration.docker.test.sources()
@@ -170,7 +169,6 @@ object integration extends CliIntegration {
170
169
}
171
170
}
172
171
173
- @ unused
174
172
object `docs-tests` extends Cross [DocsTests ](Scala .scala3MainVersions)
175
173
with CrossScalaDefaultToInternal
176
174
@@ -239,7 +237,6 @@ object packager extends ScalaModule with Bloop.Module {
239
237
def mainClass : Target [Option [String ]] = Some (" packager.cli.PackagerCli" )
240
238
}
241
239
242
- @ unused
243
240
object `generate-reference-doc` extends Cross [GenerateReferenceDoc ](Scala .scala3MainVersions)
244
241
with CrossScalaDefaultToInternal
245
242
@@ -261,12 +258,10 @@ trait GenerateReferenceDoc extends CrossSbtModule with ScalaCliScalafixModule {
261
258
)
262
259
}
263
260
264
- @ unused
265
261
object dummy extends Module {
266
262
// dummy projects to get scala steward updates for Ammonite and scalafmt, whose
267
263
// versions are used in the fmt and repl commands, and ensure Ammonite is available
268
264
// for all Scala versions we support.
269
- @ unused
270
265
object amm extends Cross [Amm ](Scala .listMaxAmmoniteScalaVersion)
271
266
trait Amm extends Cross .Module [String ] with CrossScalaModule with Bloop .Module {
272
267
def crossScalaVersion : String = crossValue
@@ -278,30 +273,26 @@ object dummy extends Module {
278
273
Agg (ammoniteDep)
279
274
}
280
275
}
281
- @ unused
282
276
object scalafmt extends ScalaModule with Bloop .Module {
283
277
def skipBloop = true
284
278
def scalaVersion : Target [String ] = Scala .defaultInternal
285
279
def ivyDeps : Target [Agg [Dep ]] = Agg (
286
280
Deps .scalafmtCli
287
281
)
288
282
}
289
- @ unused
290
283
object pythonInterface extends JavaModule with Bloop .Module {
291
284
def skipBloop = true
292
285
def ivyDeps : Target [Agg [Dep ]] = Agg (
293
286
Deps .pythonInterface
294
287
)
295
288
}
296
- @ unused
297
289
object scalaPy extends ScalaModule with Bloop .Module {
298
290
def skipBloop = true
299
291
def scalaVersion : Target [String ] = Scala .defaultInternal
300
292
def ivyDeps : Target [Agg [Dep ]] = Agg (
301
293
Deps .scalaPy
302
294
)
303
295
}
304
- @ unused
305
296
object scalafix extends ScalaModule with Bloop .Module {
306
297
def skipBloop = true
307
298
def scalaVersion : Target [String ] = Scala .defaultInternal
@@ -1353,7 +1344,6 @@ object `local-repo` extends LocalRepo {
1353
1344
}
1354
1345
1355
1346
// Helper CI commands
1356
-
1357
1347
def publishSonatype (tasks : mill.main.Tasks [PublishModule .PublishData ]) = Task .Command {
1358
1348
publish.publishSonatype(
1359
1349
data = define.Target .sequence(tasks.value)(),
@@ -1362,7 +1352,6 @@ def publishSonatype(tasks: mill.main.Tasks[PublishModule.PublishData]) = Task.Co
1362
1352
)
1363
1353
}
1364
1354
1365
- @ unused
1366
1355
def copyTo (task : mill.main.Tasks [PathRef ], dest : String ): Command [Unit ] = Task .Command {
1367
1356
val destPath = os.Path (dest, Task .workspace)
1368
1357
if (task.value.length > 1 )
@@ -1372,7 +1361,6 @@ def copyTo(task: mill.main.Tasks[PathRef], dest: String): Command[Unit] = Task.C
1372
1361
os.copy.over(ref.path, destPath)
1373
1362
}
1374
1363
1375
- @ unused
1376
1364
def writePackageVersionTo (dest : String ): Command [Unit ] = Task .Command {
1377
1365
val destPath = os.Path (dest, Task .workspace)
1378
1366
val rawVersion = cli(Scala .defaultInternal).publishVersion()
@@ -1382,7 +1370,6 @@ def writePackageVersionTo(dest: String): Command[Unit] = Task.Command {
1382
1370
os.write.over(destPath, version)
1383
1371
}
1384
1372
1385
- @ unused
1386
1373
def writeShortPackageVersionTo (dest : String ): Command [Unit ] = Task .Command {
1387
1374
val destPath = os.Path (dest, Task .workspace)
1388
1375
val rawVersion = cli(Scala .defaultInternal).publishVersion()
@@ -1429,7 +1416,6 @@ def copyLauncher(directory: String = "artifacts"): Command[Path] = Task.Command
1429
1416
)
1430
1417
}
1431
1418
1432
- @ unused
1433
1419
def copyJvmLauncher (directory : String = " artifacts" ): Command [Unit ] = Task .Command {
1434
1420
val launcher = cli(Scala .defaultInternal).standaloneLauncher().path
1435
1421
os.copy(
@@ -1439,7 +1425,6 @@ def copyJvmLauncher(directory: String = "artifacts"): Command[Unit] = Task.Comma
1439
1425
replaceExisting = true
1440
1426
)
1441
1427
}
1442
- @ unused
1443
1428
def copyJvmBootstrappedLauncher (directory : String = " artifacts" ): Command [Unit ] = Task .Command {
1444
1429
val launcher = cliBootstrapped.jar().path
1445
1430
os.copy(
@@ -1450,7 +1435,6 @@ def copyJvmBootstrappedLauncher(directory: String = "artifacts"): Command[Unit]
1450
1435
)
1451
1436
}
1452
1437
1453
- @ unused
1454
1438
def uploadLaunchers (directory : String = " artifacts" ): Command [Unit ] = Task .Command {
1455
1439
val version = cli(Scala .defaultInternal).publishVersion()
1456
1440
@@ -1467,7 +1451,6 @@ def uploadLaunchers(directory: String = "artifacts"): Command[Unit] = Task.Comma
1467
1451
)
1468
1452
}
1469
1453
1470
- @ unused
1471
1454
def unitTests (): Command [(String , Seq [TestResult ])] = Task .Command {
1472
1455
`build-module`(Scala .defaultInternal).test.test()()
1473
1456
`build-macros`(Scala .defaultInternal).test.test()()
@@ -1484,25 +1467,21 @@ def debug(port: Int, args: Task[Args] = Task.Anon(Args())) = Task.Command {
1484
1467
cli(Scala .defaultInternal).debug(port, args)()
1485
1468
}
1486
1469
1487
- @ unused
1488
1470
def defaultNativeImage (): Command [PathRef ] =
1489
1471
Task .Command {
1490
1472
cli(Scala .defaultInternal).nativeImage()
1491
1473
}
1492
1474
1493
- @ unused
1494
1475
def nativeIntegrationTests (): Command [(String , Seq [TestResult ])] =
1495
1476
Task .Command {
1496
1477
integration.test.native()()
1497
1478
}
1498
1479
1499
- @ unused
1500
1480
def copyDefaultLauncher (directory : String = " artifacts" ): Command [Path ] =
1501
1481
Task .Command {
1502
1482
copyLauncher(directory)()
1503
1483
}
1504
1484
1505
- @ unused
1506
1485
def copyMostlyStaticLauncher (directory : String = " artifacts" ): Command [Path ] = Task .Command {
1507
1486
val nativeLauncher = cli(Scala .defaultInternal).nativeImageMostlyStatic().path
1508
1487
Upload .copyLauncher0(
@@ -1515,7 +1494,6 @@ def copyMostlyStaticLauncher(directory: String = "artifacts"): Command[Path] = T
1515
1494
)
1516
1495
}
1517
1496
1518
- @ unused
1519
1497
def copyStaticLauncher (directory : String = " artifacts" ): Command [Path ] = Task .Command {
1520
1498
val nativeLauncher = cli(Scala .defaultInternal).nativeImageStatic().path
1521
1499
Upload .copyLauncher0(
@@ -1559,13 +1537,10 @@ private def commitChanges(
1559
1537
}
1560
1538
1561
1539
// TODO Move most CI-specific tasks there
1562
- @ unused
1563
1540
object ci extends Module {
1564
- @ unused
1565
1541
def publishVersion (): Command [Unit ] = Task .Command {
1566
1542
println(cli(Scala .defaultInternal).publishVersion())
1567
1543
}
1568
- @ unused
1569
1544
def updateScalaCliSetup (): Command [Unit ] = Task .Command {
1570
1545
val version = cli(Scala .defaultInternal).publishVersion()
1571
1546
@@ -1595,7 +1570,6 @@ object ci extends Module {
1595
1570
os.proc(" git" , " switch" , " -c" , targetBranch).call(cwd = mainDir)
1596
1571
commitChanges(s " Update scala-cli version to $version" , targetBranch, mainDir, force = true )
1597
1572
}
1598
- @ unused
1599
1573
def updateStandaloneLauncher (): Command [CommandResult ] = Task .Command {
1600
1574
val version = cli(Scala .defaultInternal).publishVersion()
1601
1575
@@ -1665,7 +1639,6 @@ object ci extends Module {
1665
1639
1666
1640
(x86Sha256, arm64Sha256)
1667
1641
}
1668
- @ unused
1669
1642
def updateScalaCliBrewFormula (): Command [Unit ] = Task .Command {
1670
1643
val version = cli(Scala .defaultInternal).publishVersion()
1671
1644
@@ -1709,7 +1682,6 @@ object ci extends Module {
1709
1682
1710
1683
commitChanges(s " Update for $version" , branch, homebrewFormulaDir)
1711
1684
}
1712
- @ unused
1713
1685
def updateScalaExperimentalBrewFormula (): Command [Unit ] = Task .Command {
1714
1686
val version = cli(Scala .defaultInternal).publishVersion()
1715
1687
@@ -1753,7 +1725,6 @@ object ci extends Module {
1753
1725
1754
1726
commitChanges(s " Update for $version" , branch, homebrewFormulaDir)
1755
1727
}
1756
- @ unused
1757
1728
def updateInstallationScript (): Command [Unit ] = Task .Command {
1758
1729
val version = cli(Scala .defaultInternal).publishVersion()
1759
1730
@@ -1781,7 +1752,6 @@ object ci extends Module {
1781
1752
1782
1753
commitChanges(s " Update installation script for $version" , branch, packagesDir)
1783
1754
}
1784
- @ unused
1785
1755
def updateDebianPackages (): Command [Unit ] = Task .Command {
1786
1756
val version = cli(Scala .defaultInternal).publishVersion()
1787
1757
@@ -1850,7 +1820,6 @@ object ci extends Module {
1850
1820
1851
1821
commitChanges(s " Update Debian packages for $version" , branch, packagesDir)
1852
1822
}
1853
- @ unused
1854
1823
def updateChocolateyPackage (): Command [CommandResult ] = Task .Command {
1855
1824
val version = cli(Scala .defaultInternal).publishVersion()
1856
1825
@@ -1895,7 +1864,6 @@ object ci extends Module {
1895
1864
chocoKey
1896
1865
).call(cwd = chocoDir)
1897
1866
}
1898
- @ unused
1899
1867
def updateCentOsPackages (): Command [Unit ] = Task .Command {
1900
1868
val version = cli(Scala .defaultInternal).publishVersion()
1901
1869
@@ -1950,7 +1918,6 @@ object ci extends Module {
1950
1918
os.Path (" C:\\ Program Files\\ Microsoft Visual Studio" ),
1951
1919
os.Path (" C:\\ Program Files (x86)\\ Microsoft Visual Studio" )
1952
1920
)
1953
- @ unused
1954
1921
def copyVcRedist (
1955
1922
directory : String = " artifacts" ,
1956
1923
distName : String = " vc_redist.x64.exe"
@@ -1992,7 +1959,6 @@ object ci extends Module {
1992
1959
val destDir = os.Path (directory, Task .workspace)
1993
1960
os.copy(orig, destDir / distName, createFolders = true , replaceExisting = true )
1994
1961
}
1995
- @ unused
1996
1962
def writeWixConfigExtra (dest : String = " wix-visual-cpp-redist.xml" ): Command [Unit ] =
1997
1963
Task .Command {
1998
1964
val msmPath = {
@@ -2037,13 +2003,10 @@ object ci extends Module {
2037
2003
val dest0 = os.Path (dest, Task .workspace)
2038
2004
os.write.over(dest0, content.getBytes(Charset .defaultCharset()), createFolders = true )
2039
2005
}
2040
- @ unused
2041
2006
def setShouldPublish (): Command [Unit ] = publish.setShouldPublish()
2042
- @ unused
2043
2007
def shouldPublish (): Command [Unit ] = Task .Command {
2044
2008
println(publish.shouldPublish())
2045
2009
}
2046
- @ unused
2047
2010
def copyJvm (jvm : String = deps.graalVmJvmId, dest : String = " jvm" ): Command [Path ] = Task .Command {
2048
2011
import sys .process ._
2049
2012
val command = Seq (
@@ -2063,7 +2026,6 @@ object ci extends Module {
2063
2026
destJavaHome
2064
2027
}
2065
2028
2066
- @ unused
2067
2029
def checkScalaVersions (): Command [Unit ] = Task .Command {
2068
2030
website.checkMainScalaVersions(
2069
2031
Task .workspace / " website" / " docs" / " reference" / " scala-versions.md"
0 commit comments