-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
100 lines (87 loc) · 2.97 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
plugins {
id 'java-library'
id "io.freefair.lombok" version "8.11"
id "com.vanniktech.maven.publish" version "0.29.0"
id "com.diffplug.spotless" version "7.0.0.BETA2"
}
version = '0.1.0'
group = 'store.reduct'
archivesBaseName = 'reduct-java'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
}
repositories {
mavenLocal()
mavenCentral()
}
spotless {
java {
importOrder()
removeUnusedImports()
// googleJavaFormat() // has its own section below
eclipse() // has its own section below
// prettier() // has its own section below
// clangFormat() // has its own section below
// licenseHeader '/* (C) $YEAR */' // or licenseHeaderFile
}
}
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
implementation 'org.projectlombok:lombok:1.18.34'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0'
implementation 'org.mapstruct:mapstruct:1.6.2'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.6.2'
annotationProcessor 'org.projectlombok:lombok:1.18.34'
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.3'
testImplementation 'org.mockito:mockito-junit-jupiter:5.2.0'
testImplementation 'org.assertj:assertj-core:3.26.3'
}
jar {
archiveFileName = "${project.buildDir}/libs/${project.group}.${archivesBaseName}.${version}.jar"
}
tasks.named('test') {
useJUnitPlatform()
dependsOn(tasks.assemble)
}
import com.vanniktech.maven.publish.SonatypeHost
tasks.register('publishingToCentralMaven') {
println 'Publishing to Central Maven is started.'
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
coordinates(group, archivesBaseName, version)
pom {
name = archivesBaseName
description = "ReductStore Client SDK for Java"
url = "https://www.reduct.store/docs"
licenses {
license {
name = "MIT License"
url = "https://opensource.org/licenses/MIT"
}
}
scm {
url = "https://github.com/reductstore/reduct-java.git"
connection = "scm:git:git://github.com/reductstore/reduct-java.git"
developerConnection = "scm:git:ssh://github.com/reductstore/reduct-java.git"
}
developers {
developer {
id = "mtp"
name = "matepocz"
}
developer {
id = "Rumpelshtinskiy"
name = "Rustam Galikhanov"
}
developer {
id = "reductsoftware"
name = "ReductSoftware UG"
email = "info@reduct.store"
}
}
}
}
}