Maven snapshot dependencies with gradle?

(Markus Schneider) #1

Hi list,

I have a problem to map the following pom to a gradle build file.The example test runs without any problems by using maven but with gradle I can’t get it up and running.I think it has something to do with the snapshot dependency but I’m

not sure maybe anybody has an idea how to solve this. Sample Project is available here:

  <?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""
      <name>JBoss Public Repository Group</name>
  <name>Drools API examples - Default KieSession</name>
  apply plugin: 'java'
apply plugin: 'eclipse'
  repositories {
    maven {
         url ""
  dependencies {
    compile 'org.kie:kie-parent-with-dependencies:6.1.0-SNAPSHOT'
    compile 'org.drools:drools-compiler:6.1.0-SNAPSHOT'
    testCompile 'junit:junit:[4.8,)'

Thanks in advance


(Peter Niederwieser) #2

‘kie-parent-with-dependencies’ is a BOM, which isn’t supported by Gradle. You’ll have to explicitly list the (direct) dependencies that you need.

(Markus Schneider) #3

Thank you very much Peter for the fast reply.