Created
November 27, 2014 23:34
-
-
Save Powerrr/949e81be93bbfe69dc8c to your computer and use it in GitHub Desktop.
sample gradle build file
This file contains 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: 'war' | |
// maven default | |
sourceCompatibility = 1.5 | |
group = 'com.un1acker.employee' | |
version = '1.0' | |
repositories { | |
mavenCentral() | |
} | |
ext { | |
springVersion = '4.1.1.RELEASE' | |
hibernateVersion = '4.3.7.Final' | |
mysqlVersion = '5.1.27' | |
apacheConnectionPoolingVersion = '1.4' | |
} | |
dependencies { | |
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13' | |
compile 'org.codehaus.jackson:jackson-core-asl:1.9.13' | |
compile 'com.fasterxml.jackson.core:jackson-core:2.4.1' | |
compile 'com.fasterxml.jackson.core:jackson-databind:2.4.1.1' | |
// Spring | |
compile "org.springframework:spring-context:$springVersion" | |
compile "org.springframework:spring-webmvc:$springVersion" | |
compile "org.springframework:spring-orm:$springVersion" | |
// Hibernate | |
compile "org.hibernate:hibernate-core:$hibernateVersion" | |
compile "org.hibernate:hibernate-entitymanager:$hibernateVersion" | |
// Apache's Database Connection Pooling | |
compile "commons-dbcp:commons-dbcp:$apacheConnectionPoolingVersion" | |
compile "commons-pool:commons-pool:$apacheConnectionPoolingVersion" | |
// MySQL | |
compile "mysql:mysql-connector-java:$mysqlVersion" | |
// Servlet | |
providedCompile 'javax.servlet:servlet-api:2.5' | |
providedCompile 'javax.servlet.jsp:jsp-api:2.1' | |
compile 'javax.servlet:jstl:1.2' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment