-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
124 lines (104 loc) · 2.44 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import java.text.SimpleDateFormat
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.3'
id "com.jfrog.bintray" version "1.4"
}
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish';
apply plugin: 'com.jfrog.bintray'
archivesBaseName = 'warp10-quantum-plugin'
def quantumVersion = '2.6.7'
version = quantumVersion
group = 'io.warp10'
sourceCompatibility = 1.7
targetCompatibility = 1.7
//
// Repositories for dependency resolution
//
repositories {
jcenter()
mavenCentral()
mavenLocal()
maven {
url 'https://repository.apache.org/content/groups/public'
}
maven {
url "http://maven.twttr.com"
}
maven {
url 'https://dl.bintray.com/cityzendata/maven'
}
maven {
url 'https://dl.bintray.com/cityzendata/generic'
}
maven {
url 'https://dl.bintray.com/hbs/maven'
}
maven {
url "http://nexus.bedatadriven.com/content/groups/public/"
}
}
configurations {
provided
}
dependencies {
provided group:'io.warp10', name: 'warpscript', version: '1.2.11-rc2'
compile group:'io.warp10', name: 'warp10-quantum-server', version: quantumVersion
}
sourceSets {
main {
compileClasspath += configurations.provided
}
}
idea {
module {
inheritOutputDirs = true
scopes.PROVIDED.plus += [configurations.provided]
}
}
shadowJar {
manifest {
attributes(
'Main-Class': 'io.warp10.quantum.Main'
)
}
relocate 'org', 'io.warp10.quantum.org'
relocate 'jetty', 'io.warp10.quantum.jetty'
relocate 'javax', 'io.warp10.quantum.javax'
classifier = null
}
publishing {
publications {
QuantumPlugin(MavenPublication) {
artifact shadowJar {
extension = 'jar'
}
groupId 'io.warp10'
artifactId archivesBaseName
version quantumVersion
}
}
}
// DEPLOY ON BINTRAY
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
dryRun = false
publications = ['QuantumPlugin']
pkg {
repo = 'generic'
name = archivesBaseName
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/cityzendata/warp10-quantum-plugin.git'
version {
name = quantumVersion
released = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZZ").format(new Date())
vcsTag = quantumVersion
}
}
}
artifacts {
archives shadowJar
}