Skip to content

Commit 0555dda

Browse files
committed
Remove rarely used commands from the CLI
Closes gh-32263
1 parent e112657 commit 0555dda

File tree

170 files changed

+70
-12337
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+70
-12337
lines changed

README.adoc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,6 @@ For example, if you want to get started using Spring and JPA for database access
125125

126126

127127

128-
=== spring-boot-cli
129-
The Spring command-line application compiles and runs Groovy source, allowing you to write the absolute minimum amount of code to get an application running.
130-
Spring CLI can also watch files, automatically recompiling and restarting when they change.
131-
132-
133-
134128
=== spring-boot-actuator
135129
Actuator endpoints let you monitor and interact with your application.
136130
Spring Boot Actuator provides the infrastructure required for actuator endpoints.
@@ -170,12 +164,6 @@ Developer tools are automatically disabled when running a fully packaged applica
170164

171165

172166

173-
== Samples
174-
Groovy samples for use with the command line application are available in link:spring-boot-project/spring-boot-cli/samples[spring-boot-cli/samples].
175-
To run the CLI samples, type `spring run <sample>.groovy` from the samples directory.
176-
177-
178-
179167
== Guides
180168
The https://spring.io/[spring.io] site contains several guides that show how to use Spring Boot step-by-step:
181169

spring-boot-project/spring-boot-cli/build.gradle

Lines changed: 1 addition & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ configurations {
1818

1919
dependencies {
2020
compileOnlyProject(project(":spring-boot-project:spring-boot"))
21-
compileOnly("jakarta.servlet:jakarta.servlet-api")
22-
compileOnly("org.apache.groovy:groovy-templates")
23-
compileOnly("org.springframework:spring-web")
2421

2522
dependenciesBom(project(path: ":spring-boot-project:spring-boot-dependencies", configuration: "effectiveBom"))
2623

@@ -31,78 +28,25 @@ dependencies {
3128
implementation("org.apache.httpcomponents:httpclient") {
3229
exclude group: "commons-logging", module: "commons-logging"
3330
}
34-
implementation("org.apache.maven:maven-model")
35-
implementation("org.apache.maven:maven-resolver-provider") {
36-
exclude group: "com.google.guava", module: "guava"
37-
exclude group: "javax.inject", module: "javax.inject"
38-
}
39-
implementation("org.apache.maven.resolver:maven-resolver-connector-basic")
40-
implementation("org.apache.maven.resolver:maven-resolver-transport-file")
41-
implementation("org.apache.maven.resolver:maven-resolver-transport-http") {
42-
exclude group: "org.slf4j", module: "jcl-over-slf4j"
43-
}
44-
implementation("org.apache.maven:maven-settings-builder") {
45-
exclude group: "javax.inject", module: "javax.inject"
46-
}
47-
implementation("org.apache.groovy:groovy")
4831
implementation("org.slf4j:slf4j-simple")
49-
implementation("org.sonatype.plexus:plexus-sec-dispatcher")
50-
implementation("org.sonatype.sisu:sisu-inject-plexus") {
51-
exclude group: "javax.enterprise", module: "cdi-api"
52-
exclude group: "org.sonatype.sisu", module: "sisu-inject-bean"
53-
}
5432
implementation("org.springframework:spring-core")
5533
implementation("org.springframework.security:spring-security-crypto")
5634

57-
intTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools"))
5835
intTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
5936
intTestImplementation("org.assertj:assertj-core")
6037
intTestImplementation("org.junit.jupiter:junit-jupiter")
6138
intTestImplementation("org.springframework:spring-core")
6239

6340
loader(project(":spring-boot-project:spring-boot-tools:spring-boot-loader"))
6441

65-
testCompileOnly("org.apache.tomcat.embed:tomcat-embed-core")
6642
testImplementation(project(":spring-boot-project:spring-boot"))
6743
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
6844
testImplementation(project(":spring-boot-project:spring-boot-test"))
6945
testImplementation("org.assertj:assertj-core")
70-
testImplementation("org.apache.groovy:groovy-templates")
7146
testImplementation("org.junit.jupiter:junit-jupiter")
7247
testImplementation("org.mockito:mockito-core")
7348
testImplementation("org.mockito:mockito-junit-jupiter")
7449
testImplementation("org.springframework:spring-test")
75-
76-
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-actuator", configuration: "mavenRepository"))
77-
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-amqp", configuration: "mavenRepository"))
78-
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-aop", configuration: "mavenRepository"))
79-
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-artemis", configuration: "mavenRepository"))
80-
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-batch", configuration: "mavenRepository"))
81-
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-data-jpa", configuration: "mavenRepository"))
82-
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-jdbc", configuration: "mavenRepository"))
83-
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-integration", configuration: "mavenRepository"))
84-
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-security", configuration: "mavenRepository"))
85-
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-web", configuration: "mavenRepository"))
86-
}
87-
88-
task syncSpringBootDependenciesBom(type: Sync) {
89-
destinationDir = file("${buildDir}/generated-resources/org/springframework/boot/cli/compiler/dependencies")
90-
from configurations.dependenciesBom
91-
}
92-
93-
task syncTestRepository(type: Sync) {
94-
destinationDir = file("${buildDir}/test-repository")
95-
from configurations.testRepository
96-
}
97-
98-
sourceSets {
99-
main {
100-
output.dir("${buildDir}/generated-resources", builtBy: "syncSpringBootDependenciesBom")
101-
}
102-
}
103-
104-
test {
105-
dependsOn syncTestRepository
10650
}
10751

10852
task fullJar(type: Jar) {
@@ -124,7 +68,6 @@ task fullJar(type: Jar) {
12468
}
12569
manifest {
12670
attributes(
127-
"Class-Loader": "groovy.lang.GroovyClassLoader",
12871
"Main-Class": "org.springframework.boot.loader.JarLauncher",
12972
"Start-Class": "org.springframework.boot.cli.SpringCli"
13073
)
@@ -155,7 +98,7 @@ task zip(type: Zip) {
15598
}
15699

157100
intTest {
158-
dependsOn syncTestRepository, zip
101+
dependsOn zip
159102
}
160103

161104
task tar(type: Tar) {

spring-boot-project/spring-boot-cli/samples/actuator.groovy

Lines changed: 0 additions & 12 deletions
This file was deleted.

spring-boot-project/spring-boot-cli/samples/app.groovy

Lines changed: 0 additions & 23 deletions
This file was deleted.

spring-boot-project/spring-boot-cli/samples/beans.groovy

Lines changed: 0 additions & 15 deletions
This file was deleted.

spring-boot-project/spring-boot-cli/samples/caching.groovy

Lines changed: 0 additions & 47 deletions
This file was deleted.

spring-boot-project/spring-boot-cli/samples/http.groovy

Lines changed: 0 additions & 23 deletions
This file was deleted.

spring-boot-project/spring-boot-cli/samples/integration.groovy

Lines changed: 0 additions & 39 deletions
This file was deleted.

spring-boot-project/spring-boot-cli/samples/jms.groovy

Lines changed: 0 additions & 33 deletions
This file was deleted.

spring-boot-project/spring-boot-cli/samples/job.groovy

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)