Skip to content

Commit

Permalink
Remove rarely used commands from the CLI
Browse files Browse the repository at this point in the history
Closes gh-32263
  • Loading branch information
wilkinsona committed Sep 8, 2022
1 parent e112657 commit 0555dda
Show file tree
Hide file tree
Showing 170 changed files with 70 additions and 12,337 deletions.
12 changes: 0 additions & 12 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,6 @@ For example, if you want to get started using Spring and JPA for database access



=== spring-boot-cli
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.
Spring CLI can also watch files, automatically recompiling and restarting when they change.



=== spring-boot-actuator
Actuator endpoints let you monitor and interact with your application.
Spring Boot Actuator provides the infrastructure required for actuator endpoints.
Expand Down Expand Up @@ -170,12 +164,6 @@ Developer tools are automatically disabled when running a fully packaged applica



== Samples
Groovy samples for use with the command line application are available in link:spring-boot-project/spring-boot-cli/samples[spring-boot-cli/samples].
To run the CLI samples, type `spring run <sample>.groovy` from the samples directory.



== Guides
The https://spring.io/[spring.io] site contains several guides that show how to use Spring Boot step-by-step:

Expand Down
59 changes: 1 addition & 58 deletions spring-boot-project/spring-boot-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ configurations {

dependencies {
compileOnlyProject(project(":spring-boot-project:spring-boot"))
compileOnly("jakarta.servlet:jakarta.servlet-api")
compileOnly("org.apache.groovy:groovy-templates")
compileOnly("org.springframework:spring-web")

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

Expand All @@ -31,78 +28,25 @@ dependencies {
implementation("org.apache.httpcomponents:httpclient") {
exclude group: "commons-logging", module: "commons-logging"
}
implementation("org.apache.maven:maven-model")
implementation("org.apache.maven:maven-resolver-provider") {
exclude group: "com.google.guava", module: "guava"
exclude group: "javax.inject", module: "javax.inject"
}
implementation("org.apache.maven.resolver:maven-resolver-connector-basic")
implementation("org.apache.maven.resolver:maven-resolver-transport-file")
implementation("org.apache.maven.resolver:maven-resolver-transport-http") {
exclude group: "org.slf4j", module: "jcl-over-slf4j"
}
implementation("org.apache.maven:maven-settings-builder") {
exclude group: "javax.inject", module: "javax.inject"
}
implementation("org.apache.groovy:groovy")
implementation("org.slf4j:slf4j-simple")
implementation("org.sonatype.plexus:plexus-sec-dispatcher")
implementation("org.sonatype.sisu:sisu-inject-plexus") {
exclude group: "javax.enterprise", module: "cdi-api"
exclude group: "org.sonatype.sisu", module: "sisu-inject-bean"
}
implementation("org.springframework:spring-core")
implementation("org.springframework.security:spring-security-crypto")

intTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools"))
intTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
intTestImplementation("org.assertj:assertj-core")
intTestImplementation("org.junit.jupiter:junit-jupiter")
intTestImplementation("org.springframework:spring-core")

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

testCompileOnly("org.apache.tomcat.embed:tomcat-embed-core")
testImplementation(project(":spring-boot-project:spring-boot"))
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
testImplementation(project(":spring-boot-project:spring-boot-test"))
testImplementation("org.assertj:assertj-core")
testImplementation("org.apache.groovy:groovy-templates")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core")
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation("org.springframework:spring-test")

testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-actuator", configuration: "mavenRepository"))
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-amqp", configuration: "mavenRepository"))
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-aop", configuration: "mavenRepository"))
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-artemis", configuration: "mavenRepository"))
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-batch", configuration: "mavenRepository"))
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-data-jpa", configuration: "mavenRepository"))
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-jdbc", configuration: "mavenRepository"))
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-integration", configuration: "mavenRepository"))
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-security", configuration: "mavenRepository"))
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-web", configuration: "mavenRepository"))
}

task syncSpringBootDependenciesBom(type: Sync) {
destinationDir = file("${buildDir}/generated-resources/org/springframework/boot/cli/compiler/dependencies")
from configurations.dependenciesBom
}

task syncTestRepository(type: Sync) {
destinationDir = file("${buildDir}/test-repository")
from configurations.testRepository
}

sourceSets {
main {
output.dir("${buildDir}/generated-resources", builtBy: "syncSpringBootDependenciesBom")
}
}

test {
dependsOn syncTestRepository
}

task fullJar(type: Jar) {
Expand All @@ -124,7 +68,6 @@ task fullJar(type: Jar) {
}
manifest {
attributes(
"Class-Loader": "groovy.lang.GroovyClassLoader",
"Main-Class": "org.springframework.boot.loader.JarLauncher",
"Start-Class": "org.springframework.boot.cli.SpringCli"
)
Expand Down Expand Up @@ -155,7 +98,7 @@ task zip(type: Zip) {
}

intTest {
dependsOn syncTestRepository, zip
dependsOn zip
}

task tar(type: Tar) {
Expand Down
12 changes: 0 additions & 12 deletions spring-boot-project/spring-boot-cli/samples/actuator.groovy

This file was deleted.

23 changes: 0 additions & 23 deletions spring-boot-project/spring-boot-cli/samples/app.groovy

This file was deleted.

15 changes: 0 additions & 15 deletions spring-boot-project/spring-boot-cli/samples/beans.groovy

This file was deleted.

47 changes: 0 additions & 47 deletions spring-boot-project/spring-boot-cli/samples/caching.groovy

This file was deleted.

23 changes: 0 additions & 23 deletions spring-boot-project/spring-boot-cli/samples/http.groovy

This file was deleted.

39 changes: 0 additions & 39 deletions spring-boot-project/spring-boot-cli/samples/integration.groovy

This file was deleted.

33 changes: 0 additions & 33 deletions spring-boot-project/spring-boot-cli/samples/jms.groovy

This file was deleted.

38 changes: 0 additions & 38 deletions spring-boot-project/spring-boot-cli/samples/job.groovy

This file was deleted.

Loading

0 comments on commit 0555dda

Please sign in to comment.