Skip to content

Commit

Permalink
Add a zip task to bundle git4mps plugin and git4mps build plugin toge…
Browse files Browse the repository at this point in the history
…ther
  • Loading branch information
Eden Lin authored and ty1824 committed Jul 2, 2018
1 parent b0540e1 commit 6871608
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions build.gradle
Expand Up @@ -138,7 +138,7 @@ task buildPlugin(group: 'MPS Build',

task zipGit4mpsBuildPlugin(group: 'MPS Build',
type: Zip,
description: 'Archive git4mps build plugin into zip file') {
description: 'Archive git4mps build plugin into a zip file') {
from "${rootDir}/dist/build/artifacts/git4mpsPlugin/"
include "com.workday.mps.git4mps.build/**"
destinationDir = file("${rootDir}/dist/build/artifacts/")
Expand All @@ -147,16 +147,25 @@ task zipGit4mpsBuildPlugin(group: 'MPS Build',

task zipGit4mpsPlugin(group: 'MPS Build',
type: Zip,
description: 'Archive git4mps plugin into zip file') {
description: 'Archive git4mps plugin into a zip file') {
from "${rootDir}/dist/build/artifacts/git4mpsPlugin/"
include "com.workday.mps.git4mps/**"
destinationDir = file("${rootDir}/dist/build/artifacts/")
archiveName = 'com.workday.mps.git4mps.zip'
}

task zipGit4mpsWithBuildPlugin(group: 'MPS Build',
type: Zip,
description: 'Archive both git4mps plugin and git4mps build plugin into a zip file') {
from "${rootDir}/dist/build/artifacts/"
include "git4mpsPlugin/**"
destinationDir = file("${rootDir}/dist/build/artifacts/")
archiveName = 'git4mps.zip'
}

task zipCodeReviewerPlugin(group: 'MPS Build',
type: Zip,
description: 'Archive code reviewer plugin into zip file') {
description: 'Archive code reviewer plugin into a zip file') {
from "${rootDir}/dist/build/artifacts/reviewPlugin/"
include "com.workday.mps.review/**"
destinationDir = file("${rootDir}/dist/build/artifacts/")
Expand All @@ -165,7 +174,7 @@ task zipCodeReviewerPlugin(group: 'MPS Build',

task zipPlugin(group: 'MPS Build',
description: 'Archive plugins into zip files',
dependsOn: [buildPlugin, zipGit4mpsBuildPlugin, zipGit4mpsPlugin, zipCodeReviewerPlugin]) {
dependsOn: [buildPlugin, zipGit4mpsBuildPlugin, zipGit4mpsPlugin, zipGit4mpsWithBuildPlugin, zipCodeReviewerPlugin]) {
doLast {
println 'Plugins have been successfully zipped ================='
println()
Expand Down

0 comments on commit 6871608

Please sign in to comment.