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

Updates some dependencies and works with ShapeDecls #6

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .bsp/sbt.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"sbt","version":"1.8.0","bspVersion":"2.1.0-M1","languages":["scala"],"argv":["/usr/lib/jvm/java-17-openjdk-amd64/bin/java","-Xms100m","-Xmx100m","-classpath","/home/labra/.cache/sbt/boot/sbt-launch/1.9.8/sbt-launch-1.9.8.jar","-Dsbt.script=/usr/bin/sbt","xsbt.boot.Boot","-bsp"]}
{"name":"sbt","version":"1.10.1","bspVersion":"2.1.0-M1","languages":["scala"],"argv":["/usr/lib/jvm/java-17-openjdk-amd64/bin/java","-Xms100m","-Xmx100m","-classpath","/home/labra/.cache/sbt/boot/sbt-launch/1.10.1/sbt-launch-1.10.1.jar","-Dsbt.script=/usr/bin/sbt","xsbt.boot.Boot","-bsp"]}
2 changes: 2 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version = "3.7.15"
runner.dialect = scala213
116 changes: 65 additions & 51 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
lazy val scala212 = "2.12.17"
lazy val scala212 = "2.12.19"
lazy val scala213 = "2.13.10"
lazy val scala3 = "3.2.1"
lazy val scala3 = "3.2.1"

lazy val supportedScalaVersions = List(
scala3,
scala213,
scala213,
scala212
)

val Java11 = JavaSpec.temurin("11") // "adopt@1.11"

lazy val srdfVersion = "0.1.125"
lazy val shaclexVersion = "0.2.4"
lazy val shaclsVersion = "0.1.83"
lazy val shexsVersion = "0.2.33"
lazy val srdfVersion = "0.1.125"
lazy val shaclexVersion = "0.2.4"
lazy val shaclsVersion = "0.1.83"
lazy val shexsVersion = "0.2.33"

// Dependency versions
lazy val munitVersion = "0.7.29"
lazy val munitEffectVersion = "1.0.7"

lazy val plantumlVersion = "1.2017.12"
lazy val logbackVersion = "1.2.11"
lazy val loggingVersion = "3.9.4"
lazy val scallopVersion = "4.1.0"
lazy val munitVersion = "0.7.29"
lazy val munitEffectVersion = "1.0.7"

lazy val plantumlVersion = "1.2017.12"
lazy val logbackVersion = "1.2.11"
lazy val loggingVersion = "3.9.4"
lazy val scallopVersion = "4.1.0"

// Compiler plugin dependency versions
// lazy val simulacrumVersion = "0.19.0"
Expand All @@ -32,49 +31,58 @@ lazy val scallopVersion = "4.1.0"

// Dependency modules
// lazy val logbackClassic = "ch.qos.logback" % "logback-classic" % logbackVersion
lazy val munit = "org.scalameta" %% "munit" % munitVersion
lazy val munitEffect = "org.typelevel" %% "munit-cats-effect-3" % munitEffectVersion

lazy val plantuml = "net.sourceforge.plantuml" % "plantuml" % plantumlVersion
lazy val scalaLogging = "com.typesafe.scala-logging" %% "scala-logging" % loggingVersion
lazy val scallop = "org.rogach" %% "scallop" % scallopVersion
lazy val munit = "org.scalameta" %% "munit" % munitVersion
lazy val munitEffect =
"org.typelevel" %% "munit-cats-effect-3" % munitEffectVersion

lazy val plantuml = "net.sourceforge.plantuml" % "plantuml" % plantumlVersion
lazy val scalaLogging =
"com.typesafe.scala-logging" %% "scala-logging" % loggingVersion
lazy val scallop = "org.rogach" %% "scallop" % scallopVersion
// lazy val scalactic = "org.scalactic" %% "scalactic" % scalacticVersion
// lazy val scalaTest = "org.scalatest" %% "scalatest" % scalaTestVersion
lazy val shex = "es.weso" %% "shex" % shexsVersion
lazy val shacl = "es.weso" %% "shacl" % shaclsVersion
lazy val schema = "es.weso" %% "schema" % shaclexVersion
lazy val schemaInfer = "es.weso" %% "schemainfer" % shaclexVersion
lazy val sgraph = "es.weso" %% "sgraph" % shaclexVersion
lazy val srdfJena = "es.weso" %% "srdfjena" % srdfVersion
lazy val utilsTest = "es.weso" %% "utilstest" % shaclexVersion
lazy val shex = "es.weso" %% "shex" % shexsVersion
lazy val shacl = "es.weso" %% "shacl" % shaclsVersion
lazy val schema = "es.weso" %% "schema" % shaclexVersion
lazy val schemaInfer = "es.weso" %% "schemainfer" % shaclexVersion
lazy val sgraph = "es.weso" %% "sgraph" % shaclexVersion
lazy val srdfJena = "es.weso" %% "srdfjena" % srdfVersion
lazy val utilsTest = "es.weso" %% "utilstest" % shaclexVersion

