Skip to content

Commit

Permalink
fix: compilejava should create versioninfo file (#5259)
Browse files Browse the repository at this point in the history
  • Loading branch information
soloturn committed Jul 13, 2024
1 parent 189afa9 commit 855b2be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions engine/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,10 @@ tasks.register<WriteProperties>("createVersionInfoFile") {
if (env["JOB_NAME"] != null) {
property("dateTime", startDateTimeString)
}
destinationFile = layout.buildDirectory.dir("createrVersionInfoFile").get().file("versionInfo.properties")
destinationFile = layout.buildDirectory.dir("classes/org/terasology/engine/version").get().file("versionInfo.properties")
}

tasks.named<Copy>("processResources") {
from("createVersionInfoFile") {
into("org/terasology/engine/version/")
}
from("$rootDir/docs") {
include("Credits.md")
}
Expand All @@ -210,7 +207,10 @@ tasks.register<Copy>("copyResourcesToClasses") {
}

tasks.named("compileJava") {
dependsOn(tasks.named("copyResourcesToClasses"))
dependsOn(
tasks.named("copyResourcesToClasses"),
tasks.named("createVersionInfoFile")
)
}

// Instructions for packaging a jar file for the engine
Expand Down

0 comments on commit 855b2be

Please sign in to comment.