-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
79 lines (65 loc) · 1.21 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:2.2.4'
}
}
apply plugin: 'base'
apply plugin: 'ivy-publish'
apply plugin: 'artifactory-publish'
task buildTarball(type: Tar) {
baseName = "win32"
compression = Compression.GZIP
extension = "tar.gz"
destinationDir = buildDir
from {
projectDir
}
include 'include/**/*', 'lib/**/*', "msvc/**/*"
into "win32"
}
publishing {
repositories {
ivy {
url "${System.env.HOME}/.ivy2/local"
layout 'maven'
}
}
publications {
ivy(IvyPublication) {
artifact(buildTarball)
}
}
}
assemble {
dependsOn buildTarball
}
artifactoryPublish {
dependsOn assemble
}
artifactory {
contextUrl = "http://oss.jfrog.org"
resolve {
repository {
repoKey = 'libs-releases'
}
}
publish {
repository {
repoKey = 'oss-snapshot-local'
username = System.env.BINTRAY_USER
password = System.env.BINTRAY_API_KEY
ivy {
ivyLayout = "[organisation]/[module]/[revision]/ivy-[revision].xml"
}
}
defaults {
publications 'ivy'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}