-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
118 lines (97 loc) · 2.68 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
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.1.2'
sourceCompatibility = 1.8
targetCompatibility = 1.8
if (project.hasProperty('signing.keyId')) {
apply plugin: 'signing'
signing {
sign configurations.archives
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'io.airbrake:javabrake:0.3.0'
implementation 'ch.qos.logback:logback-classic:1.3.5'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
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 = 'logback'
version = '0.1.2'
description = 'logback integration for javabrake'
from(components.java)
pom{
name = 'logback'
url = 'https://airbrake.io'
description = 'Logback integration for 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/logback.git'
developerConnection = 'scm:git:ssh://github.com/airbrake/logback.git'
url = 'https://github.com/airbrake/logback'
}
}
}
}
repositories{
maven{
name = 'OSSRH'
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
// url = 'https://oss.sonatype.org/content/repositories/snapshots'
credentials {
username = project.properties["ossrhUsername"]
password = project.properties["ossrhPassword"]
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc{
}