-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
29 lines (26 loc) · 916 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
repositories {
maven { url "https://jitpack.io" }
}
task getUpdateChecker(type: Exec) {
def updateChecker = "${buildDir}/plugin-update-checker";
def str = "mkdir -p '" + file(updateChecker).absolutePath + "' && wget -qO- 'https://github.com/YahnisElsts/plugin-update-checker/archive/v4.4.tar.gz' | tar xvz --strip 1 -C '" + file(updateChecker).absolutePath + "'";
commandLine 'bash', '-c', str
outputs.dir updateChecker
}
task dist(type: Zip, dependsOn: 'getUpdateChecker') {
archiveFileName = 'video-embed-privacy.zip'
destinationDirectory = layout.buildDirectory
from(file('.')) {
include 'readme.txt'
include 'video-embed-privacy.css'
include 'video-embed-privacy.js'
include '*.php'
include 'languages/*'
include 'preview/.htaccess'
include 'preview/preview.php'
include 'preview/guzzle/**'
}
from(file("${buildDir}/plugin-update-checker")) {
into('plugin-update-checker')
}
}