-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (55 loc) · 1.94 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
plugins {
id 'com.gradleup.shadow' version '8.3.1'
id 'java'
id 'org.springframework.boot' version '3.3.3'
id 'io.spring.dependency-management' version '1.1.6'
id "net.ltgt.errorprone" version "4.0.1"
}
group = 'helium.video'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
}
// For Log4j2 implementation
/*configurations {
all*.exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
all*.exclude group: 'ch.qos.logback', module: 'logback-classic'
all*.exclude group: 'ch.qos.logback', module: 'logback-core'
}
dependencies -> implementation 'org.springframework.boot:spring-boot-starter-log4j2'
*/
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
runtimeOnly 'com.mysql:mysql-connector-j'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// TODO: add spring security
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
errorprone 'com.uber.nullaway:nullaway:0.11.2'
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
errorprone 'com.google.errorprone:error_prone_core:2.32.0'
errorproneJavac "com.google.errorprone:javac:9+181-r4173-1"
implementation 'org.apache.tika:tika-core:3.0.0-BETA2'
implementation 'org.apache.tika:tika-parsers-standard-package:3.0.0-BETA2'
}
import net.ltgt.gradle.errorprone.CheckSeverity
tasks.withType(JavaCompile) {
options.errorprone {
// always set annotated packages to be safe
option("NullAway:AnnotatedPackages", "com.foo")
}
if (name.toLowerCase().contains("test")) {
options.errorprone {
disable("NullAway")
}
}
}
tasks.named('test') {
useJUnitPlatform()
}