Skip to content

Commit 587a83e

Browse files
authored
Exclude dependency commons-lang3 since it already exists in Halo (#25)
This PR reduces artifact size by 23.5%. Before: ```bash 1.7M Oct 11 23:26 plugin-feed.jar ``` After: ```bash 1.3M Oct 11 23:26 plugin-feed.jar ``` ```release-note 缩小 23.5% 插件制品体积 ```
1 parent 0c648ca commit 587a83e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jar {
2929

3030
dependencies {
3131
implementation 'org.dom4j:dom4j:2.1.3'
32-
implementation 'org.apache.commons:commons-text:1.10.0'
32+
implementation('org.apache.commons:commons-text:1.10.0') {
33+
// Because the transitive dependency already exists in halo.
34+
exclude group: 'org.apache.commons', module: 'commons-lang3'
35+
}
3336

3437
implementation platform('run.halo.tools.platform:plugin:2.9.0-SNAPSHOT')
3538
compileOnly 'run.halo.app:api'

0 commit comments

Comments
 (0)