Skip to content

Instantly share code, notes, and snippets.

@joemccall86
Created March 13, 2013 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemccall86/5154507 to your computer and use it in GitHub Desktop.
Save joemccall86/5154507 to your computer and use it in GitHub Desktop.
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile 'net.sf.ehcache:ehcache:2.7.0'
}
// gradle build fails to resolve ehache
<?xml version="1.0" encoding="UTF-8" ?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>net.ll86</groupId>
<artifactId>my-app</artifactId>
<version>1</version>
<repositories>
<repository>
<id>central</id>
<name>Maven Repository Switchboard</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>2.7.0</version>
</dependency>
</dependencies>
</project>
<!-- mvn compile resolves ehcache -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment