-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
112 lines (95 loc) · 3 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
plugins {
id 'java'
id 'jacoco'
id 'com.diffplug.spotless' version '6.18.0'
id 'maven-publish'
id 'signing'
}
group = 'dev.joss'
version = '1.0.0'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
ext {
junitVersion = "5.8.1"
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.hibernate.validator:hibernate-validator:8.0.1.Final'
implementation 'commons-validator:commons-validator:1.7'
implementation 'software.amazon.awssdk:arns:2.20.96'
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testImplementation 'org.projectlombok:lombok:1.18.28'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.28'
testImplementation 'org.assertj:assertj-core:3.24.2'
testImplementation 'org.glassfish:jakarta.el:5.0.0-M1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.0'
}
spotless {
java {
googleJavaFormat()
}
}
test {
useJUnitPlatform {
includeEngines 'junit-jupiter'
}
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'dev.joss'
artifactId = 'chickpea'
from components.java
pom {
name = 'Chickpea'
description = 'An extension of the Java Bean Validation Specification providing useful annotations for common validation formats .'
url = 'https://github.com/jossmoff/chickpea'
inceptionYear = '2023'
licenses {
license {
name = 'The MIT License (MIT)'
url = 'http://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'jossmoff'
name = 'Joss Moffatt'
email = 'josshmoffatt@gmail.com'
}
}
scm {
connection = 'scm:git@github.com:jossmoff/chickpea.git'
developerConnection = 'scm:git@github.com:jossmoff/chickpea.git'
url = 'https://github.com/jossmoff/chickpea'
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = project.findProperty("sonatypeUsername")
password = project.findProperty("sonatypePassword")
}
}
}
}
signing {
def signingKey = project.findProperty("signingKey")
def signingPassword = project.findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}