Skip to content

Importing

Giuseppe Barbieri edited this page Feb 16, 2021 · 3 revisions

Using scenery in a project

Maven artifacts

Release artifacts are currently published to the Sonatype OSS repository, and synchronised with Maven Central.

The recommended way to use non-release (unstable) builds is to use jitpack. jitpack provides better build reproducibility than using SNAPSHOT builds, as they may change at any point in time or might become unavailable. With jitpack, you can use any commit from the repository as package version.

Using scenery in a Maven project

Add scenery and ClearGL to your project's pom.xml:

<dependencies>
  <dependency>
    <groupId>graphics.scenery</groupId>
    <artifactId>scenery</artifactId>
    <version>0.7.0-beta-7</version>
  </dependency>

  <dependency>
    <groupId>net.clearvolume</groupId>
    <artifactId>cleargl</artifactId>
    <version>2.2.9</version>
  </dependency>
</dependencies>

Non-release builds / jitpack

To use jitpack, add jitpack.io to your repositories in pom.xml:

<repositories>
  <repository>
      <id>jitpack</id>
      <url>https://jitpack.io</url>
  </repository>
</repositories>

You can then use any commit from the repository as scenery version, e.g.:

<dependency>
  <groupId>graphics.scenery</groupId>
  <artifactId>scenery</artifactId>
  <version>ff4c8ddd</version>
</dependency>

Using scenery in a Gradle project

Add scenery and ClearGL to your project's build.gradle:

implementation("graphics.scenery:scenery:0.7.0-beta-7")
implementation("net.clearvolume:cleargl:2.2.9")

Non-release builds / jitpack

To use jitpack, add jitpack.io to your repositories in build.gradle:

allprojects {
    repositories {
	...
	maven ("https://jitpack.io")
    }
}

You can then use any commit from the repository as scenery version, e.g.:

dependencies {
    implementation("com.github.scenerygraphics:scenery:ff4c8ddd")
}
Clone this wiki locally