-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
90 lines (71 loc) · 1.58 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
buildscript {
repositories { mavenCentral() }
}
plugins {
id "com.jfrog.bintray" version "1.5"
}
version = project.hasProperty('teamcity') ? project['teamcity']['build.number'] : 'SNAPSHOT'
subprojects {
apply plugin: 'java'
group = 'org.jonnyzzz.named-frames'
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
mavenCentral()
}
dependencies {
testCompile "junit:junit:4.12"
}
test {
useJUnit()
maxHeapSize = "32m"
jvmArgs "-XX:MaxPermSize=32m"
}
apply plugin: 'maven'
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 (hasProperty('bintrayUser')) {
bintray {
user = getProperty('bintrayUser')
key = getProperty('bintrayApiKey')
publications = ['mavenJava']
pkg {
repo = 'maven'
name = 'named-frames'
userOrg = getProperty('bintrayUser')
licenses = ['MIT']
vcsUrl = 'https://github.com/jonnyzzz/named-frames'
}
}
}
}
configure(project(':named-frames')) {
dependencies {
compile 'org.jetbrains:annotations:13.0'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.4.1'
}
task bintrayUploadEx {
dependsOn project(':named-frames').tasks.bintrayUpload
}
task localUploadEx {
dependsOn { ':named-frames:publishToLocalMaven' }
}