Giter Site home page Giter Site logo

Comments (5)

wilkinsona avatar wilkinsona commented on June 25, 2024

Works for me:

[aw-rmbp master]: ./gradlew clean build
Download http://repo.spring.io/plugins-release/org/springframework/build/gradle/docbook-reference-plugin/0.2.1/docbook-reference-plugin-0.2.1.pom
Download http://repo.spring.io/plugins-release/org/springframework/build/gradle/docbook-reference-plugin/0.2.1/docbook-reference-plugin-0.2.1.jar
The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
:clean UP-TO-DATE
:analyze:clean UP-TO-DATE
:command-line:clean UP-TO-DATE
:contributions:clean UP-TO-DATE
:render:clean UP-TO-DATE
:user-guide:clean UP-TO-DATE
:util:clean UP-TO-DATE
:util:compileJava
:util:processResources UP-TO-DATE
:util:classes
:util:jar
:analyze:compileJava
:analyze:processResources UP-TO-DATE
:analyze:classes
:analyze:jar
:analyze:assemble
:analyze:compileTestJava
Download http://repo.spring.io/libs-release/org/slf4j/slf4j-simple/1.7.6/slf4j-simple-1.7.6.pom
Download http://repo.spring.io/libs-release/org/slf4j/slf4j-simple/1.7.6/slf4j-simple-1.7.6.jar
:analyze:processTestResources
:analyze:testClasses
:analyze:test
objc[34171]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
:analyze:check
:analyze:build
:render:compileJava
Download http://repo.spring.io/libs-release/org/freemarker/freemarker/2.3.19/freemarker-2.3.19.pom
Download http://repo.spring.io/libs-release/org/freemarker/freemarker/2.3.19/freemarker-2.3.19.jar
:render:processResources
:render:classes
:render:jar
:command-line:compileJava
:command-line:processResources
:command-line:classes
:command-line:jar
:command-line:assemble
:command-line:compileTestJava
:command-line:processTestResources
:command-line:testClasses
:command-line:test
objc[34178]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
:command-line:check
:command-line:build
:contributions:compileJava
:contributions:processResources
:contributions:classes
:contributions:jar
:contributions:assemble
:contributions:compileTestJava
Download http://repo.spring.io/libs-release/org/apache/geronimo/specs/geronimo-ejb_3.0_spec/1.0.1/geronimo-ejb_3.0_spec-1.0.1.pom
Download http://repo.spring.io/libs-release/org/apache/geronimo/specs/geronimo-ejb_3.0_spec/1.0.1/geronimo-ejb_3.0_spec-1.0.1.jar
:contributions:processTestResources
:contributions:testClasses
:contributions:test
objc[34186]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
:contributions:check
:contributions:build
:render:assemble
:render:compileTestJava
:render:processTestResources
:render:testClasses
:render:test
objc[34193]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
:render:check
:render:build
:util:assemble
:util:compileTestJava
:util:processTestResources
:util:testClasses
:util:test
objc[34194]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
:util:check
:util:build

BUILD SUCCESSFUL

Total time: 28.147 secs

from spring-migration-analyzer.

wilkinsona avatar wilkinsona commented on June 25, 2024

Fails on Bamboo though due to recent Sonar changes. We should fix that.

from spring-migration-analyzer.

cdelgadob avatar cdelgadob commented on June 25, 2024

For me, in order to get it to work, I had to change the file user-guide/build.gradle, from

buildscript {
    repositories {
        maven { url 'http://repo.spring.io/plugins-release' }
    }
    dependencies {
        classpath 'org.springframework.build.gradle:docbook-reference-plugin:0.2.1'
    }
}

apply plugin: 'docbook-reference'

task htmlSingle(type: HtmlSingleDocbookReferenceTask) {
    sourceDir = file('src/reference/docbook')
}

task htmlMulti(type: HtmlMultiDocbookReferenceTask) {
    sourceDir = file('src/reference/docbook')
}

task docs(dependsOn:[htmlSingle, htmlMulti])

rootProject.docsZip {
    dependsOn docs
    from ("${buildDir}/reference") {
        into (this.project.name)
    }
}

rootProject.distZip {
    dependsOn docs
    from ("${this.project.buildDir}/reference") {
        into ("${distRoot}/${this.project.name}")
    }
}

To:

buildscript {
    repositories {
        maven { url 'http://repo.springsource.org/plugins-release' }
    }
    dependencies {
        classpath 'io.spring.gradle:docbook-reference-plugin:0.3.0'
    }
}

apply plugin: 'docbook-reference'

task htmlSingle(type: HtmlSingleDocbookReferenceTask) {
    sourceDir = file('src/reference/docbook')
    sourceFileName = 'index.xml'
}

task htmlMulti(type: HtmlMultiDocbookReferenceTask) {
    sourceDir = file('src/reference/docbook')
    sourceFileName = 'index.xml'
}

task docs(dependsOn:[htmlSingle, htmlMulti])

rootProject.docsZip {
    dependsOn docs
    from ("${buildDir}/reference") {
        into (this.project.name)
    }
}

rootProject.distZip {
    dependsOn docs
    from ("${this.project.buildDir}/reference") {
        into ("${distRoot}/${this.project.name}")
    }
}

from spring-migration-analyzer.

wilkinsona avatar wilkinsona commented on June 25, 2024

Looks like you tried to build with Gradle 2.x - 0.2.1 of the docbook-reference-plugin is only compatible with 1.x. Generally speaking, you should always build with ./gradlew to ensure that the correct version of Gradle is used.

from spring-migration-analyzer.

cdelgadob avatar cdelgadob commented on June 25, 2024

All right, thanks.

Then an upgrade to Gradle 2.x will definitely help :)

from spring-migration-analyzer.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.