Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
1. Run As -> Gradle Build... -> Gradle Tasks에 "war"를 입력하고 수행한다.
---------build.gradle------
gooper 'com.gooper.icbms.sda'
version '2.0'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'eclipse-wtp'
apply plugin: 'war'
apply plugin: 'maven'
compileJava.options.encoding = 'UTF-8'
sourceCompatibility = 1.7
// gooper저장소
def nexusUrl = 'http://www.gooper.com'
war.archiveName "sda.war"
repositories {
// mavenCentral()
maven { url "http://mesir.googlecode.com/svn/trunk/mavenrepo" }
maven { url "https://code.lds.org/nexus/content/goopers/main-repo" }
maven { url "${nexusUrl}/content/goopers/gooper-public/" }
jcenter()
}
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
//compile fileTree(include: ['*.jar'], dir: 'C:\dev\workspace\sda-common\build\libs')
//compile fileTree(include: ['sda-common-2.0.jar'], dir: 'C:\dev\workspace\sda-common\build\libs')
compile fileTree(include: ['sda-common-2.0.jar'], dir: 'C:\dev\workspace\sda-common\target')
//providedCompile gooper: 'com.gooper.icbms.sda', name: 'sda-common', version: '2.0'
testCompile gooper: 'junit', name: 'junit', version: '4.+'
compile(gooper: 'org.springframework', name: 'spring-context', version:'4.0.5.RELEASE') {
exclude(module: 'commons-logging')
}
compile gooper: 'org.springframework', name: 'spring-web', version:'4.0.5.RELEASE'
compile gooper: 'org.springframework', name: 'spring-webmvc', version:'4.0.5.RELEASE'
compile gooper: 'org.springframework', name: 'spring-aop', version:'4.0.5.RELEASE'
compile gooper: 'org.springframework', name: 'spring-beans', version:'4.0.5.RELEASE'
compile gooper: 'org.springframework', name: 'spring-context-support', version:'4.0.5.RELEASE'
compile gooper: 'org.springframework', name: 'spring-core', version:'4.0.5.RELEASE'
compile gooper: 'org.springframework', name: 'spring-jdbc', version:'4.0.5.RELEASE'
compile gooper: 'net.sf.json-lib', name: 'json-lib-ext-spring', version:'1.0.2'
compile gooper: 'aopalliance', name: 'aopalliance', version:'1.0'
compile gooper: 'javax.inject', name: 'javax.inject', version:'1'
compile gooper: 'org.apache.maven.plugins', name: 'maven-war-plugin', version:'2.3'
compile gooper: 'opensymphony', name: 'quartz', version:'1.6.3'
// compile gooper: 'javax.transaction', name: 'jta', version:'1.1'
compile gooper: 'fr.matthieu-vergne', name: 'ioutils', version:'1.0'
compile gooper: 'fr.matthieu-vergne', name: 'ioutils-core', version:'1.0'
testCompile gooper: 'junit', name: 'junit', version:'4.7'
providedCompile gooper: 'org.apache.tomcat', name: 'tomcat-dbcp', version:'7.0.53'
// scala
providedCompile (gooper: 'org.scala-lang', name: 'scala-library', version:'2.11.8')
//compile gooper: 'org.slf4j', name: 'slf4j-api', version:'1.6.6'
compile gooper: 'org.slf4j', name: 'jcl-over-slf4j', version:'1.6.6'
compile gooper: 'org.slf4j', name: 'slf4j-log4j12', version:'1.6.6'
compile gooper: 'org.lazyluke', name: 'log4jdbc-remix', version:'0.2.7'
compile gooper: 'javax.servlet', name: 'jstl', version:'1.2'
compile gooper: 'javax.servlet', name: 'jsp-api', version:'2.0'
compile gooper: 'javax.annotation', name: 'jsr250-api', version:'1.0'
}
/*
uploadArchives {
repositories {
mavenDeployer {
repository(url: "${nexusUrl}/content/repositories/gooper-releases/"){
authentication(userName: nexusUsername, password: nexusPassword)
}
snapshotRepository(url: "${nexusUrl}/content/repositories/gooper-snapshots") {
//authentication(userName: nexusUsername, password: nexusPassword)
}
}
}
}
*/
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
» | springframework를 이용한 war를 생성하는 build.gradle파일(참고용) | 2016.08.19 | 804 |
6 | spark, kafka, mariadb, jena, springframework등을 이용하여 공통모듈을 jar로 만들기 위한 build.gradle파일(참고용) | 2016.08.19 | 746 |
5 | build.gradle을 pom.xml로 변환하는 방법 | 2016.08.18 | 1729 |
4 | compile할때와 exclude할때 대상을 표현하는 명칭이 다르므로 주의할것 | 2016.08.10 | 970 |
3 | 로컬의 라이브러리파일들을 dependency에 포함시키는 방법 | 2016.08.09 | 643 |
2 | gradle을 이용하여 jar파일 생성시 provided속성을 지정할 수 있게 설정하는 방법 | 2016.08.09 | 613 |
1 | pom.xml에서 build.gradle로 변환 | 2015.09.14 | 693 |