Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
@Grab(group='org.codehaus.gpars', module='gpars', version='1.01.0')

Snapshots

Code Block
@GrabResolver(name='gpars', root='http://snapshots.repository.codehaus.org/', m2Compatible=true)
@Grab(group='org.codehaus.gpars', module='gpars', version='1.12-SNAPSHOT')

Grape config (optional)

...

Code Block
repositories {
    mavenCentral()

    //add repositories for optional dependencies
    mavenRepo urls: ['http://repository.jboss.org/maven2/']
}

dependencies {
    compile "org.codehaus.gpars:gpars:1.1.0.12"
}

Snapshots

Code Block
repositories {
    mavenRepo urls: ["http://snapshots.repository.codehaus.org/"]

    //add repositories for optional dependencies
    mavenRepo urls: ['http://repository.jboss.org/maven2/']
}
dependencies {
    compile "org.codehaus.gpars:gpars:01.122-SNAPSHOT"
}

Maven

To include GPars in your project add the following (optional) repositories and dependencies into your project:

...

Sample maven-based Java API demo project

You may also like a stand-alone maven-based Java API sample project showing how to use GPars from Java and how to integrate GPars with Maven.

...

Code Block
<repositories>
        <repository>
            <id>jboss</id>
            <url>http://repository.jboss.org/maven2/</url>
        </repository>
        <repository>
            <id>codehaus.snapshots</id>
            <url>http://snapshots.repository.codehaus.org</url>
        </repository>
</repositories>

    <dependencies>
        <dependency>
            <groupId>org.codehaus.gpars</groupId>
            <artifactId>gpars</artifactId>
            <version>0<version>1.122-SNAPSHOT</version>
        </dependency>
    </dependencies>

...

Code Block
repositories {
    mavenCentral()
    //  mavenRepo 'http://snapshots.repository.codehaus.org'  //enable if using GPars snapshots
    mavenRepo 'http://repository.jboss.org/maven2/'
}
dependencies {
    build 'org.codehaus.gpars:gpars:1.1.0.12'
}

Griffon

Using the Griffon built-in dependency management:

Code Block
griffon.project.dependency.resolution = {
    inherits "global"

    default dependencies
        repositories {
            griffonHome()
            mavenCentral()
        }
        dependencies {
            runtime org.codehaus.gpars:gpars:1.1.0.12
        }
    }
}

You may also consider using the plugins to enable GPars for older Griffon versions

...