-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
123 lines (99 loc) · 2.81 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
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'
if (project.hasProperty('signing.keyId')) {
apply plugin: 'signing'
signing {
sign configurations.archives
}
}
group = 'com.sam.demolibsp'
version = '0.0.3-SNAPSHOT'
description = 'demosplib'
//java.sourceCompatibility = JavaVersion.VERSION_11
//targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web:2.7.0'
implementation 'io.airbrake:javabrake:0.2.4'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.7.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 = 'com.sam.demolibsp'
artifactId = 'demosplib'
version = '0.0.3-SNAPSHOT'
from(components.java)
pom{
name = 'demosplib'
url = 'https://github.com/sumitjoshi1989/SBMiddlewareDemo'
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/sumitjoshi1989/SBMiddlewareDemo.git'
developerConnection = 'scm:git:ssh://github.com/sumitjoshi1989/SBMiddlewareDemo.git'
url = 'https://github.com/sumitjoshi1989/SBMiddlewareDemo'
}
}
}
}
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
}
javadoc{
if (!JavaVersion.current().isJava9Compatible()) {
DeprecationLogger.nagUserWith(JAVA7_DEPRECATION_WARNING_DOC);
options.addBooleanOption('html5', true)
}
}