Skip to content

Commit

Permalink
Make whether or not to relocate deps read from project properties -> …
Browse files Browse the repository at this point in the history
…environment variable"

Prevents having to modify build.gradle.kts when disabling relocating.
  • Loading branch information
Axionize committed Nov 23, 2024
1 parent 497d72e commit d30b024
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ java {

// Set to false for debug builds
// You cannot live reload classes if the jar relocates dependencies
var relocate = true;
// Checks Project properties -> environment variable -> defaults true
val relocate: Boolean = project.findProperty("relocate")?.toString()?.toBoolean()
?: System.getenv("RELOCATE_JAR")?.toBoolean()
?: true

repositories {
mavenLocal()
Expand Down

0 comments on commit d30b024

Please sign in to comment.