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

Cleanup modules and dependencies #38

Merged
merged 14 commits into from
Sep 2, 2024
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,17 @@ jobs:
java-version: 21
cache: sbt

- name: Setup sbt
uses: sbt/setup-sbt@v1

- name: Check that workflows are up to date
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck

- name: Build project
run: sbt '++ ${{ matrix.scala }}' test

- name: Compress target directories
run: tar cf targets.tar scex-macros/target scex-core/target scex-test/target scex-java-test/target scex-util/target target project/target
run: tar cf targets.tar scex-macros/target scex-core/target scex-test/target scex-util/target target project/target

- name: Upload target directories
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -95,6 +98,9 @@ jobs:
java-version: 21
cache: sbt

- name: Setup sbt
uses: sbt/setup-sbt@v1

- name: Download target directories (2.13.14)
uses: actions/download-artifact@v4
with:
Expand Down
41 changes: 11 additions & 30 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,14 @@ inThisBuild(Seq(
val CompileAndTest = "compile->compile;test->test"

val parserCombinatorsVersion = "2.4.0"
val avsCommonsVersion = "2.16.0"
val jettyVersion = "9.4.54.v20240208" // Tests only
val vaadinVersion = "6.8.18" // Tests only
val slf4jVersion = "2.0.13"
val logbackVersion = "1.5.6" // Tests only
val commonsLang3Version = "3.14.0"
val commonsCodecVersion = "1.17.0"
val guavaVersion = "33.2.0-jre"
val commonsNetVersion = "3.10.0"
val jodaTimeVersion = "2.12.7"
val scalatestVersion = "3.2.18"
val avsCommonsVersion = "2.18.0"
val slf4jVersion = "2.0.16"
val logbackVersion = "1.5.7" // Tests only
val commonsLang3Version = "3.17.0"
val commonsCodecVersion = "1.17.1"
val guavaVersion = "33.3.0-jre"
val commonsNetVersion = "3.11.1"
val scalatestVersion = "3.2.19"

val noPublishSettings = Seq(
publish / skip := true
Expand Down Expand Up @@ -106,7 +103,7 @@ lazy val subprojectSettings = Seq(
)

lazy val scex = project.in(file("."))
.aggregate(`scex-macros`, `scex-core`, `scex-util`, `scex-test`, `scex-java-test`)
.aggregate(`scex-macros`, `scex-core`, `scex-util`, `scex-test`)
.settings(noPublishSettings: _*)

lazy val `scex-macros` = project
Expand Down Expand Up @@ -137,25 +134,9 @@ lazy val `scex-util` = project.dependsOn(`scex-core` % CompileAndTest)
libraryDependencies ++= Seq(
"org.apache.commons" % "commons-lang3" % commonsLang3Version,
"commons-net" % "commons-net" % commonsNetVersion,
"joda-time" % "joda-time" % jodaTimeVersion
)
)

lazy val `scex-test` = project.dependsOn(`scex-core`, `scex-util`)
lazy val `scex-test` = project.dependsOn(`scex-core` % CompileAndTest, `scex-util`)
.settings(subprojectSettings: _*)
.settings(noPublishSettings: _*)
.settings(
libraryDependencies ++= Seq(
"com.vaadin" % "vaadin" % vaadinVersion,
"org.eclipse.jetty" % "jetty-server" % jettyVersion,
"org.eclipse.jetty" % "jetty-servlet" % jettyVersion,
"ch.qos.logback" % "logback-classic" % logbackVersion,
)
)

lazy val `scex-java-test` = project.dependsOn(`scex-core`, `scex-util`)
.settings(subprojectSettings: _*)
.settings(noPublishSettings: _*)
.settings(
compileOrder := CompileOrder.JavaThenScala
)
.settings(noPublishSettings: _*)
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# suppress inspection "UnusedProperty"
sbt.version=1.9.8
sbt.version=1.10.1
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
logLevel := Level.Warn

addSbtPlugin("org.jetbrains.scala" % "sbt-ide-settings" % "1.1.2")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.23.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.6.1")
addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.24.0")
11 changes: 0 additions & 11 deletions scex-java-test/src/main/java/JavaCostam.java

This file was deleted.

69 changes: 0 additions & 69 deletions scex-java-test/src/main/java/ScexJavaTest.java

This file was deleted.

11 changes: 0 additions & 11 deletions scex-java-test/src/main/resources/symbolAttributes.scala

This file was deleted.

62 changes: 0 additions & 62 deletions scex-java-test/src/main/resources/symbolValidator.scala

This file was deleted.

17 changes: 0 additions & 17 deletions scex-java-test/src/main/resources/syntaxValidator.scala

This file was deleted.

Loading