11plugins {
2-
3- id " org.springframework.boot" version " 3.5.4"
4- id " io.spring.dependency-management" version " 1.1.7"
5- id " java-library"
6- id " maven-publish"
7- id " com.diffplug.spotless" version " 7.2.1"
2+ id " org.springframework.boot" version " 3.5.4"
3+ id " io.spring.dependency-management" version " 1.1.7"
4+ id " java-library"
5+ id " maven-publish"
6+ id " com.diffplug.spotless" version " 7.2.1"
87}
98
109repositories {
11- mavenLocal()
12- maven {
13- url = uri( " https://repo.maven.apache.org/maven2/ " )
14- }
15-
16- maven {
17- url = uri( " https://repo.e-iceblue.com/nexus/ content/groups/public/ " )
18- content {
19- includeGroup " e-iceblue "
20- }
21- }
10+ maven {
11+ url = uri( " https://repo.maven.apache.org/maven2/ " )
12+ }
13+
14+ maven {
15+ url = uri( " https://repo.e-iceblue.com/nexus/content/groups/public/ " )
16+ content {
17+ includeGroup " e-iceblue "
18+ }
19+ }
20+ mavenLocal()
2221}
2322
2423dependencyManagement {
25- imports {
26- mavenBom ' org.springframework.modulith:spring-modulith-bom:1.4.2'
27- }
24+ imports {
25+ mavenBom ' org.springframework.modulith:spring-modulith-bom:1.4.2'
26+ }
2827}
2928
3029
3130dependencies {
3231
33- testImplementation platform(" org.junit:junit-bom:${ junit_ver} " )
34- testImplementation " org.junit.jupiter:junit-jupiter"
35- testImplementation " org.springframework.modulith:spring-modulith-starter-test"
36- testImplementation " org.springframework.boot:spring-boot-starter-test"
37- testCompileOnly " org.projectlombok:lombok:${ lombok_ver} "
38- testAnnotationProcessor " org.projectlombok:lombok:${ lombok_ver} "
39-
40-
41- implementation " org.springframework.modulith:spring-modulith-starter-core"
42- implementation " org.springframework.modulith:spring-modulith-events-api"
43- implementation " org.springframework:spring-tx"
44- implementation " org.springframework.boot:spring-boot-starter-web"
45- implementation api(" e-iceblue:spire.office.free:${ iceblue_ver} @pom" ) {
46- transitive = true
47- }
48- implementation " org.apache.poi:poi:${ apachepoi_ver} "
49- implementation " org.apache.poi:poi-scratchpad:${ apachepoi_ver} "
50- implementation " commons-io:commons-io:${ commonsio_ver} "
51- implementation " org.slf4j:slf4j-api:${ slf4j_ver} "
52- implementation " org.jodconverter:jodconverter-local:${ jod_ver} "
53- implementation " org.bytedeco:javacv:${ javacv_ver} "
54- implementation " org.bytedeco:opencv:${ opencv_ver} "
55- implementation " net.coobird:thumbnailator:${ thumb_ver} "
56- implementation " com.mpatric:mp3agic:${ mp3agic_ver} "
57- implementation " org.bytedeco.javacpp-presets:opencv-platform:${ opencvplat_ver} "
58- implementation " commons-cli:commons-cli:${ commonscli_ver} "
59- implementation " org.apache.tika:tika-core:${ tika_ver} "
60- implementation " org.springframework.boot:spring-boot-starter"
61- implementation " org.springdoc:springdoc-openapi-starter-webmvc-ui:${ springdoc_ver} "
62- implementation (" org.apache.pdfbox:pdfbox:${ pdfbox_ver} " ) {
63- exclude group : " commons-logging" , module : " commons-logging"
64- }
65-
66- compileOnly " org.projectlombok:lombok:${ lombok_ver} "
67- annotationProcessor " org.projectlombok:lombok:${ lombok_ver} "
32+ testImplementation platform(" org.junit:junit-bom:${ junit_ver} " )
33+ testImplementation " org.junit.jupiter:junit-jupiter"
34+ testImplementation " org.springframework.modulith:spring-modulith-starter-test"
35+ testImplementation " org.springframework.boot:spring-boot-starter-test"
36+ testCompileOnly " org.projectlombok:lombok:${ lombok_ver} "
37+ testAnnotationProcessor " org.projectlombok:lombok:${ lombok_ver} "
38+
39+ implementation " org.springframework.modulith:spring-modulith-starter-core"
40+ implementation " org.springframework.modulith:spring-modulith-events-api"
41+ implementation " org.springframework:spring-tx"
42+ implementation " org.springframework.boot:spring-boot-starter-web"
43+ implementation api(" e-iceblue:spire.office.free:${ iceblue_ver} @pom" ) {
44+ transitive = true
45+ }
46+ implementation " org.springframework.boot:spring-boot-starter-validation"
47+ implementation " org.apache.poi:poi:${ apachepoi_ver} "
48+ implementation " org.apache.poi:poi-scratchpad:${ apachepoi_ver} "
49+ implementation " commons-io:commons-io:${ commonsio_ver} "
50+ implementation " org.slf4j:slf4j-api:${ slf4j_ver} "
51+ implementation " org.jodconverter:jodconverter-local:${ jod_ver} "
52+ implementation " org.bytedeco:javacv:${ javacv_ver} "
53+ implementation " org.bytedeco:opencv:${ opencv_ver} "
54+ implementation " net.coobird:thumbnailator:${ thumb_ver} "
55+ implementation " com.mpatric:mp3agic:${ mp3agic_ver} "
56+ implementation " org.bytedeco.javacpp-presets:opencv-platform:${ opencvplat_ver} "
57+ implementation " commons-cli:commons-cli:${ commonscli_ver} "
58+ implementation " org.apache.tika:tika-core:${ tika_ver} "
59+ implementation " org.springframework.boot:spring-boot-starter"
60+ implementation " org.springdoc:springdoc-openapi-starter-webmvc-ui:${ springdoc_ver} "
61+ implementation (" org.apache.pdfbox:pdfbox:${ pdfbox_ver} " ) {
62+ exclude group : " commons-logging" , module : " commons-logging"
63+ }
64+
65+ compileOnly " org.projectlombok:lombok:${ lombok_ver} "
66+ annotationProcessor " org.projectlombok:lombok:${ lombok_ver} "
67+ annotationProcessor " org.springframework.boot:spring-boot-configuration-processor"
6868}
6969
7070group = ' io.github.makbn'
@@ -73,31 +73,31 @@ description = 'JThumbnail is a Java library for creating Thumbnails of common ty
7373java. sourceCompatibility = JavaVersion . VERSION_21
7474
7575java {
76- toolchain {
77- languageVersion = JavaLanguageVersion . of(21 )
78- }
76+ toolchain {
77+ languageVersion = JavaLanguageVersion . of(21 )
78+ }
7979}
8080publishing {
81- publications {
82- mavenJava(MavenPublication ) {
83- from components. java
84-
85- groupId = ' io.github.makbn'
86- artifactId = ' jthumbnail'
87- version = ' 2.2.1'
88- }
89- }
90-
91- repositories {
92- maven {
93- name = " GitHubPackages"
94- url = " https://maven.pkg.github.com/makbn/jthumbnail"
95- credentials {
96- username = System . getenv(" GITHUB_ACTOR" )
97- password = System . getenv(" GITHUB_TOKEN" )
98- }
99- }
100- }
81+ publications {
82+ mavenJava(MavenPublication ) {
83+ from components. java
84+
85+ groupId = ' io.github.makbn'
86+ artifactId = ' jthumbnail'
87+ version = ' 2.2.1'
88+ }
89+ }
90+
91+ repositories {
92+ maven {
93+ name = " GitHubPackages"
94+ url = " https://maven.pkg.github.com/makbn/jthumbnail"
95+ credentials {
96+ username = System . getenv(" GITHUB_ACTOR" )
97+ password = System . getenv(" GITHUB_TOKEN" )
98+ }
99+ }
100+ }
101101}
102102
103103jar {
@@ -106,41 +106,41 @@ archiveClassifier = '' //use empty string
106106}
107107
108108test {
109- useJUnitPlatform()
110- testLogging {
111- events " passed" , " skipped" , " failed"
112- }
109+ useJUnitPlatform()
110+ testLogging {
111+ events " passed" , " skipped" , " failed"
112+ }
113113
114- maxHeapSize = ' 1G'
114+ maxHeapSize = ' 1G'
115115}
116116
117117spotless {
118118
119- format ' misc' , {
120- // define the files to apply `misc` to
121- target ' *.gradle' , ' .gitattributes' , ' .gitignore'
122-
123- // define the steps to apply to those files
124- trimTrailingWhitespace()
125- leadingSpacesToTabs () // or leadingTabsToSpaces. Takes an integer argument if you don't like 4
126- endWithNewline()
127- }
128-
129- java {
130- // clean and format imports
131- removeUnusedImports()
132- removeWildcardImports()
133- importOrder()
134-
135- // fix formatting of type annotations
136- formatAnnotations()
137-
138- // Format sources and javadocs according to Palantir formatter
139- palantirJavaFormat()
140-
141- // make sure every file has the following copyright header.
142- // optionally, Spotless can set copyright years by digging
143- // through git history (see "license" section below)
144- // licenseHeader '/* (C)$YEAR */'
145- }
119+ format ' misc' , {
120+ // define the files to apply `misc` to
121+ target ' *.gradle' , ' .gitattributes' , ' .gitignore'
122+
123+ // define the steps to apply to those files
124+ trimTrailingWhitespace()
125+ leadingTabsToSpaces () // or leadingTabsToSpaces. Takes an integer argument if you don't like 4
126+ endWithNewline()
127+ }
128+
129+ java {
130+ // clean and format imports
131+ removeUnusedImports()
132+ removeWildcardImports()
133+ importOrder()
134+
135+ // fix formatting of type annotations
136+ formatAnnotations()
137+
138+ // Format sources and javadocs according to Palantir formatter
139+ palantirJavaFormat()
140+
141+ // make sure every file has the following copyright header.
142+ // optionally, Spotless can set copyright years by digging
143+ // through git history (see "license" section below)
144+ // licenseHeader '/* (C)$YEAR */'
145+ }
146146}
0 commit comments