lazy val MUnitFramework = new TestFramework("munit.Framework")


// Compiler plugin modules
// lazy val simulacrum = "com.github.mpilquist" %% "simulacrum" % simulacrumVersion

ThisBuild / githubWorkflowJavaVersions := Seq(Java11)

lazy val umlShaclex = project
.in(file("."))
.enablePlugins(ScalaUnidocPlugin,
SiteScaladocPlugin,
AsciidoctorPlugin,
SbtNativePackager,
WindowsPlugin,
JavaAppPackaging
)
.enablePlugins(
ScalaUnidocPlugin,
SiteScaladocPlugin,
AsciidoctorPlugin,
SbtNativePackager,
WindowsPlugin,
JavaAppPackaging
)
// .settings(
// buildInfoKeys := BuildInfoKey.ofN(name, version, scalaVersion, sbtVersion),
// buildInfoPackage := "es.weso.shaclex.buildinfo"
// )
.settings(commonSettings, publishSettings)
.settings(
unidocProjectFilter in (ScalaUnidoc, unidoc) := inAnyProject -- inProjects(noDocProjects: _*),
unidocProjectFilter in (ScalaUnidoc, unidoc) := inAnyProject -- inProjects(
noDocProjects: _*
),
siteSubdirName in ScalaUnidoc := "scaladoc/latest",
addMappingsToSiteDir(mappings in (ScalaUnidoc, packageDoc), siteSubdirName in ScalaUnidoc),
unidocProjectFilter in (ScalaUnidoc, unidoc) := inAnyProject -- inProjects(noDocProjects: _*),
addMappingsToSiteDir(
mappings in (ScalaUnidoc, packageDoc),
siteSubdirName in ScalaUnidoc
),
unidocProjectFilter in (ScalaUnidoc, unidoc) := inAnyProject -- inProjects(
noDocProjects: _*
),
mappings in makeSite ++= Seq(
file("src/assets/favicon.ico") -> "favicon.ico"
),
Expand All @@ -91,9 +99,9 @@ lazy val umlShaclex = project
srdfJena
),
testFrameworks += MUnitFramework,
cancelable in Global := true,
fork := true,
crossScalaVersions := supportedScalaVersions,
cancelable in Global := true,
fork := true,
crossScalaVersions := supportedScalaVersions
// crossScalaVersions := Nil,
// publish / skip := true
)
Expand Down Expand Up @@ -156,17 +164,23 @@ lazy val commonSettings = compilationSettings ++ sharedDependencies ++ Seq(

lazy val publishSettings = Seq(
sonatypeProfileName := ("es.weso"),
homepage := Some(url("https://github.com/labra/umlShaclex")),
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT")),
scmInfo := Some(ScmInfo(url("https://github.com/labra/umlShaclex"), "scm:git:git@github.com:labra/umlShaclex.git")),
homepage := Some(url("https://github.com/labra/umlShaclex")),
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT")),
scmInfo := Some(
ScmInfo(
url("https://github.com/labra/umlShaclex"),
"scm:git:git@github.com:labra/umlShaclex.git"
)
),
autoAPIMappings := true,
apiURL := Some(url("http://labra.github.io/umlShaclex/latest/api/")),
apiURL := Some(url("http://labra.github.io/umlShaclex/latest/api/")),
developers := List(
Developer(
id="labra",
name="Jose Emilio Labra Gayo",
email="jelabra@gmail.com",
url=url("https://weso.labra.es")
)),
publishMavenStyle := true,
id = "labra",
name = "Jose Emilio Labra Gayo",
email = "jelabra@gmail.com",
url = url("https://weso.labra.es")
)
),
publishMavenStyle := true
)
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.8.0
sbt.version=1.10.1
2 changes: 1 addition & 1 deletion project/metals.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

// This file enables sbt-bloop to create bloop config files.

addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.17")
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.18")

// format: on
26 changes: 15 additions & 11 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.14.2")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.2.0")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.2")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.9")
addSbtPlugin("org.lyranthe.sbt" % "partial-unification" % "1.1.2")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.0")
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.14.2")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.2.0")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.2")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.10.0")
addSbtPlugin("org.lyranthe.sbt" % "partial-unification" % "1.1.2")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.0")
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")

ThisBuild / libraryDependencySchemes ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
)
2 changes: 1 addition & 1 deletion project/project/metals.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

// This file enables sbt-bloop to create bloop config files.

addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.17")
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.18")

// format: on
2 changes: 1 addition & 1 deletion project/project/project/metals.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

// This file enables sbt-bloop to create bloop config files.

addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.17")
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.18")

// format: on
Loading
Loading