-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (64 loc) · 1.73 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
apply plugin: 'java'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
sourceCompatibility = 1.7
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
jcenter()
}
group = project.property('groupId')
artifactId = project.property('artifactId')
version = project.property('version')
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'com.google.code.gson:gson:2.8.2'
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId group
artifactId artifactId
version version
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['MyPublication']
configurations = ['archives']
pkg {
repo = 'maven'
name = artifactId
licenses = ['MIT']
vcsUrl = project.property('gitUrl')
labels = [
'android', 'java', 'battle.net',
'wow', 'sc2', 'd3',
'World of Warcraft', 'Starcraft II', 'Starcraft 2',
'Diablo III', 'Diablo 3', 'Blizzard'
]
publicDownloadNumbers = true
version {
name = version
desc = 'Khadgar Release'
vcsTag = version
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}