-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathbuild.gradle
81 lines (60 loc) · 1.74 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
plugins {
id 'org.springframework.boot' version '3.4.1'
id 'java'
id 'idea'
id "com.diffplug.spotless" version "6.25.0"
}
apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.diffplug.spotless'
group = 'com.tess4j'
version = '1.4'
repositories {
mavenCentral()
}
dependencies {
// spring boot
implementation 'org.springframework.boot:spring-boot-starter-web'
//spring data mongodb
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation group: 'net.sourceforge.tess4j', name: 'tess4j', version: '5.13.0'
//Commons Codec for Base 64
implementation group: 'commons-codec', name: 'commons-codec', version: '1.17.1'
//Commons IO
implementation group: 'commons-io', name: 'commons-io', version: '2.18.0'
//junit
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.11.4'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.11.4'
//rest-assured
testImplementation group: 'io.rest-assured', name: 'rest-assured', version: '5.5.0'
//spotless
implementation group: 'com.diffplug.spotless', name: 'spotless-plugin-gradle', version: '6.25.0'
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
}
test {
useJUnitPlatform()
}
spotless {
java {
importOrder()
removeUnusedImports()
cleanthat()
googleJavaFormat()
formatAnnotations()
licenseHeader '/* (C) $YEAR */' // or licenseHeaderFile
}
}
archivesBaseName = 'ocr-tess4j-rest'
jar {
manifest {
attributes 'Main-Class': 'com.tess4j.rest.Tess4jV1'
}
}