summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorAlisaLinUwU <alisalinuwu@gmail.com>2025-01-26 11:44:59 +0500
committerAlisaLinUwU <alisalinuwu@gmail.com>2025-01-26 11:44:59 +0500
commit7b8c476700f995c81a43ec46a14efdb42ea11b32 (patch)
tree3667f55209aa0dc50b46342b336f71ddc7aac883 /build.gradle
Initializemain
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle51
1 files changed, 51 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..c0e790f
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,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()
+}