Maven snapshot dependencies....

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Maven snapshot dependencies....

mschneider
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: drools6.tar.gz

pom.xml
===
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.kie</groupId>
    <artifactId>kie-parent-with-dependencies</artifactId>
    <version>6.1.0-SNAPSHOT</version>
  </parent>

  <repositories>
   
    <repository>
      <id>jboss-public-repository-group</id>
      <name>JBoss Public Repository Group</name>
      <url>http://repository.jboss.org/nexus/content/groups/public/</url>
      <layout>default</layout>
      <releases>
        <enabled>true</enabled>
        <updatePolicy>never</updatePolicy>
      </releases>
      <snapshots>
        <enabled>true</enabled>
        <updatePolicy>daily</updatePolicy>
      </snapshots>
    </repository>
  </repositories>

  <artifactId>default-kiesession</artifactId>
  <name>Drools API examples - Default KieSession</name>
  <dependencies>
    <dependency>
      <groupId>org.drools</groupId>
      <artifactId>drools-compiler</artifactId>
    </dependency>
  </dependencies>

</project>

build.gradle
===

apply plugin: 'java'
apply plugin: 'eclipse'

repositories {
    mavenCentral()
    maven {
         url "http://repository.jboss.org/nexus/content/groups/public/"
    }
}

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

-markus

Reply | Threaded
Open this post in threaded view
|

Re: Maven snapshot dependencies....

Peter Niederwieser
This list is no longer active. Please use http://forums.gradle.org instead.