Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sbt-assembly to 2.0.0 #26

Open
wants to merge 65 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
e162008
Update scalapb-json4s to 0.12.0
scala-steward Aug 24, 2021
a28eef9
Update scala-library to 2.12.15
scala-steward Sep 23, 2021
c93be96
Update mtags to 0.10.7
scala-steward Sep 23, 2021
007a249
Merge pull request #293 from scala-steward/update/scalapb-json4s-0.12.0
tgodzik Sep 24, 2021
f3ea264
Merge pull request #295 from scala-steward/update/scala-library-2.12.15
tgodzik Sep 24, 2021
53c15c6
Merge pull request #296 from scala-steward/update/mtags-0.10.7
tgodzik Sep 24, 2021
d711ce7
Update scalameta and scalajs
tgodzik Sep 24, 2021
ea47432
Merge pull request #299 from tgodzik/update-scalameta
tgodzik Sep 24, 2021
20d9ee5
Publish server and cli modules with full cross version suffix
alexarchambault Oct 9, 2021
a284985
Fix 2.13 tests
alexarchambault Oct 9, 2021
287e20a
Run tests for 2.13.6 too
alexarchambault Oct 9, 2021
f4902be
Merge pull request #300 from alexarchambault/full-cross-version
alexarchambault Oct 10, 2021
a5a5f4d
Update mtags to 0.10.9
scala-steward Nov 23, 2021
04c21ff
Update scalameta, semanticdb-scalac, ... to 4.4.30
scala-steward Nov 23, 2021
080d2c8
Merge pull request #306 from scala-steward/update/mtags-0.10.9
tgodzik Nov 23, 2021
da4b2a5
Merge pull request #307 from scala-steward/update/scalameta-4.4.30
tgodzik Nov 23, 2021
d1aad9e
Update sbt-protoc to 1.0.5
scala-steward Dec 23, 2021
9619d47
Update scalameta, semanticdb-scalac, ... to 4.4.31
scala-steward Dec 23, 2021
5042920
Merge pull request #311 from scala-steward/update/scalameta-4.4.31
tgodzik Dec 23, 2021
2220be3
Merge pull request #308 from scala-steward/update/sbt-protoc-1.0.5
tgodzik Dec 23, 2021
ff15a66
Update scalameta, semanticdb-scalac, ... to 4.4.33
scala-steward Jan 22, 2022
5c0b101
Merge pull request #317 from scala-steward/update/scalameta-4.4.33
tgodzik Jan 22, 2022
68c170e
Update selenium-java to 4.3.0 (#349)
scala-steward Aug 11, 2022
edf4a6d
Update scalameta, semanticdb-scalac, ... to 4.4.35 (#341)
scalameta-bot Aug 11, 2022
3bc0599
Update scala-parallel-collections to 1.0.4 (#337)
scalameta-bot Aug 11, 2022
bd8cce3
Update sbt-scalajs-crossproject to 1.2.0 (#335)
scalameta-bot Aug 11, 2022
4b56db4
Update webdrivermanager to 3.6.2 (#334)
scalameta-bot Aug 11, 2022
856f162
Update sbt-protoc to 1.0.6 (#332)
scalameta-bot Aug 11, 2022
470e1b6
Update sbt-assembly to 0.14.10 (#328)
scalameta-bot Aug 11, 2022
555bbb3
Update scalacheck to 1.14.3 (#339)
scalameta-bot Aug 11, 2022
19ef575
Update sbt-ci-release to 1.5.7 (#330)
scalameta-bot Aug 11, 2022
42a6280
Update sbt-buildinfo to 0.11.0 (#329)
scalameta-bot Aug 11, 2022
5f936dc
Update scalameta to 4.5.12
alexarchambault Aug 11, 2022
95163e6
Update scala-library to 2.12.16
scalameta-bot Jun 15, 2022
b6c6db6
Update scala-library to 2.13.8
scalameta-bot Jun 6, 2022
323614d
Update mtags to 0.11.8, drop 2.13.0 support
alexarchambault Aug 11, 2022
5061d30
Update Scala.JS to 1.10.0
alexarchambault Aug 11, 2022
b62462f
Merge pull request #352 from scalameta/scalameta-4.5.12
alexarchambault Aug 12, 2022
61c1dbf
Update case-app to 2.0.6 (#331)
scalameta-bot Aug 12, 2022
e02b4f5
Update compilerplugin, scalapb-runtime to 0.11.11 (#347)
scala-steward Aug 12, 2022
f25f15f
Update sbt-assembly to 0.15.0 (#353)
scalameta-bot Aug 15, 2022
7f0a3d7
Update sbt-ci-release to 1.5.10 (#354)
scalameta-bot Aug 15, 2022
c6287ea
Update webdrivermanager to 3.8.1 (#355)
scalameta-bot Aug 15, 2022
ab9fd91
Update scalacheck to 1.16.0 (#356)
scalameta-bot Aug 15, 2022
830a62a
Update selenium-java to 4.4.0 (#357)
scalameta-bot Aug 15, 2022
2991cda
Really bump Scala versions (#358)
alexarchambault Aug 16, 2022
874d075
Update sbt-assembly to 1.2.0 (#359)
scalameta-bot Sep 5, 2022
003c13e
Update webdrivermanager to 5.3.0 (#360)
scalameta-bot Sep 5, 2022
0f9d4bb
Update scalameta, semanticdb-scalac, ... to 4.5.13 (#361)
scalameta-bot Sep 5, 2022
b14fa31
Update slf4j-api, slf4j-simple to 2.0.0 (#362)
scalameta-bot Sep 5, 2022
8047328
Update slf4j-api, slf4j-simple to 2.0.1 (#364)
scalameta-bot Sep 16, 2022
487afd5
Update scalacheck to 1.17.0 (#363)
scalameta-bot Sep 16, 2022
7198339
Update scala-library to 2.12.17 (#365)
scalameta-bot Sep 23, 2022
0caaa35
Update slf4j-api, slf4j-simple to 2.0.2 (#367)
scalameta-bot Sep 23, 2022
4602987
Update scalameta, semanticdb-scalac, ... to 4.6.0
scalameta-bot Sep 30, 2022
eee6d47
Drop support for Scala 2.12.8
alexarchambault Sep 30, 2022
36ae341
Add missing 2.12.17 in build
alexarchambault Sep 30, 2022
14c4da3
Write Scala versions explicitly in build
alexarchambault Sep 30, 2022
9102fa2
Merge pull request #368 from scalameta/update/scalameta-4.6.0
alexarchambault Oct 3, 2022
b8e4ce7
Update slf4j-api, slf4j-simple to 2.0.3 (#371)
scalameta-bot Oct 3, 2022
a038eb5
Update selenium-java to 4.5.0 (#370)
scalameta-bot Oct 3, 2022
b9d5e4b
Update scala-library to 2.13.9 (#366)
scalameta-bot Oct 3, 2022
c4b3cc9
Update mtags to 0.11.9 (#373)
scalameta-bot Oct 10, 2022
cdd761d
Update scala-library to 2.13.10 (#374)
scalameta-bot Oct 18, 2022
b5dcede
Update sbt-assembly to 2.0.0
scala-steward Oct 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,26 @@ on:
- main
pull_request:
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: olafurpg/setup-scala@v12
with:
java-version: "[email protected]"
- run: sbt +test:compile # ensuring metabrowse compiles for all Scala versions

unit:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
scala: [2.12.10]
scala: [2.12.17, 2.13.10]
os: [ubuntu-latest]
java: [11, 8]
steps:
Expand Down
58 changes: 45 additions & 13 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,32 @@ import scalajsbundler.util.JSON._
import sbtcrossproject.{crossProject, CrossType}

lazy val Version = new {
def scala213 = "2.13.6"
def scala212 = "2.12.14"
def scalameta = "4.4.24"
val scala213Versions = Seq(
"2.13.1",
"2.13.2",
"2.13.3",
"2.13.4",
"2.13.5",
"2.13.6",
"2.13.7",
"2.13.8",
"2.13.9",
"2.13.10"
)
val scala212Versions = Seq(
"2.12.9",
"2.12.10",
"2.12.11",
"2.12.12",
"2.12.13",
"2.12.14",
"2.12.15",
"2.12.16",
"2.12.17"
)
def scala213 = scala213Versions.last
def scala212 = scala212Versions.last
def scalameta = "4.6.0"
}

inThisBuild(
Expand Down Expand Up @@ -51,6 +74,11 @@ inThisBuild(
(publish / skip) := true
crossScalaVersions := Nil

lazy val fullCrossVersionSettings = Def.settings(
crossVersion := CrossVersion.full,
crossScalaVersions := Version.scala213Versions ++ Version.scala212Versions
)

def addPaigesLikeSourceDirs(config: Configuration, srcName: String) =
Def.settings(
config / unmanagedSourceDirectories ++= {
Expand Down Expand Up @@ -84,7 +112,7 @@ lazy val example = project
),
libraryDependencies ++= List(
"org.scalatest" %% "scalatest" % "3.1.4" % Test,
"org.scalacheck" %% "scalacheck" % "1.14.0" % Test,
"org.scalacheck" %% "scalacheck" % "1.17.0" % Test,
"org.scalatestplus" %% "scalacheck-1-14" % "3.2.2.0" % Test
),
test := {} // no need to run paiges tests.
Expand All @@ -94,14 +122,15 @@ lazy val server = project
.in(file("metabrowse-server"))
.settings(
moduleName := "metabrowse-server",
fullCrossVersionSettings,
resolvers += Resolver.sonatypeRepo("releases"),
resolvers += Resolver.sonatypeRepo("snapshots"),
libraryDependencies ++= List(
"io.undertow" % "undertow-core" % "2.0.30.Final",
"org.slf4j" % "slf4j-api" % "1.8.0-beta4",
"org.slf4j" % "slf4j-api" % "2.0.3",
"org.jboss.xnio" % "xnio-nio" % "3.8.0.Final",
"org.scalameta" % "semanticdb-scalac-core" % Version.scalameta cross CrossVersion.full,
("org.scalameta" %% "mtags" % "0.10.5").cross(CrossVersion.full)
("org.scalameta" %% "mtags" % "0.11.9").cross(CrossVersion.full)
),
(Compile / packageBin) := {
import java.io.FileOutputStream
Expand All @@ -110,7 +139,8 @@ lazy val server = project
import java.util.zip._
import scala.collection.JavaConverters._
val base = (Compile / packageBin).value
val updated = base.getParentFile / s"${base.getName.stripSuffix(".jar")}-with-resources.jar"
val updated =
base.getParentFile / s"${base.getName.stripSuffix(".jar")}-with-resources.jar"

val fos = new FileOutputStream(updated)
val zos = new ZipOutputStream(fos)
Expand Down Expand Up @@ -173,6 +203,7 @@ lazy val cli = project
.in(file("metabrowse-cli"))
.settings(
moduleName := "metabrowse-cli",
fullCrossVersionSettings,
(assembly / mainClass) := Some("metabrowse.cli.MetabrowseCli"),
(assembly / assemblyJarName) := "metabrowse.jar",
scalacOptions ++= {
Expand All @@ -184,15 +215,15 @@ lazy val cli = project
}
},
libraryDependencies ++= List(
"com.thesamet.scalapb" %% "scalapb-json4s" % "0.11.1",
"com.github.alexarchambault" %% "case-app" % "2.0.0-M9",
"com.thesamet.scalapb" %% "scalapb-json4s" % "0.12.0",
"com.github.alexarchambault" %% "case-app" % "2.0.6",
"com.github.pathikrit" %% "better-files" % "3.9.1"
),
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, major)) if major >= 13 =>
Seq(
"org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.3"
"org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.4"
)
case _ =>
Seq()
Expand Down Expand Up @@ -317,6 +348,7 @@ lazy val tests = project
.in(file("metabrowse-tests"))
.configs(IntegrationTest)
.settings(
fullCrossVersionSettings,
(publish / skip) := true,
Defaults.itSettings,
run / baseDirectory := (ThisBuild / baseDirectory).value,
Expand All @@ -332,9 +364,9 @@ lazy val tests = project
"org.scalameta" %% "testkit" % Version.scalameta,
"org.scalameta" % "semanticdb-scalac-core" % Version.scalameta cross CrossVersion.full,
"org.scalatest" %% "scalatest" % "3.1.4",
"org.scalacheck" %% "scalacheck" % "1.14.0",
"org.seleniumhq.selenium" % "selenium-java" % "3.141.59" % IntegrationTest,
"org.slf4j" % "slf4j-simple" % "1.8.0-beta4"
"org.scalacheck" %% "scalacheck" % "1.17.0",
"org.seleniumhq.selenium" % "selenium-java" % "4.5.0" % IntegrationTest,
"org.slf4j" % "slf4j-simple" % "2.0.3"
),
(IntegrationTest / compile) := {
_root_.io.github.bonigarcia.wdm.WebDriverManager.chromedriver.setup()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ object MetabrowseCli extends CaseApp[MetabrowseOptions] {
override val messages: caseapp.core.help.Help[MetabrowseOptions] =
caseapp.core.help
.Help[MetabrowseOptions]
.copy(optionsDesc = "[options] classpath")
.withOptionsDesc("[options] classpath")

def run(options: MetabrowseOptions, remainingArgs: RemainingArgs): Unit = {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,18 @@ class MetabrowseCliSuite extends BaseMetabrowseCliSuite {
}
.sorted
.mkString("\n")
val extra =
val extraLazyListStuff =
if (is212)
"""org/typelevel/paiges/ScalaVersionCompat.LazyList#
|org/typelevel/paiges/ScalaVersionCompat.LazyList.
|""".stripMargin
else ""
val extraPi213Stuff =
if (is212) ""
else
"""org/typelevel/paiges/ColorTest#TwoPi.
|org/typelevel/paiges/ColorTest#TwoThirdsPi.
|""".stripMargin
val expected =
s"""|org/typelevel/paiges/Chunk.
|org/typelevel/paiges/Chunk.best().
Expand All @@ -66,7 +72,7 @@ class MetabrowseCliSuite extends BaseMetabrowseCliSuite {
|org/typelevel/paiges/Chunk.makeIndentStr().
|org/typelevel/paiges/ColorTest#
|org/typelevel/paiges/ColorTest#Quote.
|org/typelevel/paiges/ColorTest#`<init>`().
|${extraPi213Stuff}org/typelevel/paiges/ColorTest#`<init>`().
|org/typelevel/paiges/ColorTest#bg().
|org/typelevel/paiges/ColorTest#fg().
|org/typelevel/paiges/ColorTest#fromAngle().
Expand Down Expand Up @@ -317,7 +323,7 @@ class MetabrowseCliSuite extends BaseMetabrowseCliSuite {
|org/typelevel/paiges/PaigesTest.slowRenderTrim().
|org/typelevel/paiges/PaigesTest.twoRightAssociated().
|org/typelevel/paiges/ScalaVersionCompat.
|${extra}org/typelevel/paiges/ScalaVersionCompat.lazyListFromIterator().
|${extraLazyListStuff}org/typelevel/paiges/ScalaVersionCompat.lazyListFromIterator().
|org/typelevel/paiges/Style#
|org/typelevel/paiges/Style#`++`().
|org/typelevel/paiges/Style#`<init>`().
Expand Down
16 changes: 8 additions & 8 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.20.0")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.9")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.4")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.5.1")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.1.0")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.0.0")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.6")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.10.0")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.2.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")

libraryDependencies ++= List(
"io.github.bonigarcia" % "webdrivermanager" % "3.6.1",
"com.thesamet.scalapb" %% "compilerplugin" % "0.11.3",
"io.github.bonigarcia" % "webdrivermanager" % "5.3.0",
"com.thesamet.scalapb" %% "compilerplugin" % "0.11.11",
"org.scala-sbt" %% "scripted-plugin" % sbtVersion.value
)