Skip to content

Instantly share code, notes, and snippets.

@Powerrr
Created November 27, 2014 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Powerrr/949e81be93bbfe69dc8c to your computer and use it in GitHub Desktop.
Save Powerrr/949e81be93bbfe69dc8c to your computer and use it in GitHub Desktop.
sample gradle build file
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