Skip to content

Commit 10c27e4

Browse files
committed
Simplify Gradle asciidoctor config
1 parent e237189 commit 10c27e4

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

documentation/documentation.gradle

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -102,23 +102,23 @@ asciidoctor {
102102

103103
backends 'html5'
104104

105-
attributes 'jupiter-version': project.property('version'),
106-
'platform-version': project.property('platformVersion'),
107-
'vintage-version': project.property('vintageVersion'),
108-
'bom-version': project.property('version'),
109-
'junit4-version': project.property('junit4Version'),
110-
'apiguardian-version': project.property('apiGuardianVersion'),
111-
'ota4j-version': project.property('ota4jVersion'),
112-
'release-branch': project.property('releaseBranch'),
113-
'docs-version': project.property('docsVersion'),
114-
'revnumber' : project.version,
115-
'mainDir': project.sourceSets.main.java.srcDirs[0],
116-
'testDir': project.sourceSets.test.java.srcDirs[0],
117-
'kotlinTestDir': project.sourceSets.test.kotlin.srcDirs[0],
105+
attributes 'jupiter-version': version,
106+
'platform-version': platformVersion,
107+
'vintage-version': vintageVersion,
108+
'bom-version': version,
109+
'junit4-version': junit4Version,
110+
'apiguardian-version': apiGuardianVersion,
111+
'ota4j-version': ota4jVersion,
118112
'surefire-version': surefireVersion,
113+
'release-branch': releaseBranch,
114+
'docs-version': docsVersion,
115+
'revnumber' : version,
116+
'releaseBranch' : version,
117+
'testDir': sourceSets.test.java.srcDirs[0],
118+
'kotlinTestDir': sourceSets.test.kotlin.srcDirs[0],
119119
'consoleLauncherOptionsFile': consoleLauncherOptionsFile.toString(),
120120
'experimentalApisTableFile': experimentalApisTableFile.toString(),
121-
'testResourcesDir': project.sourceSets.test.resources.srcDirs[0],
121+
'testResourcesDir': sourceSets.test.resources.srcDirs[0],
122122
'outdir': outputDir.absolutePath,
123123
'source-highlighter': 'coderay@', // TODO switch to 'rouge' once supported by the html5 backend and on MS Windows
124124
'tabsize': '4',

0 commit comments

Comments
 (0)