From 8335b6a42fb10d52e014b0779903283bf99b5882 Mon Sep 17 00:00:00 2001 From: Nicolas Meessen Date: Sun, 19 Apr 2026 11:21:30 +0800 Subject: [PATCH] update examples to tessellation 4.0.0-rc.10 and java 21 --- examples/custom-transaction-validation/build.sbt | 7 +++++-- .../project/Dependencies.scala | 6 +++--- .../custom-transaction-validation/project/build.properties | 2 +- examples/nft/build.sbt | 7 +++++-- .../src/main/scala/com/my/nft/shared_data/Utils.scala | 4 ++-- examples/nft/project/Dependencies.scala | 6 +++--- examples/nft/project/build.properties | 2 +- examples/reward-api/build.sbt | 7 +++++-- examples/reward-api/project/Dependencies.scala | 6 +++--- examples/reward-api/project/build.properties | 2 +- examples/social/build.sbt | 7 +++++-- examples/social/project/Dependencies.scala | 6 +++--- examples/social/project/build.properties | 2 +- examples/todo/build.sbt | 7 +++++-- examples/todo/project/Dependencies.scala | 6 +++--- examples/todo/project/build.properties | 2 +- examples/voting-poll/build.sbt | 7 +++++-- examples/voting-poll/project/Dependencies.scala | 6 +++--- examples/voting-poll/project/build.properties | 2 +- examples/water-and-energy-usage/build.sbt | 7 +++++-- examples/water-and-energy-usage/project/Dependencies.scala | 6 +++--- examples/water-and-energy-usage/project/build.properties | 2 +- 22 files changed, 65 insertions(+), 44 deletions(-) diff --git a/examples/custom-transaction-validation/build.sbt b/examples/custom-transaction-validation/build.sbt index 7739023..ad34f88 100644 --- a/examples/custom-transaction-validation/build.sbt +++ b/examples/custom-transaction-validation/build.sbt @@ -2,13 +2,16 @@ import Dependencies.* import sbt.* ThisBuild / organization := "com.my.custom_validator" -ThisBuild / scalaVersion := "2.13.10" +ThisBuild / scalaVersion := "2.13.18" ThisBuild / evictionErrorLevel := Level.Warn ThisBuild / assemblyMergeStrategy := { case "logback.xml" => MergeStrategy.first - case x if x.contains("io.netty.versions.properties") => MergeStrategy.discard + case "META-INF/io.netty.versions.properties" => MergeStrategy.first + case "META-INF/versions/9/module-info.class" => MergeStrategy.first + case PathList("META-INF", "versions", _, "OSGI-INF", _ @_*) => MergeStrategy.discard case PathList(xs@_*) if xs.last == "module-info.class" => MergeStrategy.first + case x if x.endsWith("/module-info.class") => MergeStrategy.first case x => val oldStrategy = (assembly / assemblyMergeStrategy).value oldStrategy(x) diff --git a/examples/custom-transaction-validation/project/Dependencies.scala b/examples/custom-transaction-validation/project/Dependencies.scala index cbcbece..3fb9dd6 100644 --- a/examples/custom-transaction-validation/project/Dependencies.scala +++ b/examples/custom-transaction-validation/project/Dependencies.scala @@ -3,7 +3,7 @@ import sbt.* object Dependencies { object V { - val tessellation = "3.5.0-rc.0" + val tessellation = "4.0.0-rc.10" val decline = "2.4.1" } @@ -33,11 +33,11 @@ object Dependencies { ) val kindProjector = compilerPlugin( - ("org.typelevel" % "kind-projector" % "0.13.2").cross(CrossVersion.full) + ("org.typelevel" % "kind-projector" % "0.13.4").cross(CrossVersion.full) ) val semanticDB = compilerPlugin( - ("org.scalameta" % "semanticdb-scalac" % "4.7.1").cross(CrossVersion.full) + ("org.scalameta" % "semanticdb-scalac" % "4.14.2").cross(CrossVersion.full) ) } } diff --git a/examples/custom-transaction-validation/project/build.properties b/examples/custom-transaction-validation/project/build.properties index 8b9a0b0..abbbce5 100644 --- a/examples/custom-transaction-validation/project/build.properties +++ b/examples/custom-transaction-validation/project/build.properties @@ -1 +1 @@ -sbt.version=1.8.0 +sbt.version=1.9.8 diff --git a/examples/nft/build.sbt b/examples/nft/build.sbt index 7dd2e91..cc7bfa5 100644 --- a/examples/nft/build.sbt +++ b/examples/nft/build.sbt @@ -2,13 +2,16 @@ import Dependencies.* import sbt.* ThisBuild / organization := "com.my.nft" -ThisBuild / scalaVersion := "2.13.10" +ThisBuild / scalaVersion := "2.13.18" ThisBuild / evictionErrorLevel := Level.Warn ThisBuild / assemblyMergeStrategy := { case "logback.xml" => MergeStrategy.first - case x if x.contains("io.netty.versions.properties") => MergeStrategy.discard + case "META-INF/io.netty.versions.properties" => MergeStrategy.first + case "META-INF/versions/9/module-info.class" => MergeStrategy.first + case PathList("META-INF", "versions", _, "OSGI-INF", _ @_*) => MergeStrategy.discard case PathList(xs@_*) if xs.last == "module-info.class" => MergeStrategy.first + case x if x.endsWith("/module-info.class") => MergeStrategy.first case x => val oldStrategy = (assembly / assemblyMergeStrategy).value oldStrategy(x) diff --git a/examples/nft/modules/shared_data/src/main/scala/com/my/nft/shared_data/Utils.scala b/examples/nft/modules/shared_data/src/main/scala/com/my/nft/shared_data/Utils.scala index 22c5313..971bc36 100644 --- a/examples/nft/modules/shared_data/src/main/scala/com/my/nft/shared_data/Utils.scala +++ b/examples/nft/modules/shared_data/src/main/scala/com/my/nft/shared_data/Utils.scala @@ -8,12 +8,12 @@ import io.constellationnetwork.schema.address.Address import io.constellationnetwork.security.SecurityProvider import io.constellationnetwork.security.signature.signature.SignatureProof -import java.net.URL +import java.net.URI import scala.util.Try object Utils { def isValidURL(url: String): Boolean = - Try(new URL(url).toURI).isSuccess + Try(URI.create(url).toURL).isSuccess def getAllAddressesFromProofs[F[_] : Async : SecurityProvider]( proofs: NonEmptySet[SignatureProof] diff --git a/examples/nft/project/Dependencies.scala b/examples/nft/project/Dependencies.scala index a1a968e..7a2208c 100644 --- a/examples/nft/project/Dependencies.scala +++ b/examples/nft/project/Dependencies.scala @@ -3,7 +3,7 @@ import sbt.* object Dependencies { object V { - val tessellation = "3.5.0-rc.0" + val tessellation = "4.0.0-rc.10" val decline = "2.4.1" } @@ -32,11 +32,11 @@ object Dependencies { ) val kindProjector = compilerPlugin( - ("org.typelevel" % "kind-projector" % "0.13.2").cross(CrossVersion.full) + ("org.typelevel" % "kind-projector" % "0.13.4").cross(CrossVersion.full) ) val semanticDB = compilerPlugin( - ("org.scalameta" % "semanticdb-scalac" % "4.7.1").cross(CrossVersion.full) + ("org.scalameta" % "semanticdb-scalac" % "4.14.2").cross(CrossVersion.full) ) } } diff --git a/examples/nft/project/build.properties b/examples/nft/project/build.properties index 8b9a0b0..abbbce5 100644 --- a/examples/nft/project/build.properties +++ b/examples/nft/project/build.properties @@ -1 +1 @@ -sbt.version=1.8.0 +sbt.version=1.9.8 diff --git a/examples/reward-api/build.sbt b/examples/reward-api/build.sbt index b6ca549..698cb44 100644 --- a/examples/reward-api/build.sbt +++ b/examples/reward-api/build.sbt @@ -2,13 +2,16 @@ import Dependencies.* import sbt.* ThisBuild / organization := "com.my.reward_api" -ThisBuild / scalaVersion := "2.13.10" +ThisBuild / scalaVersion := "2.13.18" ThisBuild / evictionErrorLevel := Level.Warn ThisBuild / assemblyMergeStrategy := { case "logback.xml" => MergeStrategy.first - case x if x.contains("io.netty.versions.properties") => MergeStrategy.discard + case "META-INF/io.netty.versions.properties" => MergeStrategy.first + case "META-INF/versions/9/module-info.class" => MergeStrategy.first + case PathList("META-INF", "versions", _, "OSGI-INF", _ @_*) => MergeStrategy.discard case PathList(xs@_*) if xs.last == "module-info.class" => MergeStrategy.first + case x if x.endsWith("/module-info.class") => MergeStrategy.first case x => val oldStrategy = (assembly / assemblyMergeStrategy).value oldStrategy(x) diff --git a/examples/reward-api/project/Dependencies.scala b/examples/reward-api/project/Dependencies.scala index cbcbece..3fb9dd6 100644 --- a/examples/reward-api/project/Dependencies.scala +++ b/examples/reward-api/project/Dependencies.scala @@ -3,7 +3,7 @@ import sbt.* object Dependencies { object V { - val tessellation = "3.5.0-rc.0" + val tessellation = "4.0.0-rc.10" val decline = "2.4.1" } @@ -33,11 +33,11 @@ object Dependencies { ) val kindProjector = compilerPlugin( - ("org.typelevel" % "kind-projector" % "0.13.2").cross(CrossVersion.full) + ("org.typelevel" % "kind-projector" % "0.13.4").cross(CrossVersion.full) ) val semanticDB = compilerPlugin( - ("org.scalameta" % "semanticdb-scalac" % "4.7.1").cross(CrossVersion.full) + ("org.scalameta" % "semanticdb-scalac" % "4.14.2").cross(CrossVersion.full) ) } } diff --git a/examples/reward-api/project/build.properties b/examples/reward-api/project/build.properties index 8b9a0b0..abbbce5 100644 --- a/examples/reward-api/project/build.properties +++ b/examples/reward-api/project/build.properties @@ -1 +1 @@ -sbt.version=1.8.0 +sbt.version=1.9.8 diff --git a/examples/social/build.sbt b/examples/social/build.sbt index 0d57287..2ff2f20 100644 --- a/examples/social/build.sbt +++ b/examples/social/build.sbt @@ -2,13 +2,16 @@ import Dependencies.* import sbt.* ThisBuild / organization := "com.my.metagraph_social" -ThisBuild / scalaVersion := "2.13.10" +ThisBuild / scalaVersion := "2.13.18" ThisBuild / evictionErrorLevel := Level.Warn ThisBuild / assemblyMergeStrategy := { case "logback.xml" => MergeStrategy.first - case x if x.contains("io.netty.versions.properties") => MergeStrategy.discard + case "META-INF/io.netty.versions.properties" => MergeStrategy.first + case "META-INF/versions/9/module-info.class" => MergeStrategy.first + case PathList("META-INF", "versions", _, "OSGI-INF", _ @_*) => MergeStrategy.discard case PathList(xs@_*) if xs.last == "module-info.class" => MergeStrategy.first + case x if x.endsWith("/module-info.class") => MergeStrategy.first case x => val oldStrategy = (assembly / assemblyMergeStrategy).value oldStrategy(x) diff --git a/examples/social/project/Dependencies.scala b/examples/social/project/Dependencies.scala index 88c436b..9fc06d4 100644 --- a/examples/social/project/Dependencies.scala +++ b/examples/social/project/Dependencies.scala @@ -3,7 +3,7 @@ import sbt.* object Dependencies { object V { - val tessellation = "3.5.0-rc.0" + val tessellation = "4.0.0-rc.10" val decline = "2.4.1" val http4s = "0.23.16" } @@ -44,11 +44,11 @@ object Dependencies { ) val kindProjector = compilerPlugin( - ("org.typelevel" % "kind-projector" % "0.13.2").cross(CrossVersion.full) + ("org.typelevel" % "kind-projector" % "0.13.4").cross(CrossVersion.full) ) val semanticDB = compilerPlugin( - ("org.scalameta" % "semanticdb-scalac" % "4.7.1").cross(CrossVersion.full) + ("org.scalameta" % "semanticdb-scalac" % "4.14.2").cross(CrossVersion.full) ) } } diff --git a/examples/social/project/build.properties b/examples/social/project/build.properties index 8b9a0b0..abbbce5 100644 --- a/examples/social/project/build.properties +++ b/examples/social/project/build.properties @@ -1 +1 @@ -sbt.version=1.8.0 +sbt.version=1.9.8 diff --git a/examples/todo/build.sbt b/examples/todo/build.sbt index 2e23cf5..d842796 100755 --- a/examples/todo/build.sbt +++ b/examples/todo/build.sbt @@ -3,15 +3,18 @@ import sbt.* import sbt.Keys.* ThisBuild / organization := "com.my" -ThisBuild / scalaVersion := "2.13.10" +ThisBuild / scalaVersion := "2.13.18" ThisBuild / evictionErrorLevel := Level.Warn ThisBuild / scalafixDependencies += Libraries.organizeImports ThisBuild / assemblyMergeStrategy := { case "logback.xml" => MergeStrategy.first - case x if x.contains("io.netty.versions.properties") => MergeStrategy.discard + case "META-INF/io.netty.versions.properties" => MergeStrategy.first + case "META-INF/versions/9/module-info.class" => MergeStrategy.first + case PathList("META-INF", "versions", _, "OSGI-INF", _ @_*) => MergeStrategy.discard case PathList("com", "my", "buildinfo", xs @ _*) => MergeStrategy.first case PathList(xs@_*) if xs.last == "module-info.class" => MergeStrategy.first + case x if x.endsWith("/module-info.class") => MergeStrategy.first case x => val oldStrategy = (assembly / assemblyMergeStrategy).value oldStrategy(x) diff --git a/examples/todo/project/Dependencies.scala b/examples/todo/project/Dependencies.scala index 8958eee..88cebba 100755 --- a/examples/todo/project/Dependencies.scala +++ b/examples/todo/project/Dependencies.scala @@ -3,7 +3,7 @@ import sbt._ object Dependencies { object V { - val tessellation = "3.5.0-rc.0" + val tessellation = "4.0.0-rc.10" val decline = "2.4.1" val cats = "2.9.0" val catsEffect = "3.4.2" @@ -44,11 +44,11 @@ object Dependencies { ) val kindProjector = compilerPlugin( - ("org.typelevel" % "kind-projector" % "0.13.2").cross(CrossVersion.full) + ("org.typelevel" % "kind-projector" % "0.13.4").cross(CrossVersion.full) ) val semanticDB = compilerPlugin( - ("org.scalameta" % "semanticdb-scalac" % "4.7.1").cross(CrossVersion.full) + ("org.scalameta" % "semanticdb-scalac" % "4.14.2").cross(CrossVersion.full) ) } } diff --git a/examples/todo/project/build.properties b/examples/todo/project/build.properties index 8b9a0b0..abbbce5 100755 --- a/examples/todo/project/build.properties +++ b/examples/todo/project/build.properties @@ -1 +1 @@ -sbt.version=1.8.0 +sbt.version=1.9.8 diff --git a/examples/voting-poll/build.sbt b/examples/voting-poll/build.sbt index 3706716..839e8fd 100644 --- a/examples/voting-poll/build.sbt +++ b/examples/voting-poll/build.sbt @@ -2,13 +2,16 @@ import Dependencies.* import sbt.* ThisBuild / organization := "com.my.voting_poll" -ThisBuild / scalaVersion := "2.13.10" +ThisBuild / scalaVersion := "2.13.18" ThisBuild / evictionErrorLevel := Level.Warn ThisBuild / assemblyMergeStrategy := { case "logback.xml" => MergeStrategy.first - case x if x.contains("io.netty.versions.properties") => MergeStrategy.discard + case "META-INF/io.netty.versions.properties" => MergeStrategy.first + case "META-INF/versions/9/module-info.class" => MergeStrategy.first + case PathList("META-INF", "versions", _, "OSGI-INF", _ @_*) => MergeStrategy.discard case PathList(xs@_*) if xs.last == "module-info.class" => MergeStrategy.first + case x if x.endsWith("/module-info.class") => MergeStrategy.first case x => val oldStrategy = (assembly / assemblyMergeStrategy).value oldStrategy(x) diff --git a/examples/voting-poll/project/Dependencies.scala b/examples/voting-poll/project/Dependencies.scala index 1f94789..d24162f 100644 --- a/examples/voting-poll/project/Dependencies.scala +++ b/examples/voting-poll/project/Dependencies.scala @@ -3,7 +3,7 @@ import sbt.* object Dependencies { object V { - val tessellation = "3.5.0-rc.0" + val tessellation = "4.0.0-rc.10" val decline = "2.4.1" val http4s = "0.23.16" } @@ -40,11 +40,11 @@ object Dependencies { ) val kindProjector = compilerPlugin( - ("org.typelevel" % "kind-projector" % "0.13.2").cross(CrossVersion.full) + ("org.typelevel" % "kind-projector" % "0.13.4").cross(CrossVersion.full) ) val semanticDB = compilerPlugin( - ("org.scalameta" % "semanticdb-scalac" % "4.7.1").cross(CrossVersion.full) + ("org.scalameta" % "semanticdb-scalac" % "4.14.2").cross(CrossVersion.full) ) } } diff --git a/examples/voting-poll/project/build.properties b/examples/voting-poll/project/build.properties index 8b9a0b0..abbbce5 100644 --- a/examples/voting-poll/project/build.properties +++ b/examples/voting-poll/project/build.properties @@ -1 +1 @@ -sbt.version=1.8.0 +sbt.version=1.9.8 diff --git a/examples/water-and-energy-usage/build.sbt b/examples/water-and-energy-usage/build.sbt index ed862fb..377db9c 100644 --- a/examples/water-and-energy-usage/build.sbt +++ b/examples/water-and-energy-usage/build.sbt @@ -2,13 +2,16 @@ import Dependencies.* import sbt.* ThisBuild / organization := "com.my.water_and_energy_usage" -ThisBuild / scalaVersion := "2.13.10" +ThisBuild / scalaVersion := "2.13.18" ThisBuild / evictionErrorLevel := Level.Warn ThisBuild / assemblyMergeStrategy := { case "logback.xml" => MergeStrategy.first - case x if x.contains("io.netty.versions.properties") => MergeStrategy.discard + case "META-INF/io.netty.versions.properties" => MergeStrategy.first + case "META-INF/versions/9/module-info.class" => MergeStrategy.first + case PathList("META-INF", "versions", _, "OSGI-INF", _ @_*) => MergeStrategy.discard case PathList(xs@_*) if xs.last == "module-info.class" => MergeStrategy.first + case x if x.endsWith("/module-info.class") => MergeStrategy.first case x => val oldStrategy = (assembly / assemblyMergeStrategy).value oldStrategy(x) diff --git a/examples/water-and-energy-usage/project/Dependencies.scala b/examples/water-and-energy-usage/project/Dependencies.scala index ee59381..9c29242 100644 --- a/examples/water-and-energy-usage/project/Dependencies.scala +++ b/examples/water-and-energy-usage/project/Dependencies.scala @@ -3,7 +3,7 @@ import sbt.* object Dependencies { object V { - val tessellation = "3.5.0-rc.0" + val tessellation = "4.0.0-rc.10" val decline = "2.4.1" } @@ -33,11 +33,11 @@ object Dependencies { ) val kindProjector = compilerPlugin( - ("org.typelevel" % "kind-projector" % "0.13.2").cross(CrossVersion.full) + ("org.typelevel" % "kind-projector" % "0.13.4").cross(CrossVersion.full) ) val semanticDB = compilerPlugin( - ("org.scalameta" % "semanticdb-scalac" % "4.7.1").cross(CrossVersion.full) + ("org.scalameta" % "semanticdb-scalac" % "4.14.2").cross(CrossVersion.full) ) } } diff --git a/examples/water-and-energy-usage/project/build.properties b/examples/water-and-energy-usage/project/build.properties index 8b9a0b0..abbbce5 100644 --- a/examples/water-and-energy-usage/project/build.properties +++ b/examples/water-and-energy-usage/project/build.properties @@ -1 +1 @@ -sbt.version=1.8.0 +sbt.version=1.9.8