asciidoctor-gradle-plugin | Gradle plugin that uses Asciidoctor via JRuby | Plugin library
kandi X-RAY | asciidoctor-gradle-plugin Summary
kandi X-RAY | asciidoctor-gradle-plugin Summary
The Asciidoctor Gradle Plugin is the official means of using Asciidoctor to convert all your AsciiDoc documentation using Gradle.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of asciidoctor-gradle-plugin
asciidoctor-gradle-plugin Key Features
asciidoctor-gradle-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on asciidoctor-gradle-plugin
QUESTION
I am trying to setup spring-auto-restdocs in my project, which uses JDK 11, Gradle 5, JUnit5 and Spring Webflux with spring boot 2.1.1.
I've followed the normal spring-restdocs setup guide here: https://docs.spring.io/spring-restdocs/docs/current/reference/html5/
Then also did this getting started guide: https://scacap.github.io/spring-auto-restdocs/
My problem is that when I try to run the following gradle command: gradlew asciidoctor --stacktrace
I get the following error:
...ANSWER
Answered 2019-Aug-29 at 10:02For Java 9/10/11 support, use spring-auto-restdocs-json-doclet-jdk9
as doclet dependency.
QUESTION
I have a project that generates a Bill of Materials (BOM). When I execute gradle build it generates an empty jar, containing only a META-INF folder.
However I am able to publish the pom (BOM) to Nexus correctly, with the side effect of also uploading the empty jar.
According to the maven plugin doc https://docs.gradle.org/current/userguide/maven_plugin.html we should be able to set the packaging:
packaging archiveTask.extension
Here, uploadTask and archiveTask refer to the tasks used for uploading and generating the archive
How can I set the packaging to pom?
Example of Gradle uploaded pom:
...ANSWER
Answered 2018-Oct-10 at 17:08I found that the maven plugin seems to ignore the packaging
property. After some experimentation, I found that it sets the packaging
property to the extension of the file in your artifact. So, the way to get the packaging
property set to pom
is to create a dummy artifact with a file having a .pom
extension, as below.
QUESTION
I was able to launch a Spring Boot Kotlin App from IntelliJ 2017.3. After the last IntelliJ fix update I cannot start that application from the IDE, getting this exception:
...ANSWER
Answered 2019-Aug-27 at 21:24First of all, it's all due to class Kotlin class definition:
The
open
annotation on a class is the opposite of Java'sfinal
: it allows others to inherit from this class. By default, all classes in Kotlin are final
so if you are free to modify your source code, you can make your class not final, just adding open
to it's signature as follows:
QUESTION
Imagine you have a gradle build with a gradle subproject. This subproject has some applied script plugin which define their own repositories like this:
...ANSWER
Answered 2019-May-27 at 17:54I've just tried a little, while I have no project where the sub-projects would feature a build-script:
QUESTION
I split my build in 2 files. build.gradle.kts documentation.gradle.kts and I d'like to include the documentation.gradle.kts in my main buildscript.
So I could share it with other projects. But I am getting an error about asciidoctorj
not found.
What am I missing?
build.gradle.kts ...ANSWER
Answered 2019-Apr-22 at 13:24Since you're not using the plugins
block, you'll have to do
QUESTION
I use gradle with asciidoctor-gradle-plugin
to produce documentation in varioius formats. My build.gradle
looks like:
ANSWER
Answered 2019-Jan-22 at 10:41As a workaround you can try using older version of asciidoctor-gradle-plugin
e.g.
QUESTION
build.gradle
...ANSWER
Answered 2018-Nov-14 at 09:29Your configuration is almost right, but you are customising the wrong task. A Spring Boot fat jar is built with the bootJar
task rather than the jar
task.
You need to replace jar
with bootJar
in your build.gradle
. This will result in it looking the same as the following example:
QUESTION
I am currently migrating an application from maven to gradle (4.10.2). In maven, a tar.gz-file would be generated with configuration, dependencies and some empty directories that would then be used by the application during runtime.
In gradle i am using the distribution plugin to create the tar.gz using the distTar-Task.
To create the empty directories inside the tar.gz, i create them in the build-directory and then have them copied by distTar into the tar.gz.
I managed to finally get this by creating a task createEmptyDirectories
that would just create the directories and be done with it.
distTar would dependOn this task so that the directories are created before the tar.gz or so i thought.
The task createEmptyDirectories
however is always skipped during build (using gradle clean build
):
ANSWER
Answered 2018-Oct-31 at 14:01First thing: you should wrap custom stuff that you want your task to do in a doLast { ... }
closure.
QUESTION
I was trying to export asciidoc document to ODT. I found unofficial backend implementation that does the work: https://github.com/dagwieers/asciidoc-odf. My question is: how can install and use this backend using gradle? Is it even possible? I have no idea how to start.
Here is my build.gradle that does it for PDF
...ANSWER
Answered 2017-Mar-18 at 21:27Maybe not something you want to hear. I think it is no possible to generate odf files with the asciidoctor-gradle-plugin. If you look at https://github.com/asciidoctor/asciidoctor-gradle-examples which demonstrates examples for using gradle-plugin, I do not see an example for odf. :-(
It would be cool, if you could make a feature request at https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues and hopefully, someone will start.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install asciidoctor-gradle-plugin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page