forked from opsgenie/opsgenie-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdk.gradle
30 lines (25 loc) · 800 Bytes
/
sdk.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
30
task generateSdk(dependsOn: ['sdk:jar', ':sdk-swagger:jar',':sdk:generateAllDocs']) << {
def destination = "${project.buildDir}/sdk"
copy {
from "${project(':sdk').buildDir}/libs"
into destination
rename {fileName -> return "opsgenie-${fileName}" };
}
copy {
from "${project(':sdk-swagger').buildDir}/libs"
into destination
rename {fileName -> return "opsgenie-${fileName}" };
}
copy {
from project(':sdk').configurations.runtime
into "${destination}/third_party"
}
copy {
from "${project(':sdk').buildDir}/docs/all"
into "${destination}/javadoc"
}
}
task packageSdk(dependsOn: ['generateSdk'], type: Zip) {
from "${project.buildDir}/sdk"
baseName = 'opsgenie-java-sdk'
}