Created
January 24, 2018 13:28
Gradle script migrated from Maven assembly plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configurations { | |
deploymentZip | |
} | |
/** | |
* deployment-conf simply package the files in `content` directory in zip file. | |
* That zip file is later consumed by other module to build the installers. | |
*/ | |
task packageZip(type: Zip) { | |
// A list of all the folders which needs to be packaged into the output zip. | |
def folders = [ | |
'conf', | |
'install', | |
'server', | |
'webapps', | |
'wrapper', | |
] | |
// Package each folder into the zip | |
folders.forEach({folder -> | |
from (folder) { | |
into folder | |
} | |
}) | |
baseName = 'distribution-template' | |
} | |
artifacts { | |
/** | |
* We publish the zip file as artifact under the `deploymentZip` configuration. | |
* This allows other modules to consume this zip file. | |
*/ | |
deploymentZip packageZip | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment