Skip to content

Commit

Permalink
Only run shadowJar when explicitely called
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed Nov 27, 2024
1 parent dab01c5 commit 3c887b1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ plugins {

apply from: '../build.common.gradle'

components.java {
tasks.named("shadowJar").configure {
// only run shadowJar when explicitly specified by the user
// check if user invoked gradle with :shadowJar
enabled = project.gradle.startParameter.taskNames.contains("shadowJar")
}
}

shadowJar {
dependencies {
exclude "nu/pattern/*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class ParsedVersion(val version: String) {
*/
val patch = splitVersion.getOrNull(2)?.toIntOrNull() ?: 0

constructor(major: Int, minor: Int, patch: Int = 0) : this("$major.$minor.$patch")

/**
* Compare this version to another ParsedVersion
* @param o the other ParsedVersion to compare to
Expand Down
8 changes: 8 additions & 0 deletions EOCV-Sim/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ apply from: '../build.common.gradle'

ext.kotest_version = '5.7.2'

components.java {
tasks.named("shadowJar").configure {
// only run shadowJar when explicitly specified by the user
// check if user invoked gradle with :shadowJar
enabled = project.gradle.startParameter.taskNames.contains("shadowJar")
}
}

shadowJar {
mergeServiceFiles()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import kotlin.math.log

object PaperVisionChecker {

val LATEST_PAPERVISION = ParsedVersion("1.0.2")
val LATEST_PAPERVISION = ParsedVersion(1, 0, 3)

const val RESET_QUESTION = "o you wish to fix this by resetting back to the default settings? Please note this will wipe your plugins folder!"

Expand Down
2 changes: 1 addition & 1 deletion EOCV-Sim/src/main/resources/repository.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jitpack = "https://jitpack.io/"
# Declare the ID and the Maven coordinates of the plugin (group:artifact:version)
# which will be used to download the plugin from one of repositories specified above.
# Any dependency that is not a valid EOCV-Sim plugin will not be considered after download.
PaperVision = "org.deltacv.PaperVision:EOCVSimPlugin:1.0.2"
PaperVision = "org.deltacv.PaperVision:EOCVSimPlugin:1.0.3"

0 comments on commit 3c887b1

Please sign in to comment.