stianh / gradle-jaxb-plugin

Gradle plugin for generating jaxb classes.
17 stars 11 forks source link

Usage #26

Open jvsrvcs opened 10 years ago

jvsrvcs commented 10 years ago

When I added just this:

apply plugin: 'jaxb'

buildscript { repositories { mavenLocal() mavenCentral()

    maven {
        credentials {
            username ""
            password ""
        }
        url "https://myrepo.mycomp.com"
    }
}
dependencies {
    classpath 'no.entitas.gradle.jaxb:gradle-jaxb-plugin:2.0'
}

}

dependencies { compile 'org.springframework:spring-core:4.0.6.RELEASE' compile 'org.springframework:spring-context:4.0.6.RELEASE' compile 'org.apache.commons:commons-email:1.3.3' // why does not begin with 'compile'? jaxb 'com.sun.xml.bind:jaxb-xjc:2.2.4-1'

// QA
testCompile 'org.springframework:spring-test:4.0.6.RELEASE'
testCompile group: 'junit', name: 'junit', version: '4.+'

}

I get an error:

$ gradle build Download http://repo1.maven.org/maven2/no/entitas/gradle/jaxb/gradle-jaxb-plugin/2.0/gradle-jaxb-plugin-2.0.pom Download http://repo1.maven.org/maven2/no/entitas/gradle/jaxb/gradle-jaxb-plugin/2.0/gradle-jaxb-plugin-2.0.jar The ConfigurationContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead. The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead. :generateSchemaSource UP-TO-DATE :compileJava

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 5.852 secs