Skip to content

Commit

Permalink
Use libs.versions.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo committed Nov 30, 2024
1 parent 93ef537 commit a311689
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dependencies {
testImplementation(platform("org.junit:junit-bom:5.10.2"))
testImplementation("org.junit.jupiter:junit-jupiter")

testImplementation(Deps.ZSTD_JNI)
testImplementation(libs.zstd.jni)

LWJGL.addDependency(this, "testImplementation", "lwjgl")
LWJGL.addDependency(this, "testImplementation", "lwjgl-xxhash")
Expand Down Expand Up @@ -97,7 +97,7 @@ tasks.test {
dependencies {
implementation(project(":base"))
implementation(project(":boot"))
implementation(Deps.ZSTD_JNI)
implementation(libs.zstd.jni)
}

tasks.jar {
Expand Down
22 changes: 0 additions & 22 deletions buildSrc/src/main/java/Deps.java

This file was deleted.

19 changes: 19 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (C) 2024 Glavo
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

[versions]
zstd-jni = "1.5.6-8"

[libraries]
zstd-jni = { module = "com.github.luben:zstd-jni", version.ref = "zstd-jni" }

0 comments on commit a311689

Please sign in to comment.