forked from shwenzhang/AndResGuard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (57 loc) · 1.96 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//apply plugin: 'com.google.osdetector'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven'
apply plugin: 'maven-publish'
Properties properties = new Properties()
try {
properties.load(project.rootProject.file('local.properties').newDataInputStream())
} catch (Exception e) {
properties.load(project.rootProject.file('travis.properties').newDataInputStream())
}
version = properties.getProperty("bintray.version")
group = properties.getProperty("bintray.groupId")
def appId = 'SevenZip'
bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
configurations = ['archives']
publications = ['SevenZipPub']
dryRun = false //Whether to run this as dry-run, without deploying
pkg {
repo = "maven"
name = "SevenZip"
desc = 'Seven zip bin files'
websiteUrl = 'https://github.com/shwenzhang/AndResGuard'
issueTrackerUrl = 'https://github.com/shwenzhang/AndResGuard/issues'
vcsUrl = 'https://github.com/shwenzhang/AndResGuard.git'
licenses = ["Apache-2.0"]
}
}
publishing {
publications {
SevenZipPub(MavenPublication) {
artifactId appId
groupId group
artifact("executable/SevenZip-linux-x86_32.exe") {
classifier "linux-x86_32"
extension "exe"
}
artifact("executable/SevenZip-linux-x86_64.exe") {
classifier "linux-x86_64"
extension "exe"
}
artifact("executable/SevenZip-windows-x86_32.exe") {
classifier "windows-x86_32"
extension "exe"
}
artifact("executable/SevenZip-windows-x86_64.exe") {
classifier "windows-x86_64"
extension "exe"
}
artifact("executable/SevenZip-osx-x86_64.exe") {
classifier "osx-x86_64"
extension "exe"
}
}
}
}