Gradle: Kann Hibernate als Abhängigkeit integrieren
Frage
Ich will nur Hibernate als Abhängigkeit in meinem Build integrieren. Aber anstatt alle Submodule der Integration I desided das ganze Hibernate Projekt integrade (org.hibernate:hibernate:3.5.1-Final
)
Das Problem:. Keine Module wo geladen
Mein build.gradle
repositories {
mavenCentral()
mavenRepo urls: "http://repository.jboss.org/nexus/content/groups/public-jboss"
}
dependencies {
compile "org.hibernate:hibernate:3.5.1-Final"
}
Ausgabe von gradle build
Download http://repository.jboss.org/nexus/content/groups/public-jboss/org/hibernate/hibernate/3.5.1-Final/hibernate-3.5.1-Final.pom
Download http://repository.jboss.org/nexus/content/groups/public-jboss/org/hibernate/hibernate-parent/3.5.1-Final/hibernate-parent-3.5.1-Final.pom
Irgendwelche Ideen?
Lösung
You'll have to specify submodules like these declarations from a working project https://github.com/nabeelalimemon/Gradle-enterprise-multiProject-/blob/master/domain/build.gradle
hibernateVersion = '3.6.0.Final' though.
Then you'll come across issues like slf4j/log4j provision etc and for that just take a look at the master build.gradle of the same hosted project.
Andere Tipps
Two things:
1) You said 3.5.1-Final in the heading of your question, but it says 3.5.3-Final in your build.gradle. 2) Try to switch "public-jboss" by just "public" in the maven repo URL
The final URL will look like this:
or