-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
58 lines (48 loc) · 1.19 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
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
url "http://dl.bintray.com/shafirov/kwp"
}
}
}
plugins {
id "com.jfrog.bintray" version "1.5"
id 'net.researchgate.release' version '2.3.4'
}
apply plugin: "maven-publish"
apply plugin: 'groovy'
group = 'org.jetbrains.kwp'
dependencies {
compile gradleApi()
compile localGroovy()
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
publishing {
publications {
bintray(MavenPublication) {
from components.java
artifact sourcesJar
}
}
}
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 = ['bintray']
pkg {
userOrg = 'shafirov'
repo = 'kwp'
name = 'kwp'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/shafirov/kwp.git'
}
}
afterReleaseBuild.dependsOn bintrayUpload