/
build.gradle
86 lines (73 loc) · 2.45 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
plugins {
id 'java'
id 'maven-publish'
id 'org.springframework.boot' version '3.0.5'
id "io.spring.dependency-management" version "1.1.0"
id "com.diffplug.spotless" version "6.13.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.collections:google-collections:1.0'
implementation 'io.github.mngsk:device-detector:1.0.10'
implementation 'net.logstash.logback:logstash-logback-encoder:7.3'
implementation 'org.apache.commons:commons-lang3'
implementation 'org.apache.tomcat.embed:tomcat-embed-core'
implementation 'org.apache.tomcat.embed:tomcat-embed-jasper'
implementation 'org.joda:joda-money:1.0.3'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-tomcat'
implementation 'org.springframework.boot:spring-boot-starter-web'
// JSTL
implementation 'jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api'
implementation 'org.glassfish.web:jakarta.servlet.jsp.jstl'
runtimeOnly 'com.mysql:mysql-connector-j'
testImplementation 'com.h2database:h2:1.4.200'
testImplementation 'org.mockito:mockito-inline'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
description = 'demo'
java.sourceCompatibility = JavaVersion.VERSION_17
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
jar {
enabled = false
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
configurations.implementation {
spotless {
java {
// Ref.: https://github.com/diffplug/spotless/issues/240#issuecomment-385206606
custom 'noWildcardImports', {
if (it.contains('*;\n')) {
throw new Error('No wildcard imports allowed')
}
}
bumpThisNumberIfACustomStepChanges(1)
googleJavaFormat().aosp()
}
}
compileJava {
dependsOn spotlessApply
}
}
test {
useJUnitPlatform()
}