Skip to content

clean code, move very.util #20

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

Merged
merged 1 commit into from
Jun 20, 2023
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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
[submodule "third/rust-tun"]
path = third/rust-tun
url = https://github.com/timzaak/rust-tun.git
[submodule "third/web-sugar"]
path = third/web-sugar
url = git@github.com:ForNetCode/web-sugar.git
21 changes: 10 additions & 11 deletions backend/build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val scala3Version = "3.2.1"
val scala3Version = "3.3.0"

maintainer := "timzaak<zsy.evan#gmail.com>"

Expand All @@ -14,23 +14,22 @@ Compile / PB.targets := Seq(
Compile / PB.protoSources += file("../protobuf")

// zio-json default value needs this
ThisBuild / scalacOptions ++= Seq("-Yretain-trees")
//ThisBuild / scalacOptions ++= Seq("-Yretain-trees")

import Dependencies._


lazy val webSugar = RootProject(file("../third/web-sugar"))

lazy val app = project
.in(file("."))
.settings(
version := "0.0.3",
scalaVersion := scala3Version,
libraryDependencies ++= grpc ++ persistence ++ logLib ++ webServer ++ configLib ++
keycloakLib ++ httpClient ++
Seq(
"dev.zio" %% "zio-prelude" % "1.0.0-RC16", // for validate
"com.github.seancfoley" % "ipaddress" % "5.4.0", // for ip parse
"org.bouncycastle" % "bcprov-jdk18on" % "1.72", // for x25519,
"org.hashids" % "hashids" % "1.0.3", // hashids
libraryDependencies ++=
Seq(
"org.eclipse.jetty" % "jetty-webapp" % "11.0.15" % "container;compile",
"org.bouncycastle" % "bcprov-jdk18on" % "1.72", // for x25519,
// "org.keycloak" % "keycloak-servlet-filter-adapter" % "20.0.1", //keycloak
"org.scalameta" %% "munit" % "0.7.29" % Test
)
) //.enablePlugins(JlinkPlugin)
).enablePlugins(ScalatraPlugin).enablePlugins(JavaAppPackaging).dependsOn(webSugar) //.enablePlugins(JlinkPlugin)
93 changes: 0 additions & 93 deletions backend/src/main/scala/very/util/config/ConfigExtension.scala

This file was deleted.

9 changes: 0 additions & 9 deletions backend/src/main/scala/very/util/entity/Pagination.scala

This file was deleted.

10 changes: 0 additions & 10 deletions backend/src/main/scala/very/util/grpc/auth/SessionProvider.scala

This file was deleted.

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions backend/src/main/scala/very/util/keycloak/JWKTokenVerifier.scala

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions backend/src/main/scala/very/util/persistence/FlywayMigrate.scala

This file was deleted.

15 changes: 0 additions & 15 deletions backend/src/main/scala/very/util/persistence/quill/IDSupport.scala

This file was deleted.

This file was deleted.

Loading