Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

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

...

1.

...

1

...

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

Snapshots

Code Block
@GrabResolver(name='gpars', root='http://snapshots.repository.codehaus.org/', m2Compatible=true)
@Grab(group='org.codehaus.gpars', module='gpars', version='1.02-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.

And the same sample project is available for the SNAPSHOT release.

...

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

GPars Griffon plugin - griffon install-plugin gpars

Dependencies

Gpars GPars itself depends on a couple of libraries from the maven central repository. Check out the GPars public pom:

...