-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (81 loc) · 2.03 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
plugins {
id 'java'
id 'java-gradle-plugin'
id 'maven-publish'
id "com.jfrog.bintray" version "1.8.4"
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
sourceCompatibility = 1.8
dependencies {
compile 'org.apache.geode:geode-core:1.11.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
}
javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
def pomConfig = {
licenses {
license {
name "MIT"
distribution "repo"
}
}
developers {
developer {
id "jhuynh1"
name "Jason Huynh"
}
}
scm {
url "https://github.com/jhuynh1/geode-gradle-build-cache"
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
groupId = 'com.github.jhuynh1.geode.gradle.build.cache'
artifactId = 'geode-gradle-build-cache'
version = '0.1'
pom.withXml {
def root = asNode()
root.appendNode('name', 'geode-gradle-build-cache')
root.appendNode('url', 'https://github.com/jhuynh1/geode-gradle-build-cache')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = System.getProperty('bintray.user')
key = System.getProperty('bintray.key')
publications = ['mavenPublication']
pkg {
repo = 'jhuynh1-maven'
name = 'GeodeGradleBuildCache'
licenses = ['MIT']
vcsUrl = 'https://github.com/jhuynh1/geode-gradle-build-cache.git'
version {
name = '0.1'
released = new Date()
}
}
}