maven은 잘 모르는 관계로 그동안은 저장소에서 jar파일을 다운받아 사용했었는데 

도움말 문서를 자세히 살펴보니  maven  pom.xml에서는 사용이 가능하게 되어 있다.


Where can I get the latest release?

There is currently no stable release of Imaging. However you can pull the latest SNAPSHOT from the Apache snapshot repository by adding the snapshot repository to your pom.xml:

<repository>
  <id>apache.snapshots</id>
  <name>Apache Development Snapshot Repository</name>
  <url>https://repository.apache.org/content/repositories/snapshots/</url>
  <releases>
    <enabled>false</enabled>
  </releases>
  <snapshots>
    <enabled>true</enabled>
  </snapshots>
</repository>

Then you can use the SNAPSHOT version of Commons Imaging in your pom.xml:

<dependency>
  <groupId>org.apache.commons</groupId>
  <artifactId>commons-imaging</artifactId>
  <version>1.0-SNAPSHOT</version>
<dependency>

그렇다는것은 gradle에서도 된다는건데?


잠시 구글링을 해보고  다음과 같이 repositories를 추가 한다.

repositories {
    mavenCentral()
    maven {
        url "https://repository.apache.org/content/repositories/snapshots/"
    }
}


dependencies는

compile 'org.apache.commons:commons-imaging:1.0-SNAPSHOT'


마지막 스냅샷을 잘 가져온다. 새로운 스냅샷이 등록되면 갱신이 되는지는 아직 확인 못했음


새로운 스냅샷이 등록되면 gradle refresh할 때 갱신된다.

'지식창고 > Java' 카테고리의 다른 글

eclipse neon으로 옮기면서 삽질  (0) 2016.07.15
eclipse + gradle => buildship  (0) 2016.07.04
이클립스 컬러테마 문제  (0) 2014.11.26
Sparkjava 와 Gradle 그리고 배포  (0) 2014.09.29
mybatis procedure 삽질  (0) 2014.08.28