blob: c0e790f6a9c30405b008b11a92bc43a958e448c9 (
plain)
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
|
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.0'
id 'io.spring.dependency-management' version '1.1.6'
}
group = 'info.selflearner'
version = '0.0.1-SNAPSHOT'
jar {
manifest {
attributes 'Main-Class': 'info.selflearner.ocr.OcrApplication'
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(23)
}
}
repositories {
mavenCentral()
}
tasks.withType(JavaCompile) {
options.compilerArgs = ['-parameters']
doFirst {
println "Compiler args: ${options.compilerArgs}"
}
}
tasks.withType(GroovyCompile).configureEach {
groovyOptions.parameters = true
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-java8time', version: '3.0.4.RELEASE'
implementation group: 'net.sourceforge.tess4j', name: 'tess4j', version: '5.13.0'
implementation group: 'cn.easyproject', name: 'easyocr', version: '3.0.4-RELEASE'
implementation group: 'org.json', name: 'json', version: '20250107'
implementation group: 'org.dhatim', name: 'fastexcel', version: '0.18.4'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
tasks.named('test') {
useJUnitPlatform()
}
|