-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
119 lines (100 loc) · 2.92 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0"
}
}
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'signing'
}
apply plugin: 'io.codearte.nexus-staging'
group = 'io.airbrake'
version = '0.3.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
if (project.hasProperty('signing.keyId')) {
apply plugin: 'signing'
signing {
sign configurations.archives
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.9.2'
implementation 'com.google.code.gson:gson:2.10'
// https://mvnrepository.com/artifact/com.tdunning/t-digest
implementation 'com.tdunning:t-digest:3.2'
api 'com.google.code.findbugs:jsr305:3.0.2'
testImplementation 'com.github.tomakehurst:wiremock:2.27.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
// https://mvnrepository.com/artifact/net.javacrumbs.json-unit/json-unit-assertj
testImplementation 'net.javacrumbs.json-unit:json-unit-assertj:2.35.0'
}
java{
withJavadocJar()
withSourcesJar()
}
test {
testLogging {
showStandardStreams = true
events "passed", "skipped", "failed", "standardOut", "standardError"
showCauses true
showExceptions true
showStackTraces true
exceptionFormat "full"
}
}
publishing {
publications{
mavenJava(MavenPublication){
group = 'io.airbrake'
artifactId = 'javabrake'
version = '0.3.0'
description = 'javabrake'
from(components.java)
pom{
name = 'javabrake'
url = 'https://airbrake.io'
description = 'javabrake'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'sumitjoshi1989'
name = 'Sumit Joshi'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git:github.com/airbrake/javabrake.git'
developerConnection = 'scm:git:ssh://github.com/airbrake/javabrake.git'
url = 'https://github.com/airbrake/javabrake'
}
}
}
}
repositories{
maven{
name = 'OSSRH'
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
credentials {
username = project.properties["ossrhUsername"]
password = project.properties["ossrhPassword"]
}
}
}
}
signing {
sign publishing.publications.mavenJava
}