Last active
December 20, 2015 21:39
-
-
Save jexchan/6199135 to your computer and use it in GitHub Desktop.
spring hadoop gradle template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
apply plugin: 'idea' | |
def versions = [ | |
hadoop : "1.2.1", | |
spring : "3.2.3.RELEASE", | |
slf4j : "1.7.5", | |
commonsLogging : "1.1.3", | |
junit : "4.11", | |
springData : "1.0.0.RELEASE", | |
guava : "14.0.1", | |
hibernate: "4.2.0.Final" | |
] | |
repositories { | |
mavenLocal() | |
mavenRepo name: "java", url: "http://download.java.net/maven/2/" | |
mavenCentral() | |
maven { url "http://repo.springsource.org/release" } | |
} | |
configurations { | |
all*.exclude module: 'commons-daemon' | |
all*.exclude module: 'activation' | |
} | |
tasks.withType(Compile) { | |
options.encoding = 'UTF-8' | |
} | |
sourceCompatibility = 1.6 | |
targetCompatibility = 1.6 | |
dependencies { | |
/* JDBC Driver */ | |
compile "mysql:mysql-connector-java:5.1.25" | |
/* Servlet */ | |
compile "javax.servlet:servlet-api:2.5" | |
compile "javax.servlet.jsp:jsp-api:2.1" | |
compile "javax.servlet:jstl:1.2" | |
/* Hibernate */ | |
compile "org.hibernate:hibernate-core:${versions.hibernate}" | |
compile "org.hibernate:hibernate-validator:5.0.1.Final" | |
compile "org.hibernate:hibernate-entitymanager:${versions.hibernate}" | |
/* Hadoop */ | |
compile "org.apache.hadoop:hadoop-client:${versions.hadoop}" | |
compile "org.apache.hadoop:hadoop-core:${versions.hadoop}" | |
/* spring */ | |
compile "org.springframework:spring-core:${versions.spring}" | |
compile "org.springframework:spring-context:${versions.spring}" | |
compile "org.springframework:spring-aop:${versions.spring}" | |
compile "org.springframework:spring-tx:${versions.spring}" | |
compile "org.springframework:spring-aspects:${versions.spring}" | |
compile "org.springframework:spring-jdbc:${versions.spring}" | |
compile "org.springframework:spring-orm:${versions.spring}" | |
compile "org.springframework:spring-web:${versions.spring}" | |
compile "org.springframework:spring-webmvc:${versions.spring}" | |
compile "org.springframework:spring-context-support:${versions.spring}" | |
/* Spring data hadoop */ | |
compile "org.springframework.data:spring-data-hadoop:${versions.springData}" | |
compile "commons-logging:commons-logging:${versions.commonsLogging}" | |
compile "org.slf4j:slf4j-api:${versions.slf4j}" | |
compile "com.google.guava:guava:${versions.guava}" | |
compile "javax.activation:activation:1.1" | |
testCompile "junit:junit:${versions.junit}" | |
testCompile "org.springframework:spring-test:${versions.spring}" | |
} | |
task wrapper(type: Wrapper) { | |
gradleVersion = '1.6' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment