-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
133 lines (106 loc) · 3.35 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
buildscript {
repositories {
mavenCentral()
}
}
group 'com.adsizzler'
version '1.0-SNAPSHOT'
archivesBaseName = "mangolaa-commons"
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: "jacoco"
apply plugin: 'maven'
apply plugin: 'signing'
sourceCompatibility = 1.8
jar {
baseName = 'mangolaa-commons'
version = '1.0-SNAPSHOT'
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart',
'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
jacoco {
toolVersion = "0.7.9"
}
jacocoTestReport {
group = "reporting"
description = "Generate Jacoco coverage reports after running tests."
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/jacocoHtml"
}
}
test.finalizedBy jacocoTestReport
dependencies {
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.3.1'
compile group: 'com.google.guava', name: 'guava', version: '23.0'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.9'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.9'
compile group: 'org.projectlombok', name: 'lombok', version: '1.16.18'
testCompile group: 'org.spockframework', name: 'spock-core', version: '1.1-groovy-2.4'
compile 'org.codehaus.groovy:groovy-all:2.4.12'
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer{
beforeDeployment{ deployment->
signing.signPom(deployment)
}
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom{
project{
name 'mangolaa-commons'
description 'commons for mangolaa'
packaging 'jar'
url 'https://github.com/Adsizzlerlabs/mangolaa-commons.git'
inceptionYear '2017'
scm {
connection 'scm:git:[email protected]:ankushs92/Browscap4j.git'
developerConnection 'scm:git:[email protected]:ankushs92/Browscap4j.git'
url '[email protected]:ankushs92/Browscap4j.git'
}
licenses {
license {
name 'The MIT License'
url 'https://github.com/ankushs92/Browscap4j/blob/master/LICENSE.md'
}
}
developers {
developer {
name 'Ankush Sharma'
email '[email protected]'
}
}
issueManagement{
system 'Github'
url 'https://github.com/Adsizzlerlabs/mangolaa-commons/issues'
}
}
}
flatDir {
dirs 'repos'
}
}
}
}