[java] fix javadoc configuration (#3302)

* [java] fix javadoc configuration

* [java-pkmst-microservice] fix generated javadoc
This commit is contained in:
Jérémie Bresson 2019-07-08 15:25:47 +02:00 committed by William Cheng
parent 3f9e374c8d
commit 3943d1cc9d
20 changed files with 94 additions and 69 deletions

View File

@ -12,6 +12,7 @@ if [ "$NODE_INDEX" = "1" ]; then
#cp CI/pom.xml.circleci pom.xml #cp CI/pom.xml.circleci pom.xml
java -version java -version
mvn --quiet verify -Psamples.circleci mvn --quiet verify -Psamples.circleci
mvn --quiet javadoc:javadoc -Psamples.circleci
# generate all petstore samples (client, servers, doc) # generate all petstore samples (client, servers, doc)
./bin/run-all-petstore ./bin/run-all-petstore

View File

@ -161,3 +161,7 @@ dependencies {
{{/java8}} {{/java8}}
testCompile "junit:junit:$junit_version" testCompile "junit:junit:$junit_version"
} }
javadoc {
options.tags = [ "http.response.details:a:Http Response Details" ]
}

View File

@ -170,6 +170,8 @@
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
</execution>
</executions>
<configuration> <configuration>
<tags> <tags>
<tag> <tag>
@ -179,8 +181,6 @@
</tag> </tag>
</tags> </tags>
</configuration> </configuration>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>

View File

@ -143,3 +143,7 @@ dependencies {
{{/threetenbp}} {{/threetenbp}}
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
javadoc {
options.tags = [ "http.response.details:a:Http Response Details" ]
}

View File

@ -149,6 +149,8 @@
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
</execution>
</executions>
<configuration> <configuration>
<tags> <tags>
<tag> <tag>
@ -158,8 +160,6 @@
</tag> </tag>
</tags> </tags>
</configuration> </configuration>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>

View File

@ -87,7 +87,7 @@ public class AppConfig extends WebMvcConfigurerAdapter {
* .exposedHeaders("header1", "header2") * .exposedHeaders("header1", "header2")
* .allowCredentials(false).maxAge(3600); * .allowCredentials(false).maxAge(3600);
* *
* @return * @return a new WebMvcConfigurer instance
*/ */
@Bean @Bean
public WebMvcConfigurer corsConfigurer() { public WebMvcConfigurer corsConfigurer() {

View File

@ -18,7 +18,7 @@ import org.springframework.security.oauth2.provider.request.DefaultOAuth2Request
import org.springframework.security.oauth2.provider.token.TokenStore; import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore; import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore;
/** /**
* Provides a convenient base class for creating a {@link WebSecurityConfigurer} * Provides a convenient base class for creating a WebSecurityConfigurer
* instance. The implementation allows customization by overriding methods. * instance. The implementation allows customization by overriding methods.
* *
* @see EnableWebSecurity * @see EnableWebSecurity

View File

@ -10,7 +10,7 @@ import org.springframework.http.HttpMethod;
/** /**
* Configurer class for <code>@EnableResourceServer</code> classes. This class adjust the access * Configurer class for <code>@EnableResourceServer</code> classes. This class adjust the access
* rules and paths that are protected by OAuth2 security. If more than one configures the same property, then the last * rules and paths that are protected by OAuth2 security. If more than one configures the same property, then the last
* one wins. The configurers are sorted by {@link Order} before being applied. * one wins. The configurers are sorted by Order before being applied.
* *
* @author pkmst * @author pkmst
* *

View File

@ -151,6 +151,8 @@
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
</execution>
</executions>
<configuration> <configuration>
<tags> <tags>
<tag> <tag>
@ -160,8 +162,6 @@
</tag> </tag>
</tags> </tags>
</configuration> </configuration>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>

View File

@ -112,3 +112,7 @@ dependencies {
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version" compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
testCompile "junit:junit:$junit_version" testCompile "junit:junit:$junit_version"
} }
javadoc {
options.tags = [ "http.response.details:a:Http Response Details" ]
}

View File

@ -151,6 +151,8 @@
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
</execution>
</executions>
<configuration> <configuration>
<tags> <tags>
<tag> <tag>
@ -160,8 +162,6 @@
</tag> </tag>
</tags> </tags>
</configuration> </configuration>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>

View File

@ -114,3 +114,7 @@ dependencies {
compile "com.brsanthu:migbase64:2.2" compile "com.brsanthu:migbase64:2.2"
testCompile "junit:junit:$junit_version" testCompile "junit:junit:$junit_version"
} }
javadoc {
options.tags = [ "http.response.details:a:Http Response Details" ]
}

View File

@ -151,6 +151,8 @@
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
</execution>
</executions>
<configuration> <configuration>
<tags> <tags>
<tag> <tag>
@ -160,8 +162,6 @@
</tag> </tag>
</tags> </tags>
</configuration> </configuration>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>

View File

@ -108,3 +108,7 @@ dependencies {
compile 'org.threeten:threetenbp:1.3.5' compile 'org.threeten:threetenbp:1.3.5'
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
javadoc {
options.tags = [ "http.response.details:a:Http Response Details" ]
}

View File

@ -142,6 +142,8 @@
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
</execution>
</executions>
<configuration> <configuration>
<tags> <tags>
<tag> <tag>
@ -151,8 +153,6 @@
</tag> </tag>
</tags> </tags>
</configuration> </configuration>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>

View File

@ -108,3 +108,7 @@ dependencies {
compile 'org.threeten:threetenbp:1.3.5' compile 'org.threeten:threetenbp:1.3.5'
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
javadoc {
options.tags = [ "http.response.details:a:Http Response Details" ]
}

View File

@ -142,6 +142,8 @@
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
</execution>
</executions>
<configuration> <configuration>
<tags> <tags>
<tag> <tag>
@ -151,8 +153,6 @@
</tag> </tag>
</tags> </tags>
</configuration> </configuration>
</execution>
</executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>

View File

@ -20,7 +20,7 @@ public class AppConfig extends WebMvcConfigurerAdapter {
* .exposedHeaders("header1", "header2") * .exposedHeaders("header1", "header2")
* .allowCredentials(false).maxAge(3600); * .allowCredentials(false).maxAge(3600);
* *
* @return * @return a new WebMvcConfigurer instance
*/ */
@Bean @Bean
public WebMvcConfigurer corsConfigurer() { public WebMvcConfigurer corsConfigurer() {

View File

@ -18,7 +18,7 @@ import org.springframework.security.oauth2.provider.request.DefaultOAuth2Request
import org.springframework.security.oauth2.provider.token.TokenStore; import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore; import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore;
/** /**
* Provides a convenient base class for creating a {@link WebSecurityConfigurer} * Provides a convenient base class for creating a WebSecurityConfigurer
* instance. The implementation allows customization by overriding methods. * instance. The implementation allows customization by overriding methods.
* *
* @see EnableWebSecurity * @see EnableWebSecurity

View File

@ -10,7 +10,7 @@ import org.springframework.http.HttpMethod;
/** /**
* Configurer class for <code>@EnableResourceServer</code> classes. This class adjust the access * Configurer class for <code>@EnableResourceServer</code> classes. This class adjust the access
* rules and paths that are protected by OAuth2 security. If more than one configures the same property, then the last * rules and paths that are protected by OAuth2 security. If more than one configures the same property, then the last
* one wins. The configurers are sorted by {@link Order} before being applied. * one wins. The configurers are sorted by Order before being applied.
* *
* @author pkmst * @author pkmst
* *