-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
108 lines (90 loc) · 2.37 KB
/
build.gradle
File metadata and controls
108 lines (90 loc) · 2.37 KB
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
buildscript {
repositories {
mavenLocal()
jcenter()
}
}
plugins {
id 'com.github.kt3k.coveralls' version '2.6.3'
id 'com.jfrog.bintray' version '1.7.2'
id 'jacoco'
}
group = 'org.livetribe'
version = currentVersion
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
repositories {
jcenter()
}
dependencies {
testCompile 'org.testng:testng:6.8.21'
}
test {
useTestNG() {
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
}
publishing {
publications {
LiveTribePublication(MavenPublication) {
from components.java
groupId 'org.livetribe'
artifactId 'livetribe-aws-arn-parser-java'
version currentVersion
artifact sourcesJar
artifact javadocJar
pom.withXml {
def root = asNode()
root.appendNode('description', 'AWS ARN Parser')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.bintrayUser : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayKey') ? project.bintrayKey : System.getenv('BINTRAY_KEY')
publications = ['LiveTribePublication']
pkg {
repo = 'maven'
userOrg = 'livetribe'
name = 'livetribe-aws-arn-parser-java'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/livetribe/livetribe-aws-arn-parser-java.git'
version {
name = currentVersion
desc = 'AWS ARN Parser v' + currentVersion
vcsTag = currentVersion
attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
}
}
}