Skip to content

Snapshots

Sam edited this page Apr 14, 2015 · 9 revisions

About Snapshots

For users who don't want to wait for the next version of Glide and are willing to live on the bleeding edge, we deploy snapshot versions of the library to Sonatype's snapshot repo.

After each push to the master branch on GitHub, Glide is built by travis-ci. If the build succeeds, we automatically deploy the latest version of the library to Sonatype.

Each integration library will have its own snapshot, as will the main Glide library. If you use a snapshot version of the Glide library you must also use the snapshot versions of any integration libraries you use as well, and vice versa.

Obtaining Snapshots

Sonatype's snapshot repo functions as any other maven repo would, so snapshots are accessible as a jar, in maven, or in gradle.

Jar

Jars can be downloaded directly from Sonatype. Double check the date to make sure you're getting the latest version.

Gradle

Add the snapshot repo to your list of repositories:

repositories {
  jcenter()
  maven {
    url 'http://oss.sonatype.org/content/repositories/snapshots'
  }
}

And then change your dependencies to the snapshot version:

dependencies {
  compile "com.github.bumptech.glide:glide:3.6.0-SNAPSHOT"
  compile "com.github.bumptech.glide:okhttp-integration:1.3.0-SNAPSHOT"
}

Maven

Add the following to your ~/.m2/settings.xml:

<profiles>
  <profile>
     <id>allow-snapshots</id>
     <activation><activeByDefault>true</activeByDefault></activation>
     <repositories>
       <repository>
         <id>snapshots-repo</id>
         <url>https://oss.sonatype.org/content/repositories/snapshots</url>
         <releases><enabled>false</enabled></releases>
         <snapshots><enabled>true</enabled></snapshots>
       </repository>
     </repositories>
   </profile>
</profiles>

Then change your dependencies to the snapshot version:

<dependency>
  <groupId>com.github.bumptech.glide</groupId>
  <artifactId>glide</artifactId>
  <version>3.6.0-SNAPSHOT</version>
</dependency>
<dependency>
  <groupId>com.github.bumptech.glide</groupId>
  <artifactId>okhttp-integration</artifactId>
  <version>1.3.0-SNAPSHOT</version>
</dependency>
Clone this wiki locally