/
build.gradle
86 lines (68 loc) · 1.69 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
buildscript {
ext.kotlin_version = '1.0.2'
repositories { mavenCentral() }
dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" }
}
plugins {
id "com.jfrog.bintray" version "1.5"
}
version = project.hasProperty('teamcity') ? project['teamcity']['build.number'] : 'SNAPSHOT'
subprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
group = 'org.jonnyzzz.kotlin.xml.dsl'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories { mavenCentral() }
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testCompile "junit:junit:4.12"
}
test {
useJUnit()
testLogging.showStandardStreams = true
}
apply plugin: 'maven-publish'
apply plugin: "com.jfrog.bintray"
task sourceJar(type: Jar) {
from sourceSets.main.allSource
}
artifacts {
archives sourceJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
}
}
}
if (rootProject.hasProperty("bintrayUser")) {
bintray {
user = getProperty('bintrayUser')
key = getProperty('bintrayApiKey')
publications = ['mavenJava']
pkg {
repo = 'maven'
name = 'kotlin.xml.dsl'
userOrg = getProperty('bintrayUser')
licenses = ['MIT']
vcsUrl = 'https://github.com/jonnyzzz/kotlin.xml.dsl.git'
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.11'
}
task bintrayUploadEx {
dependsOn ':api:bintrayUpload'
dependsOn ':jdom:bintrayUpload'
}
task localUploadEx {
dependsOn ':api:publishToLocalMaven'
dependsOn ':jdom:publishToLocalMaven'
}