Skip to content

Commit

Permalink
Application Configuration for Gradle
Browse files Browse the repository at this point in the history
Added the "Application" plugin to the client and server projects,
which already use it to start their respective programs. Also, makes
the client application run by default when executing the 'run' task in
the base project.
  • Loading branch information
zandgall committed Dec 4, 2024
1 parent 478c266 commit 5da4cc6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {

allprojects {
apply plugin: "java"
apply plugin: "application"

version = "2.2.1-dev2"

Expand Down Expand Up @@ -81,6 +82,11 @@ dependencies {
implementation project(":client")
}

// Running the root project actually just runs the client project
application {
mainClass = 'minicraft.core.Game'
}

// Build a runnable game distribution.
jar {
manifest {
Expand Down

0 comments on commit 5da4cc6

Please sign in to comment.