Skip to content

Commit

Permalink
Use tasks.shadowJar
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed Nov 20, 2024
1 parent e54c324 commit 2a6115c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions EOCVSimPlugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ plugins {

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

// Check if the shadowJar task exists and is enabled, and use its JAR if applicable
def shadowJarTask = tasks.findByName("shadowJar")

tasks.register('signPlugin') {
// Get the key from an environment variable
def signingKey = System.getenv('PLUGINSIGNING_PRIVATE')
Expand All @@ -22,8 +19,8 @@ tasks.register('signPlugin') {
// Determine which JAR file to sign based on whether the shadowJar or jar task is being used
def jarFile = tasks.named("jar").get().archiveFile.get().asFile

if (shadowJarTask && shadowJarTask.enabled) {
jarFile = shadowJarTask.archiveFile.get().asFile
if (tasks.shadowJar.enabled) {
jarFile = tasks.shadowJar.archiveFile.get().asFile
}

def commonJarPath = rootDir.absolutePath + File.separator + "tools" + File.separator + "Common.jar"
Expand Down

0 comments on commit 2a6115c

Please sign in to comment.