Files
Moongazer/app/build.gradle.kts

77 lines
2.5 KiB
Plaintext
Raw Permalink Normal View History

/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details on building Java & JVM projects, please refer to https://docs.gradle.org/9.0.0/userguide/building_java_projects.html in the Gradle documentation.
*/
val libgdxVersion = "1.13.5"
2025-10-01 02:12:04 +07:00
val gdxVideoVersion = "1.3.3"
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
application
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
// Use JUnit Jupiter for testing.
testImplementation(libs.junit.jupiter)
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
// This dependency is used by the application.
implementation(libs.guava)
2025-09-29 20:43:58 +07:00
// libGDX core
implementation("com.badlogicgames.gdx:gdx:$libgdxVersion")
implementation("com.badlogicgames.gdx:gdx-box2d:$libgdxVersion")
implementation("com.badlogicgames.gdx:gdx-freetype:$libgdxVersion")
implementation("com.badlogicgames.ashley:ashley:1.7.4")
2025-09-29 20:43:58 +07:00
// libGDX Desktop (LWJGL3 + natives)
implementation("com.badlogicgames.gdx:gdx-backend-lwjgl3:$libgdxVersion")
implementation("com.badlogicgames.gdx:gdx-platform:$libgdxVersion:natives-desktop")
implementation("com.badlogicgames.gdx:gdx-box2d-platform:$libgdxVersion:natives-desktop")
implementation("com.badlogicgames.gdx:gdx-freetype-platform:$libgdxVersion:natives-desktop")
// Tools (exclude legacy LWJGL backend)
implementation("com.badlogicgames.gdx:gdx-tools:$libgdxVersion") {
exclude(group = "com.badlogicgames.gdx", module = "gdx-backend-lwjgl")
}
// Logging
implementation("org.slf4j:slf4j-api:2.1.0-alpha1")
implementation("ch.qos.logback:logback-classic:1.5.18")
2025-10-01 02:12:04 +07:00
// gdx-video
implementation("com.badlogicgames.gdx-video:gdx-video:${gdxVideoVersion}")
implementation("com.badlogicgames.gdx-video:gdx-video-lwjgl3:${gdxVideoVersion}")
}
// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion = JavaLanguageVersion.of(23)
}
}
application {
// Define the main class for the application.
mainClass = "org.vibecoders.moongazer.Main"
}
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
options.release.set(23)
}
tasks.named<Test>("test") {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}