This plugin initialize an ESCROW package. This is a zip file of the root project. It is possible to exclude files and directories additional for the prepared default excludes.
To use the Gradle escrow plugin. include the following in your build script:
plugins {
id 'com.intershop.gradle.escrow' version '2.0.0'
}
escrow {
sourceGroup = 'publishing group of the escrow package'
}
This plugin can be applied only to the root project. It produces a zip package with all the sources and without Gradle wrapper directory, which will be published to the specified repository.
This plugin adds an extension escrow
to the project.
Property |
Type |
Default value |
Description |
sourceGroup |
|
|
Group or organization of the published ESCROW source package |
classifier |
|
'src' |
Specify the classifier of this artifact. |
mavenPublicationName |
|
'mvnEscrow' |
Specify the name of the publication. |
[ "<buildDir of the root project>", "*/<buildDir of the root project>", '.gradle', '.svn', '.git', '.idea', '.eclipse', '.settings', '**/.settings/**' ]
This list can be manipulated with the following methods:
Method |
Type |
Parameter |
Description |
exclude |
|
String |
Add an additional exclude pattern to the exclude list. |
excludes |
|
List<String> |
Add all elements of the parameter list to the exclude list. |
excludes |
|
List<String> |
Reset the default exclude list with the parameter list. |
Task name |
Class |
Description |
escrowZip |
|
Creates an escrow source package from project. |
See here for details.
Copyright 2022 Intershop Communications.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.