Skip to content

Instantly share code, notes, and snippets.

@djKianoosh
Last active March 11, 2017 16:58
Show Gist options
  • Save djKianoosh/3bbf1aff00e723c9f6b2 to your computer and use it in GitHub Desktop.
Save djKianoosh/3bbf1aff00e723c9f6b2 to your computer and use it in GitHub Desktop.
Example gradle starter + spring mvc + some gradle tools
.gradle/
build/
apply plugin: 'java'
apply plugin: 'war'
apply from: 'console.gradle'
apply from: 'uptodate.gradle'
version = '1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.+',
'org.springframework:spring-webmvc:4.3.+',
'com.fasterxml.jackson.core:jackson-databind:2.8.+',
'com.google.guava:guava:21.+',
'joda-time:joda-time:2.9.+'
providedCompile 'javax.servlet:javax.servlet-api:3.1.0',
'javax.servlet.jsp:jsp-api:2.2'
runtime 'javax.servlet:jstl:1.2'
testCompile 'junit:junit:4.+'
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath group: 'net.carlosgsouza', name: 'gradle-console', version: '1.+'
}
}
apply plugin: carlosgsouza.ConsolePlugin
buildscript {
repositories {
jcenter()
}
dependencies {
classpath('com.ofg:uptodate-gradle-plugin:1.+')
}
}
apply plugin: com.ofg.uptodate.UptodatePlugin
uptodate {
addExcludedVersionPatterns '.*-b?\\d*$'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment