From 44b22e7208b6077418a5e273c9585874096b38e7 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Sun, 29 Apr 2018 11:51:12 +0900 Subject: [PATCH] Fix 'attributes' deprecation warning in spring-security-docs-guides --- .../guides/spring-security-docs-guides.gradle | 33 +++++++++---------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/docs/guides/spring-security-docs-guides.gradle b/docs/guides/spring-security-docs-guides.gradle index 487283b6b0..8f82944d43 100644 --- a/docs/guides/spring-security-docs-guides.gradle +++ b/docs/guides/spring-security-docs-guides.gradle @@ -2,24 +2,21 @@ apply plugin: 'org.asciidoctor.gradle.asciidoctor' asciidoctor { baseDir = file('src/docs/asciidoc') - options = [ - eruby: 'erubis', - attributes: [ - copycss : '', - icons : 'font', - 'source-highlighter': 'prettify', - sectanchors : '', - toc: '', - 'toc-placement' : 'preamble', - idprefix: '', - idseparator: '-', - doctype: 'book', - 'spring-security-version' : project.version, - 'download-url' : getDownloadUrl(), - 'include-maven-repository' : getMavenRepositoryInclude(), - revnumber : project.version - ] - ] + options eruby: 'erubis' + + attributes copycss : '', + icons : 'font', + 'source-highlighter': 'prettify', + sectanchors : '', + toc: '', + 'toc-placement' : 'preamble', + idprefix: '', + idseparator: '-', + doctype: 'book', + 'spring-security-version' : project.version, + 'download-url' : getDownloadUrl(), + 'include-maven-repository' : getMavenRepositoryInclude(), + revnumber : project.version } ext.spec = copySpec {