@@ -6,6 +6,43 @@ repositories {
6
6
mavenCentral()
7
7
}
8
8
9
+ configurations {
10
+ // This is a workaround that can optimize the performance of the Shell CLI by reducing the length of the CLASSPATH,
11
+ // while also solving the problem of the length limit of command line parameters in the Windows environment
12
+ // This can be removed when we solve the dependencies of grails-bootstrap, grails-shell
13
+ runtimeClasspath {
14
+ exclude group : ' commons-codec' , module : ' commons-codec'
15
+ exclude group : ' com.github.ben-manes.caffeine' , module : ' caffeine'
16
+ exclude group : ' jakarta.annotation' , module : ' jakarta.annotation-api'
17
+ exclude group : ' jakarta.inject' , module : ' jakarta.inject-api'
18
+ exclude group : ' javax.annotation' , module : ' javax.annotation-api'
19
+ exclude group : ' javax.inject' , module : ' javax.inject'
20
+ exclude group : ' javax.persistence' , module : ' javax.persistence-api'
21
+ exclude group : ' javax.transaction' , module : ' javax.transaction-api'
22
+ exclude group : ' junit' , module : ' junit'
23
+ exclude group : ' io.micrometer' , module : ' micrometer-observation'
24
+ exclude group : ' io.micrometer' , module : ' micrometer-commons'
25
+ exclude group : ' org.checkerframework' , module : ' checker-qual'
26
+ exclude group : ' org.apache.ant' , module : ' ant-antlr'
27
+ exclude group : ' org.apache.ant' , module : ' ant-junit'
28
+ exclude group : ' org.apache.commons' , module : ' commons-compress'
29
+ exclude group : ' org.apache.groovy' , module : ' groovy-groovydoc'
30
+ exclude group : ' org.apache.groovy' , module : ' groovy-jmx'
31
+ exclude group : ' org.codehaus.plexus' , module : ' plexus-classworlds'
32
+ exclude group : ' org.codehaus.plexus' , module : ' plexus-component-annotations'
33
+ exclude group : ' org.codehaus.plexus' , module : ' plexus-sec-dispatcher'
34
+ exclude group : ' org.hamcrest' , module : ' hamcrest'
35
+ exclude group : ' org.hamcrest' , module : ' hamcrest-core'
36
+ exclude group : ' org.javassist' , module : ' javassist'
37
+ exclude group : ' org.springframework' , module : ' spring-aop'
38
+ exclude group : ' org.springframework' , module : ' spring-expression'
39
+ exclude group : ' org.springframework' , module : ' spring-jcl'
40
+ exclude group : ' org.springframework' , module : ' spring-tx'
41
+ exclude group : ' org.springframework' , module : ' spring-web'
42
+ exclude group : ' org.springframework.boot' , module : ' spring-boot-autoconfigure'
43
+ }
44
+ }
45
+
9
46
dependencies {
10
47
// compile grails-shell with the Groovy version provided by Gradle
11
48
// to ensure build compatibility with Gradle, currently Groovy 3.0.x
0 commit comments