Exclude documentation examples from main API Javadoc

This commit is contained in:
Andy Wilkinson 2018-02-08 16:26:57 +00:00
parent 5522174e96
commit 7b32cf82df
35 changed files with 46 additions and 37 deletions

View File

@ -907,6 +907,7 @@
<dependencySourceIncludes>
<dependencySourceInclude>${project.groupId}:*</dependencySourceInclude>
</dependencySourceIncludes>
<sourceFileExcludes>org/springframework/boot/docs/**/*.java</sourceFileExcludes>
<attach>false</attach>
<quiet>true</quiet>
<stylesheetfile>${basedir}/src/main/javadoc/spring-javadoc.css</stylesheetfile>

View File

@ -61,8 +61,8 @@ Phillip Webb; Dave Syer; Josh Long; Stéphane Nicoll; Rob Winch; Andy Wilkinson;
:gradle-userguide: https://www.gradle.org/docs/current/userguide
:propdeps-plugin: https://github.com/spring-projects/gradle-plugins/tree/master/propdeps-plugin
:ant-manual: http://ant.apache.org/manual
:code-examples: ../java/org/springframework/boot
:test-examples: ../../test/java/org/springframework/boot
:code-examples: ../java/org/springframework/boot/docs
:test-examples: ../../test/java/org/springframework/boot/docs
:gradle-user-guide: https://docs.gradle.org/4.2.1/userguide
:hibernate-documentation: https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html
:jetty-documentation: https://www.eclipse.org/jetty/documentation/9.4.x

View File

@ -14,8 +14,10 @@
* limitations under the License.
*/
package org.springframework.boot;
package org.springframework.boot.docs;
import org.springframework.boot.ExitCodeGenerator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.actuate.metrics;
package org.springframework.boot.docs.actuate.metrics;
import io.micrometer.core.instrument.config.MeterFilter;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.autoconfigure;
package org.springframework.boot.docs.autoconfigure;
/**
* Sample service.

View File

@ -14,13 +14,13 @@
* limitations under the License.
*/
package org.springframework.boot.autoconfigure;
package org.springframework.boot.docs.autoconfigure;
import org.springframework.boot.autoconfigure.UserServiceAutoConfiguration.UserProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.docs.autoconfigure.UserServiceAutoConfiguration.UserProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@ -14,9 +14,10 @@
* limitations under the License.
*/
package org.springframework.boot.builder;
package org.springframework.boot.docs.builder;
import org.springframework.boot.Banner;
import org.springframework.boot.builder.SpringApplicationBuilder;
/**
* Examples of using {@link SpringApplicationBuilder}.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.cloudfoundry;
package org.springframework.boot.docs.cloudfoundry;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.context;
package org.springframework.boot.docs.context;
import java.io.IOException;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.context.embedded;
package org.springframework.boot.docs.context.embedded;
import org.apache.tomcat.util.http.LegacyCookieProcessor;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.elasticsearch;
package org.springframework.boot.docs.elasticsearch;
import javax.persistence.EntityManagerFactory;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.elasticsearch.jest;
package org.springframework.boot.docs.elasticsearch.jest;
import io.searchbox.client.config.HttpClientConfig;

View File

@ -14,11 +14,12 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc;
package org.springframework.boot.docs.jdbc;
import javax.sql.DataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc;
package org.springframework.boot.docs.jdbc;
import javax.sql.DataSource;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc;
package org.springframework.boot.docs.jdbc;
import javax.sql.DataSource;

View File

@ -14,13 +14,14 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc;
package org.springframework.boot.docs.jdbc;
import javax.sql.DataSource;
import com.zaxxer.hikari.HikariDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc;
package org.springframework.boot.docs.jdbc;
import javax.sql.DataSource;
@ -22,6 +22,7 @@ import org.apache.commons.dbcp2.BasicDataSource;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.test.autoconfigure.restdocs.restassured;
package org.springframework.boot.docs.test.autoconfigure.restdocs.restassured;
import org.springframework.boot.test.autoconfigure.restdocs.RestDocsRestAssuredConfigurationCustomizer;
import org.springframework.boot.test.context.TestConfiguration;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.test.autoconfigure.restdocs.restassured;
package org.springframework.boot.docs.test.autoconfigure.restdocs.restassured;
// tag::source[]
import io.restassured.specification.RequestSpecification;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.test.spock;
package org.springframework.boot.docs.test.spock;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.boot.test.context.SpringBootTest;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.test.web;
package org.springframework.boot.docs.test.web;
// tag::test-random-port[]
import org.junit.Test;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.test.web;
package org.springframework.boot.docs.test.web;
// tag::test-random-port[]

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.web.client;
package org.springframework.boot.docs.web.client;
import org.apache.http.HttpException;
import org.apache.http.HttpHost;
@ -24,6 +24,7 @@ import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.conn.DefaultProxyRoutePlanner;
import org.apache.http.protocol.HttpContext;
import org.springframework.boot.web.client.RestTemplateCustomizer;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.web.security;
package org.springframework.boot.docs.web.security;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;

View File

@ -14,10 +14,11 @@
* limitations under the License.
*/
package org.springframework.boot.autoconfigure;
package org.springframework.boot.docs.autoconfigure;
import org.junit.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.FilteredClassLoader;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.context.annotation.Bean;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.builder;
package org.springframework.boot.docs.builder;
import org.junit.Rule;
import org.junit.Test;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.context;
package org.springframework.boot.docs.context;
import org.junit.Test;

View File

@ -14,14 +14,14 @@
* limitations under the License.
*/
package org.springframework.boot.context.embedded;
package org.springframework.boot.docs.context.embedded;
import org.apache.catalina.Context;
import org.apache.tomcat.util.http.LegacyCookieProcessor;
import org.junit.Test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.embedded.TomcatLegacyCookieProcessorExample.LegacyCookieProcessorConfiguration;
import org.springframework.boot.docs.context.embedded.TomcatLegacyCookieProcessorExample.LegacyCookieProcessorConfiguration;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.embedded.tomcat.TomcatWebServer;
import org.springframework.boot.web.server.WebServerFactoryCustomizerBeanPostProcessor;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc;
package org.springframework.boot.docs.jdbc;
import java.sql.SQLException;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc;
package org.springframework.boot.docs.jdbc;
import java.sql.SQLException;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc;
package org.springframework.boot.docs.jdbc;
import java.sql.SQLException;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc;
package org.springframework.boot.docs.jdbc;
import javax.sql.DataSource;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc;
package org.springframework.boot.docs.jdbc;
import java.sql.SQLException;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.jdbc;
package org.springframework.boot.docs.jdbc;
import java.sql.SQLException;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.test.spock;
package org.springframework.boot.docs.test.spock;
import org.junit.Test;
import org.junit.runner.RunWith;