-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
120 lines (100 loc) · 3.11 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
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}
group = 'com.venikkin'
archivesBaseName = 'vertx-web-client-4aws'
version = '0.2'
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
java {
withJavadocJar()
withSourcesJar()
}
dependencies {
// main
// vertx
implementation platform('io.vertx:vertx-dependencies:4.3.7')
implementation 'io.vertx:vertx-web-client'
// aws
implementation platform('software.amazon.awssdk:bom:2.19.15')
implementation 'software.amazon.awssdk:auth'
implementation 'software.amazon.awssdk:regions'
// test
// vertx
testImplementation 'io.vertx:vertx-junit5'
// aws
testImplementation 'software.amazon.awssdk:cloudformation'
// json
testImplementation("com.fasterxml.jackson.core:jackson-core:2.14.1")
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.14.1")
// junit + asserts
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
testImplementation("org.assertj:assertj-core:3.24.1")
testImplementation("net.javacrumbs.json-unit:json-unit-assertj:2.36.0")
}
test {
useJUnitPlatform()
}
task deployTestStack(type: Exec) {
workingDir 'test-stack'
commandLine './deploy-stack.sh'
}
task removeTestStack(type: Exec) {
workingDir 'test-stack'
commandLine './remove-stack.sh'
}
publishing {
publications{
mavenJava(MavenPublication){
groupId = 'com.venikkin'
artifactId = 'vertx-web-client-4aws'
version = '0.2'
from components.java
pom {
name = 'vertx-web-client-4aws'
packaging = 'jar'
artifactId = 'vertx-web-client-4aws'
description = 'Vertx web client supporting Sigv4'
url = 'https://github.com/venikkin/vertx-web-client-4aws'
inceptionYear = '2023'
scm {
connection = 'scm:https://github.com/venikkin/vertx-web-client-4aws.git'
developerConnection = 'scm:git://github.com/venikkin/vertx-web-client-4aws.git'
url = 'https://github.com/venikkin/vertx-web-client-4aws'
}
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 = 'venikkin'
name = 'Evgenii Rubanov'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = project.ossrhUsername
password = project.ossrhPassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}