반응형
gradle 을 maven 으로
build.gradle 의 내용을 pom.xml 로 옮기고 싶을때..
안될 것 같지만 된다.
http://stackoverflow.com/questions/12888490/gradle-build-gradle-to-maven-pom-xml
apply plugin: 'maven'
group = 'com.company.root'
// artifactId is taken by default, from folder name
version = '0.0.1-SNAPSHOT'
task writeNewPom << {
pom {
project {
inceptionYear '2014'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}.writeTo("pom.xml")
}
gradle writeNewPom |
------------------------
이건 두번 째 방법인것 같은데, 난 안됨 ㅋ
apply plugin: 'java'
apply plugin: 'maven'
group = 'myGroup'
// artifactId is taken by default, from folder name
version = '0.1-SNAPSHOT'
dependencies {
compile 'commons-lang:commons-lang:2.3'
}
you can call gradle install
in its folder, you will find in the build/poms subfolder, a file called pom-default.xml which will contain the dependencies. Also, the built JAR together with the POM will be in your Maven local repo.
반응형
'etc' 카테고리의 다른 글
link - data science (0) | 2014.08.14 |
---|---|
mongo db (0) | 2014.08.13 |
mvn maven 빌드, 패키징시 test 제거 (0) | 2014.08.13 |
java spring mail (0) | 2014.08.13 |
link (0) | 2014.08.13 |