Skip to content

Instantly share code, notes, and snippets.

../headers.adoc :toc: macro :toc-title: What’s the plan for this lesson?

Lesson 3: Containers and the rest of the world

import org.ajoberstar.grgit.*
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2'
classpath 'com.github.jruby-gradle:jruby-gradle-plugin:0.1.5'
import org.ajoberstar.grgit.*
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2'
classpath 'com.github.jruby-gradle:jruby-gradle-plugin:0.1.5'
import org.ajoberstar.grgit.*
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'uk.co.cacoethes:lazybones-gradle:1.2.3'
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2'
scheibel@~/labs/adocs/gradle-variant-aware-dependency-resolution (master) $ gradle generatePdf
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/gscheibel/labs/adocs/gradle-variant-aware-dependency-resolution/examples/customlib1/build.gradle' line: 1
* What went wrong:
Could not compile build file '/Users/gscheibel/labs/adocs/gradle-variant-aware-dependency-resolution/examples/customlib1/build.gradle'.
> startup failed:
gscheibel@~/labs/adocs/gradle-variant-aware-dependency-resolution (master) $ gradle generatePdf
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/gscheibel/labs/adocs/gradle-variant-aware-dependency-resolution/examples/binarylevel/build.gradle' line: 30
* What went wrong:
A problem occurred configuring project ':binarylevel'.
> Exception thrown while executing model rule: model.components
#from boot2docker or your host
docker@boot2docker:~$ docker run -it -v /Users/gscheibel/labs/adocs/:/documents/ asciidoctor/docker-asciidoctor
#once inside of the container
[root@0fb713cf627f documents]# lazybones create asciidoctor-revealjs 1.0.0 testRevealJS
asciidoctor: FAILED: /documents/test.adoc: Failed to parse source, Ditaa image generation failed: java.lang.NullPointerException
at sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:779)
at sun.font.SunFontManager$2.run(SunFontManager.java:433)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.SunFontManager.<init>(SunFontManager.java:376)
at sun.awt.X11FontManager.<init>(X11FontManager.java:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
@gscheibel
gscheibel / bio
Created May 18, 2015 10:13
aboutme
Guillaume is working as software engineer at Expedia in London. He also has contributed to open source projects like Hibernate OGM, Infinispan and more recently to the Asciidoctor ecosystem. He has been nominated JBoss Hero in 2015 and sometimes he speaks at conferences (Devoxx BE and FR Soft-shake) or JUGs.