2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 02:02:14 +00:00

Compare commits

...

5 Commits

Author SHA1 Message Date
Arpit Shah
4d056f16c5
Merge pull request #1207 from Jay07GIT/dependency_upgrade
Dependencies upgraded for both mac M1 and Intel chip
2025-07-24 21:41:45 -04:00
Nicholas Spadaccino
7eed595bd4
Merge branch 'master' into dependency_upgrade 2025-07-24 17:50:56 -04:00
Jay07GIT
95f6e72c4a
update
Signed-off-by: Jay07GIT <jeyraj931@gmail.com>
2025-03-04 15:46:29 +05:30
Jay07GIT
bc21d26aa3
update 2022-11-21 12:50:19 +05:30
Jay07GIT
ee2581cc3a
Dependencies upgraded for both mac M1 and Intel chip 2022-11-21 11:03:53 +05:30
4 changed files with 4 additions and 59 deletions

View File

@ -162,61 +162,6 @@ settings for the microsite are also configured in `build.sbt` of the project roo
VinylDNS can be started in the background by running the [quickstart instructions](README.md#quickstart) located in the VinylDNS can be started in the background by running the [quickstart instructions](README.md#quickstart) located in the
README. However, VinylDNS can also be run in the foreground. README. However, VinylDNS can also be run in the foreground.
### Support for M1 Macs
If you are using a Mac running macOS with one of the new Apple M1 chips, you will need to update some dependencies to
newer versions before attempting to run VinylDNS locally. To verify whether your computer has one of these chips,
go to About This Mac in the Apple menu in the top-left corner of your screen. If next to Chip you see Apple M1,
or any later chip such as the Apple M1 Pro or Apple M1 Max, then you will need to apply these changes to the code.
#### build.sbt
Update protoc from version 2.6.1:
```shell
PB.targets in Compile := Seq(PB.gens.java("2.6.1") -> (sourceManaged in Compile).value),
PB.protocVersion := "-v261"
```
to version 3.21.7:
```shell
PB.targets in Compile := Seq(PB.gens.java("3.21.7") -> (sourceManaged in Compile).value),
PB.protocVersion := "-v3.21.7"
```
#### project/build.properties
Update `sbt.version=1.4.0` to `sbt.version=1.7.2`
#### project/Dependencies.scala
Update protobuf from version 2.6.1:
```shell
"com.google.protobuf" % "protobuf-java" % "2.6.1",
```
to version 3.21.7:
```shell
"com.google.protobuf" % "protobuf-java" % "3.21.7",
```
#### project/plugins.sbt
Update the sbt-protoc plugin from version 0.99.18:
```shell
addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.18")
```
to version 1.0.6:
```shell
addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.6")
```
### Starting the API Server ### Starting the API Server
Before starting the API service, you can start the dependencies for local development: Before starting the API service, you can start the dependencies for local development:

View File

@ -116,8 +116,8 @@ lazy val coreBuildSettings = Seq(
// do not use unused params as NoOpCrypto ignores its constructor, we should provide a way // do not use unused params as NoOpCrypto ignores its constructor, we should provide a way
// to write a crypto plugin so that we fall back to a noarg constructor // to write a crypto plugin so that we fall back to a noarg constructor
scalacOptions ++= scalacOptionsByV(scalaVersion.value).filterNot(_ == "-Ywarn-unused:params"), scalacOptions ++= scalacOptionsByV(scalaVersion.value).filterNot(_ == "-Ywarn-unused:params"),
PB.targets in Compile := Seq(PB.gens.java("2.6.1") -> (sourceManaged in Compile).value), PB.targets in Compile := Seq(PB.gens.java("3.21.7") -> (sourceManaged in Compile).value),
PB.protocVersion := "-v261" PB.protocVersion := "3.21.7"
) )
lazy val corePublishSettings = Seq( lazy val corePublishSettings = Seq(

View File

@ -27,7 +27,7 @@ object Dependencies {
"com.amazonaws" % "aws-java-sdk-core" % awsV withSources(), "com.amazonaws" % "aws-java-sdk-core" % awsV withSources(),
"com.github.ben-manes.caffeine" % "caffeine" % "2.2.7", "com.github.ben-manes.caffeine" % "caffeine" % "2.2.7",
"com.github.cb372" %% "scalacache-caffeine" % "0.9.4", "com.github.cb372" %% "scalacache-caffeine" % "0.9.4",
"com.google.protobuf" % "protobuf-java" % "2.6.1", "com.google.protobuf" % "protobuf-java" % "3.21.7",
"dnsjava" % "dnsjava" % "3.4.2", "dnsjava" % "dnsjava" % "3.4.2",
"org.apache.commons" % "commons-lang3" % "3.4", "org.apache.commons" % "commons-lang3" % "3.4",
"org.apache.commons" % "commons-text" % "1.4", "org.apache.commons" % "commons-text" % "1.4",

View File

@ -2,7 +2,7 @@ logLevel := Level.Warn
resolvers += "Flyway" at "https://flywaydb.org/repo" resolvers += "Flyway" at "https://flywaydb.org/repo"
addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.18") addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.6")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.1.0") addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.1.0")