-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
121 lines (99 loc) · 3.22 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
plugins {
id 'java-library'
id 'maven-publish'
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
}
group = 'app.tozzi'
version = '3.4.0'
compileJava {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
java {
sourceCompatibility = '17'
targetCompatibility = '17'
withSourcesJar()
withJavadocJar()
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
}
dependencies {
// BOM
implementation(platform("org.springframework.boot:spring-boot-dependencies:3.4.2"))
// JPA
implementation 'jakarta.persistence:jakarta.persistence-api'
// Validation
implementation 'jakarta.validation:jakarta.validation-api'
// Jackson
implementation 'com.fasterxml.jackson.core:jackson-annotations'
// Spring
implementation 'org.springframework.data:spring-data-jpa'
implementation 'org.springframework:spring-beans'
// Lombok
compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
// Utils
implementation 'org.apache.commons:commons-lang3:3.17.0'
// Test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testImplementation 'org.springframework.boot:spring-boot-starter-data-jpa'
testImplementation 'com.h2database:h2'
testImplementation 'org.projectlombok:lombok:1.18.36'
testCompileOnly 'org.projectlombok:lombok:1.18.36'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.36'
testImplementation 'com.fasterxml.jackson.core:jackson-databind'
}
publishing {
publications {
mavenJava(MavenPublication) {
group = 'app.tozzi'
artifactId = 'jpa-search-helper'
version = "3.4.0"
from components.java
pom {
name = 'JPA Search Helper'
description = 'Library for building and running advanced and dynamic queries using JPA in Spring Boot.'
url = 'https://www.tozzi.app'
licenses {
license {
name = 'Mozilla Public License 2.0'
url = 'https://www.mozilla.org/en-US/MPL/2.0/'
}
}
developers {
developer {
id = 'biagio.tozzi'
name = 'Biagio Placido Tozzi'
email = '[email protected]'
url = 'https://www.tozzi.app'
}
}
scm {
connection = 'scm:git:git://github.com:biagioT/jpa-search-helper.git'
developerConnection = 'scm:git:ssh://github.com:biagioT/jpa-search-helper.git'
url = 'https://github.com/biagioT/jpa-search-helper/tree/main'
}
}
}
}
repositories {
maven {
url = layout.buildDirectory.dir('staging-deploy')
}
}
}
javadoc {
options.addBooleanOption('html5', true)
}
test {
useJUnitPlatform()
}
jar {
enabled = true
archiveClassifier.set('')
}