Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rmgk committed Sep 3, 2024
1 parent 4bc828b commit 5571fe1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ex2021encfixtodo.sync
import channels.TCP
import com.github.plokhotnyuk.jsoniter_scala.core.JsonValueCodec
import com.google.crypto.tink.aead.AeadConfig
import com.google.crypto.tink.{Aead, CleartextKeysetHandle, JsonKeysetReader, JsonKeysetWriter, KeyTemplates, KeysetHandle}
import com.google.crypto.tink.{Aead, CleartextKeysetHandle, JsonKeysetReader, JsonKeysetWriter, KeyTemplates, KeysetHandle, LegacyKeysetSerialization}
import rdts.base.{Bottom, Lattice, LocalUid}
import rdts.dotted.{Dotted, HasDots, Obrem}
import replication.{DataManager, ProtocolDots}
Expand Down Expand Up @@ -38,7 +38,7 @@ class DataManagerConnectionManager[State: JsonValueCodec: Lattice: Bottom: HasDo
CleartextKeysetHandle.read(JsonKeysetReader.withInputStream(Files.newInputStream(keysetFilePath)))
private val aead: Aead = keyset.getPrimitive(classOf[Aead])

println(keyset.getKeysetInfo)
println(LegacyKeysetSerialization.getKeysetInfo(keyset))

val dataManager: DataManager[State] =
DataManager[State](
Expand Down
4 changes: 2 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ object Dependencies {
def sqliteJdbc = libraryDependencies += "org.xerial" % "sqlite-jdbc" % "3.46.1.0"
def jsoniterScala =
libraryDependencies ++= Seq(
"com.github.plokhotnyuk.jsoniter-scala" %%% "jsoniter-scala-core" % "2.30.8",
"com.github.plokhotnyuk.jsoniter-scala" %%% "jsoniter-scala-macros" % "2.30.8" % Provided
"com.github.plokhotnyuk.jsoniter-scala" %%% "jsoniter-scala-core" % "2.30.9",
"com.github.plokhotnyuk.jsoniter-scala" %%% "jsoniter-scala-macros" % "2.30.9" % Provided
)

object slips {
Expand Down
11 changes: 9 additions & 2 deletions project/JarExport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* and may contain unused dependencies */

import sbt.Keys.{crossTarget, fullClasspathAsJars}
import sbt.{Compile, File, IO, Setting, TaskKey}
import sbt.{Compile, File, IO, Setting, TaskKey, SettingKey}

// Extending sbt.AutoPlugin causes this plugin to be automatically added to all sbt projects that match the triggers.
// And because we don’t really specify any triggers, it is just added everywhere.
Expand All @@ -14,12 +14,16 @@ object JarExport extends sbt.AutoPlugin {
// though, it does not yet define behaviour
val packageJars = TaskKey[File]("packageJars", "copies classpath jars to a file in the target dir")


val writeClasspathPath = SettingKey[File]("writeClasspathPath", "The file to write the classpath to.")
// second additional command, same as the above
val writeClasspath = TaskKey[File]("writeClasspath", "writes the classpath to a file in the target dir")

// This defines settings the plugin makes.
// It is essentially the same as if this was in a `.settings()` block in the build.sbt
override lazy val projectSettings: Seq[Setting[?]] = Seq(


// copy all jars required in the class path to a `jars` folder in the target directory
packageJars := {
val cp = (Compile / fullClasspathAsJars).value
Expand All @@ -33,14 +37,17 @@ object JarExport extends sbt.AutoPlugin {
targetpath.toFile
},


writeClasspathPath := crossTarget.value.toPath.resolve("classpath.txt").toFile,

// write the classpath into a file that can be passed to java as a commandline argument file
writeClasspath := {
val cp = (Compile / fullClasspathAsJars).value
val cpstring = cp.map { at =>
val pathstring = at.data.toString.replace("\\", "/")
s"""-cp "${pathstring}"\n"""
}.mkString("")
val targetpath = crossTarget.value.toPath.resolve("classpath.txt")
val targetpath = writeClasspathPath.value.toPath
IO.write(targetpath.toFile, cpstring)
targetpath.toFile
}
Expand Down
2 changes: 1 addition & 1 deletion project/LocalSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import scala.scalanative.build.{LTO, NativeConfig}

object LocalSettings {

def tink = libraryDependencies += "com.google.crypto.tink" % "tink" % "1.14.1"
def tink = libraryDependencies += "com.google.crypto.tink" % "tink" % "1.15.0"

def scalafx: ModuleID = "org.scalafx" %% "scalafx" % "22.0.0-R33"

Expand Down

0 comments on commit 5571fe1

Please sign in to comment.