Skip to content

Commit

Permalink
Merge pull request #6 from weso/issue5
Browse files Browse the repository at this point in the history
Updates some dependencies and works with ShapeDecls
  • Loading branch information
labra committed Jul 10, 2024
2 parents 9dacf06 + a84d74f commit 774186d
Show file tree
Hide file tree
Showing 10 changed files with 554 additions and 353 deletions.
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") // "[email protected]"

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:[email protected]: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:[email protected]: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="[email protected]",
url=url("https://weso.labra.es")
)),
publishMavenStyle := true,
id = "labra",
name = "Jose Emilio Labra Gayo",
email = "[email protected]",
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

0 comments on commit 774186d

Please sign in to comment.