Giter Club home page Giter Club logo

Comments (12)

scubacabra avatar scubacabra commented on August 29, 2024

try running the examples folder in this project. It uses the 1.3.6 version. I ran that on a new machine a few weeks ago and didn't have any problems. hopefully that works and if not we can go from there.

from gradle-jaxb-plugin.

MichaelKunze avatar MichaelKunze commented on August 29, 2024

Examples use the buildscript notation. I'm talking this one:

plugins {
    id 'com.github.jacobono.jaxb' version '1.3.6'
}

from gradle-jaxb-plugin.

scubacabra avatar scubacabra commented on August 29, 2024

ah i see.

Everything is linked in bintray properly. Both jcenter and the gradle plugins portal show that 1.3.6 is linked.

https://bintray.com/gradle/gradle-plugins?filterByPkgName=gradle-jaxb-plugin

after some correspondence with the gradle guys during the 1.3.5 version change I was told nothing has to happen on version changes because

The plugin portal is more or less stateless. that's why the metadata is reparsed regulary. I guess they should just show up with the new meta data provided.

this all worked for 1.3.5 pretty seamlessly so perhaps someone on their team can be of assistance?

from gradle-jaxb-plugin.

MichaelKunze avatar MichaelKunze commented on August 29, 2024

If i compare both versions on bintray the "gradle-plugin"-property? is missing in 1.3.6. See screenshot:

image

from gradle-jaxb-plugin.

MichaelKunze avatar MichaelKunze commented on August 29, 2024

See for yourself:

https://bintray.com/djmijares/gradle-plugins/gradle-jaxb-plugin/1.3.5/view
https://bintray.com/djmijares/gradle-plugins/gradle-jaxb-plugin/1.3.6/view

from gradle-jaxb-plugin.

MateuszRasinski avatar MateuszRasinski commented on August 29, 2024

I have the same problem here. I can't use version 1.3.6 and I get the same error as @MichaelKunze.

from gradle-jaxb-plugin.

robertoschwald avatar robertoschwald commented on August 29, 2024

Same problem here. 1.3.5 works, 1.3.6 is not found.

Error:

   > Could not find com.github.jacobono.plugins:gradle-jaxb-plugin:1.3.6.
     Searched in the following locations:
         https://repo.grails.org/grails/core/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.pom
         https://repo.grails.org/grails/core/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.jar
         https://jcenter.bintray.com/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.pom
         https://jcenter.bintray.com/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.jar
         file:/Users/me/.m2/repository/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.pom
         file:/Users/me/.m2/repository/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.jar
         https://plugins.gradle.org/m2/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.pom
         https://plugins.gradle.org/m2/com/github/jacobono/plugins/gradle-jaxb-plugin/1.3.6/gradle-jaxb-plugin-1.3.6.jar

from gradle-jaxb-plugin.

warrengsmith avatar warrengsmith commented on August 29, 2024

When you specify the script block for the plugin in your build, you can use the JCenter approach to use version 1.3.6 like this:

buildscript {
  repositories {
    jcenter()
    mavenCentral()
  }
  dependencies {
    classpath 'com.github.jacobono:gradle-jaxb-plugin:1.3.6'
  }
}

If you are happy with version 1.3.5 then use the gradle plugin like this instead:

plugins {
    id 'com.github.jacobono.jaxb' version '1.3.5'
}

Both approaches work fine for me, although I agree it would be nice if the plugin would work with release 1.3.6

from gradle-jaxb-plugin.

MichaelT64 avatar MichaelT64 commented on August 29, 2024

If I follow your 1.3.6 approach I get the error message:
Could not find method jaxb() for arguments [com.sun.xml.bind:jaxb-core:2.2.11] on root project
Do I miss something?`

from gradle-jaxb-plugin.

warrengsmith avatar warrengsmith commented on August 29, 2024

If you are are trying to use JAXB 2.2.11, you might want to try different JARs (I know it took me a while to figure this out myself):

// Define JAXB2 dependencies
dependencies {
    /*
     * IMPORTANT:
     * You have to select the correct dependency group depending on your version of JAXB
     * The three dependencies I commented out below will work for all RI versions of JAXB up to 2.2.8
     * 
     * If you see java.lang.NoClassDefFoundError: com/sun/xml/bind/api/ErrorListener
         * when running the build then use the dependencies for 2.2.10 and higher.
     */ 
//   jaxb 'com.sun.xml.bind:jaxb-xjc:2.2.4'
//   jaxb 'com.sun.xml.bind:jaxb-impl:2.2.4'
//   jaxb 'javax.xml.bind:jaxb-api:2.2.4'

    /*  
     * The two dependencies below work for RI versions of JAXB after 2.2.8
     */
    jaxb 'org.glassfish.jaxb:jaxb-xjc:2.2.11'
    jaxb 'org.glassfish.jaxb:jaxb-runtime:2.2.11'
}

A full working example is on my Github repo https://github.com/warrengsmith/Blog-Examples/tree/master/JAXB_Gradle_Jacobono_XJC which uses 2.2.10

from gradle-jaxb-plugin.

michaelsproul avatar michaelsproul commented on August 29, 2024

(thanks @warrengsmith that was just what I needed)

from gradle-jaxb-plugin.

wdschei avatar wdschei commented on August 29, 2024

The OpenRepose.org updated version of this plugin is now available in the Gradle Plugins repository and is compatible with JSE7.

from gradle-jaxb-plugin.

Related Issues (20)

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.