-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
133 lines (110 loc) · 3.41 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 {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.3'
}
}
plugins {
id 'java'
id 'application'
id 'jacoco'
id 'io.franzbecker.gradle-lombok' version '1.14'
id 'io.codearte.nexus-staging' version '0.11.0'
id 'com.gradle.build-scan' version '3.1'
id 'com.github.johnrengelman.shadow' version '4.0.3'
}
apply plugin: 'com.bmuschko.nexus'
repositories {
mavenLocal()
mavenCentral()
}
group 'ru.oleg-cherednik.spring.cloud'
version '1.0-SNAPSHOT'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
mainClassName = 'unknown'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
configurations {
jar.archiveName = "spring-cloud-aws-sns-${version}.jar"
}
dependencies {
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation('org.springframework.boot:spring-boot-autoconfigure:2.2.3.RELEASE') {
exclude group: 'org.springframework', module: 'spring-aop'
exclude group: 'org.springframework', module: 'spring-expression'
}
implementation('org.springframework:spring-webmvc:5.2.3.RELEASE') {
exclude group: 'org.springframework', module: 'spring-aop'
exclude group: 'org.springframework', module: 'spring-expression'
}
implementation 'com.amazonaws:aws-java-sdk-sns:1.11.708'
implementation 'javax.servlet:javax.servlet-api:4.0.1'
annotationProcessor("org.projectlombok:lombok:1.18.10")
testImplementation 'org.springframework.boot:spring-boot-starter-web:2.2.3.RELEASE'
testImplementation('org.testng:testng:7.1.0') {
exclude group: 'org.yaml', module: 'snakeyaml'
}
testImplementation 'org.assertj:assertj-core:3.14.0'
testImplementation 'org.mockito:mockito-core:3.2.4'
testAnnotationProcessor("org.projectlombok:lombok:1.18.10")
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
check.dependsOn jacocoTestReport
test {
useTestNG()
}
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
modifyPom {
project {
name 'spring-cloud-aws-sns'
description 'Amazon SNS client for Spring Cloud'
url 'https://github.com/oleg-cherednik/spring-cloud-aws-sns'
inceptionYear '2020'
scm {
url 'https://github.com/oleg-cherednik/spring-cloud-sns'
connection 'scm:https://github.com/oleg-cherednik/spring-cloud-aws-sns.git'
developerConnection 'git@github.com:oleg-cherednik/spring-cloud-aws-sns.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'oleg.cherednik'
name 'Oleg Cherednik'
email 'oleg.cherednik@gmail.com'
}
}
}
}
extraArchive {
sources true
tests true
javadoc true
}
nexus {
sign true
repositoryUrl 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
snapshotRepositoryUrl 'https://oss.sonatype.org/content/repositories/snapshots'
}
nexusStaging {
packageGroup 'ru.oleg-cherednik'
stagingProfileId 'D3835BF60F05B9'
}