Last active
March 11, 2017 16:58
-
-
Save djKianoosh/3bbf1aff00e723c9f6b2 to your computer and use it in GitHub Desktop.
Example gradle starter + spring mvc + some gradle tools
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
. |
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
.gradle/ | |
build/ |
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' | |
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.+' | |
} | |
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
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath group: 'net.carlosgsouza', name: 'gradle-console', version: '1.+' | |
} | |
} | |
apply plugin: carlosgsouza.ConsolePlugin |
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
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