Remove module for asciidoctorj-epub3 in favor of own project
MODIFY
asciidoctorj-distribution/build.gradle
asciidoctorj-distribution/build.gradle
@@ -12,10 +12,10 @@ dependencies {
compile(project(':asciidoctorj-api')) {
transitive = false
}
- compile(project(':asciidoctorj-epub3')) {
+
+ compile("org.asciidoctor:asciidoctorj-epub3:$asciidoctorjEpub3Version") {
transitive = false
}
-
compile("org.asciidoctor:asciidoctorj-diagram:$asciidoctorjDiagramVersion") {
transitive = false
}

DELETE
asciidoctorj-epub3/build.gradle
-dependencies {
- compile project(':asciidoctorj')
- testCompile project(path: ':asciidoctorj-arquillian-extension')
- gems("rubygems:asciidoctor-epub3:$asciidoctorEpub3GemVersion") {
- // Exclude gems provided by AsciidoctorJ core
- exclude module: 'asciidoctor'
- exclude module: 'thread_safe'
- }
-}
-
-def gemFiles = fileTree(jruby.gemInstallDir) {
- include 'specifications/*'
- include 'gems/*/lib/**'
- include 'gems/*/data/**'
-}
-
-jrubyPrepare {
- doLast {
- copy { // bundles the gems inside this artifact
- from gemFiles
- into preparedGems
- }
- }
-}

DELETE
asciidoctorj-epub3/gradle.properties
-properName=AsciidoctorJ EPUB3
-description=AsciidoctorJ EPUB3 bundles the Asciidoctor EPUB3 RubyGem (asciidoctor-epub3) so it can be loaded into the JVM using JRuby.
-version=1.5.0-alpha.8
-gem_name=asciidoctor-epub3
\ No newline at end of file

DELETE
asciidoctorj-epub3/src/test/java/org/asciidoctor/WhenEpub3BackendIsUsed.java
-package org.asciidoctor;
-
-import static org.asciidoctor.OptionsBuilder.options;
-import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertThat;
-
-import java.io.File;
-
-import org.asciidoctor.arquillian.api.Unshared;
-import org.asciidoctor.util.ClasspathResources;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.arquillian.test.api.ArquillianResource;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-@RunWith(Arquillian.class)
-public class WhenEpub3BackendIsUsed {
-
- @ArquillianResource(Unshared.class)
- private Asciidoctor asciidoctor;
-
- @ArquillianResource
- private ClasspathResources classpath;
-
- @Test
- public void epub3_should_be_rendered_for_epub3_backend() {
- File inputFile = classpath.getResource("epub-index.adoc");
- File outputFile = new File(inputFile.getParentFile(), "epub-index.epub");
- asciidoctor.convertFile(inputFile, options().safe(SafeMode.SAFE).backend("epub3").get());
- assertThat(outputFile.exists(), is(true));
- }
-
-}

DELETE
asciidoctorj-epub3/src/test/resources/content-document.adoc
-= Content Title
-Author Name
-
-[abstract]
-This is the actual content.
-
-== First Section
-
-And off we go.
\ No newline at end of file

DELETE
asciidoctorj-epub3/src/test/resources/epub-index.adoc
-= Book Title
-Author Name
-:imagesdir: images
-
-include::content-document.adoc[]
\ No newline at end of file

MODIFY
build.gradle
build.gradle
@@ -39,6 +39,7 @@ ext {
arquillianVersion = '1.1.10.Final'
arquillianSpockVersion = '1.0.0.Beta3'
asciidoctorjPdfVersion = '1.5.0-alpha.16'
+ asciidoctorjEpub3Version = '1.5.0-alpha.8.1'
asciidoctorjDiagramVersion = '1.5.10'
commonsioVersion = '2.4'
guavaVersion = '18.0'
@@ -54,7 +55,6 @@ ext {
// gem versions
asciidoctorGemVersion = project.hasProperty('asciidoctorGemVersion') ? project.asciidoctorGemVersion : '1.5.8'
- asciidoctorEpub3GemVersion = project(':asciidoctorj-epub3').version.replace('-', '.')
coderayGemVersion = '1.1.0'
codenarcVersion = '0.24.1'

MODIFY
settings.gradle
settings.gradle
@@ -4,7 +4,6 @@ include \
'asciidoctorj',
'asciidoctorj-arquillian-extension',
'asciidoctorj-api',
- 'asciidoctorj-epub3',
'asciidoctorj-distribution',
'asciidoctorj-documentation',
'asciidoctorj-wildfly-integration-test',

Remove module for asciidoctorj-epub3 in favor of own project