Skip to content

Commit

Permalink
chore: Use dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
hdescottes committed Aug 26, 2024
1 parent 9a9b64b commit e75d600
Show file tree
Hide file tree
Showing 7 changed files with 265 additions and 148 deletions.
26 changes: 26 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
labels:
- "dependencies"

- package-ecosystem: gradle
directory: "/"
schedule:
interval: weekly
labels:
- "dependencies"
open-pull-requests-limit: 20
groups:
gdx:
patterns:
- "com.badlogicgames.gdx"
gdx-vfx:
patterns:
- "com.crashinvaders.vfx"
junit-jupiter:
patterns:
- "org.junit.jupiter"
33 changes: 11 additions & 22 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
val gdxVersion by extra {"1.12.1"}
val gdxVfxVersion by extra {"0.5.4"}
val jUnitPlatformVersion by extra {"1.10.1"}
val jUnitJupiterVersion by extra {"5.10.1"}
val mockitoVersion by extra {"5.7.0"}
val assertJVersion by extra {"3.24.2"}
val logbackVersion by extra {"1.4.11"}

plugins {
java
`java-library`
Expand All @@ -27,12 +19,10 @@ allprojects {
}

dependencies {
testImplementation("org.junit.platform:junit-platform-launcher:$jUnitPlatformVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:$jUnitJupiterVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$jUnitJupiterVersion")
testImplementation("org.mockito:mockito-core:$mockitoVersion")
testImplementation("org.assertj:assertj-core:$assertJVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jUnitJupiterVersion")
testImplementation(rootProject.libs.bundles.junit)
testImplementation(rootProject.libs.mockito)
testImplementation(rootProject.libs.assertj)
testRuntimeOnly(rootProject.libs.junit.jupiter.engine)
}
}

Expand All @@ -44,8 +34,8 @@ project(":desktop") {

dependencies {
implementation(project(":core"))
implementation("com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion")
implementation("com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop")
implementation(rootProject.libs.gdx.lwjgl3)
implementation(variantOf(rootProject.libs.gdx.freetype.platform) { classifier("natives-desktop") })
}
}

Expand All @@ -56,11 +46,10 @@ project(":core") {
}

dependencies {
implementation("com.badlogicgames.gdx:gdx:$gdxVersion")
implementation("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop")
implementation("com.crashinvaders.vfx:gdx-vfx-core:$gdxVfxVersion")
implementation("com.crashinvaders.vfx:gdx-vfx-effects:$gdxVfxVersion")
implementation("ch.qos.logback:logback-classic:$logbackVersion")
testImplementation("com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion")
implementation(rootProject.libs.gdx)
implementation(variantOf(rootProject.libs.gdx.platform) { classifier("natives-desktop") })
implementation(rootProject.libs.bundles.gdx.vfx)
implementation(rootProject.libs.logback)
testImplementation(rootProject.libs.gdx.backend.headless)
}
}
28 changes: 28 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[versions]
libgdx = "1.12.1"
gdx-vfx = "0.5.4"
logback = "1.4.11"
junit-platform = "1.10.1"
junit-jupiter = "5.10.1"
mockito = "5.7.0"
assertj = "3.24.2"

[libraries]
gdx-lwjgl3 = { group = "com.badlogicgames.gdx", name = "gdx-backend-lwjgl3", version.ref = "libgdx" }
gdx-freetype-platform = { group = "com.badlogicgames.gdx", name = "gdx-freetype-platform", version.ref = "libgdx"}
gdx = { group = "com.badlogicgames.gdx", name = "gdx", version.ref = "libgdx" }
gdx-platform = { group = "com.badlogicgames.gdx", name = "gdx-platform", version.ref = "libgdx"}
gdx-backend-headless = { group = "com.badlogicgames.gdx", name = "gdx-backend-headless", version.ref = "libgdx"}
vfx-core = { group = "com.crashinvaders.vfx", name = "gdx-vfx-core", version.ref = "gdx-vfx" }
vfx-effects = { group = "com.crashinvaders.vfx", name = "gdx-vfx-effects", version.ref = "gdx-vfx" }
logback = { group = "ch.qos.logback", name = "logback-classic", version.ref = "logback" }
junit-platform = { group = "org.junit.platform", name = "junit-platform-launcher", version.ref = "junit-platform" }
junit-jupiter-api = { group = "org.junit.jupiter", name = "junit-jupiter-api", version.ref = "junit-jupiter" }
junit-jupiter-params = { group = "org.junit.jupiter", name = "junit-jupiter-params", version.ref = "junit-jupiter" }
junit-jupiter-engine = { group = "org.junit.jupiter", name = "junit-jupiter-engine", version.ref = "junit-jupiter" }
mockito = { group = "org.mockito", name = "mockito-core", version.ref = "mockito" }
assertj = { group = "org.assertj", name = "assertj-core", version.ref = "assertj" }

[bundles]
junit = ["junit-platform", "junit-jupiter-api", "junit-jupiter-params"]
gdx-vfx = ["vfx-core", "vfx-effects"]
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit e75d600

Please sign in to comment.