Skip to content

Commit

Permalink
Move javadoc task setup after property configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Jan 3, 2019
1 parent f32fab8 commit f7c3892
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,6 @@ allprojects {
}
}

tasks.withType(Javadoc) {
def links = [
'https://docs.oracle.com/javase/8/docs/api/',
'https://grpc.io/grpc-java/javadoc/',
'https://docs.spring.io/spring-framework/docs/' + springFrameworkVersion + '/javadoc-api/',
'https://docs.spring.io/spring-security/site/docs/' + springSecurityVersion + '/api/'
];
options.setLinks(links)
}

// Copy LICENSE
tasks.withType(Jar) {
from(project.rootDir) {
Expand Down Expand Up @@ -163,6 +153,17 @@ allprojects {
springSecurityVersion = dependencyManagement.importedProperties['spring-security.version']
}
}

tasks.withType(Javadoc) {
def links = [
'https://docs.oracle.com/javase/8/docs/api/',
'https://grpc.io/grpc-java/javadoc/',
'https://docs.spring.io/spring-framework/docs/' + springFrameworkVersion + '/javadoc-api/',
'https://docs.spring.io/spring-security/site/docs/' + springSecurityVersion + '/api/'
];
options.setLinks(links)
}

}

apply from: './deploy.gradle'
Expand Down

0 comments on commit f7c3892

Please sign in to comment.