Skip to content

Commit 96bd9da

Browse files
committed
Compile doc's Java examples and allow them to be imported into Eclipse
Closes gh-21445
1 parent a2187bb commit 96bd9da

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ repositories {
2525
}
2626
}
2727

28+
sourceSets {
29+
main
30+
}
31+
32+
plugins.withType(EclipsePlugin) {
33+
extensions.getByType(org.gradle.plugins.ide.eclipse.model.EclipseModel).classpath { classpath ->
34+
classpath.plusConfigurations.add(configurations.getByName(sourceSets.main.runtimeClasspathConfigurationName))
35+
}
36+
}
37+
2838
dependencies {
2939
actuatorApiDocumentation(project(path: ":spring-boot-project:spring-boot-actuator-autoconfigure", configuration: "documentation"))
3040

@@ -46,6 +56,32 @@ dependencies {
4656

4757
gradlePluginDocumentation(project(path: ":spring-boot-project:spring-boot-tools:spring-boot-gradle-plugin", configuration: "documentation"))
4858

59+
implementation(project(path: ":spring-boot-project:spring-boot-actuator"))
60+
implementation(project(path: ":spring-boot-project:spring-boot-autoconfigure"))
61+
implementation(project(path: ":spring-boot-project:spring-boot-test"))
62+
implementation(project(path: ":spring-boot-project:spring-boot-test-autoconfigure"))
63+
implementation("com.zaxxer:HikariCP")
64+
implementation("io.micrometer:micrometer-core")
65+
implementation("io.projectreactor.netty:reactor-netty")
66+
implementation("jakarta.servlet:jakarta.servlet-api")
67+
implementation("org.apache.commons:commons-dbcp2")
68+
implementation("org.apache.kafka:kafka-streams")
69+
implementation("org.apache.tomcat.embed:tomcat-embed-core")
70+
implementation("org.assertj:assertj-core")
71+
implementation("org.glassfish.jersey.core:jersey-server")
72+
implementation("org.hibernate:hibernate-jcache")
73+
implementation("org.springframework:spring-test")
74+
implementation("org.springframework:spring-web")
75+
implementation("org.springframework:spring-webflux")
76+
implementation("org.springframework.data:spring-data-redis")
77+
implementation("org.springframework.data:spring-data-r2dbc")
78+
implementation("org.springframework.kafka:spring-kafka")
79+
implementation("org.springframework.restdocs:spring-restdocs-restassured")
80+
implementation("org.springframework.restdocs:spring-restdocs-webtestclient")
81+
implementation("org.springframework.security:spring-security-config")
82+
implementation("org.springframework.security:spring-security-web")
83+
implementation("org.junit.jupiter:junit-jupiter")
84+
4985
mavenPluginDocumentation(project(path: ":spring-boot-project:spring-boot-tools:spring-boot-maven-plugin", configuration: "documentation"))
5086

5187
testSlices(project(path: ":spring-boot-project:spring-boot-test-autoconfigure", configuration: "testSliceMetadata"))

0 commit comments

Comments
 (0)