Skip to content

Commit

Permalink
spring boot support
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMa committed Jul 21, 2016
1 parent d71919b commit fbb37f3
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 13 deletions.
14 changes: 7 additions & 7 deletions README.rst
@@ -1,10 +1,10 @@
cookiecutter-java
=================
cookiecutter-spring-boot
========================

.. _cookiecutter: https://github.com/audreyr/cookiecutter

.. image:: https://travis-ci.org/m-x-k/cookiecutter-java.svg
:target: https://travis-ci.org/m-x-k/cookiecutter-java
.. image:: https://travis-ci.org/m-x-k/cookiecutter-spring-boot.svg
:target: https://travis-ci.org/m-x-k/cookiecutter-spring-boot
:alt: Build Status

Requires
Expand All @@ -14,9 +14,9 @@ Requires
* Cookiecutter `brew install cookiecutter` or `pip install cookiecutter`
* JDK 7+

Use cookiecutter-java
---------------------
Use cookiecutter-spring-boot
----------------------------

``
cookiecutter https://github.com/m-x-k/cookiecutter-java
cookiecutter https://github.com/m-x-k/cookiecutter-spring-boot
``
2 changes: 1 addition & 1 deletion cookiecutter.json
@@ -1,5 +1,5 @@
{
"project_name": "Simple Java App",
"project_name": "Simple Spring Boot App",
"app_name": "simpleapp",
"_copy_without_render": [".gradle", "gradle/", "*gradlew", "*gradlew.bat"]
}
2 changes: 1 addition & 1 deletion {{cookiecutter.app_name}}/README.md
Expand Up @@ -22,4 +22,4 @@

```
./gradlew cleanEclipse eclipse
```
```
42 changes: 38 additions & 4 deletions {{cookiecutter.app_name}}/build.gradle
@@ -1,23 +1,57 @@
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'spring-boot'

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.3.RELEASE")
classpath 'org.springframework:springloaded:1.2.6.RELEASE'
}
}

repositories {
mavenCentral()
}

jar {
baseName = projectBaseName
version = versionLib
}

sourceCompatibility = 1.8
targetCompatibility = 1.8

dependencies {
compile("org.springframework.boot:spring-boot-starter-web") {
exclude module: "spring-boot-starter-tomcat"
}
compile("org.springframework.boot:spring-boot-starter-jetty")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-data-mongodb")
compile("org.springframework.boot:spring-boot-starter-mail")
compile("org.springframework.boot:spring-boot-starter-velocity")
compile("org.springframework.boot:spring-boot-devtools")

compile 'org.slf4j:slf4j-api:1.7.18'

testCompile 'junit:junit:4.12'
testCompile "org.mockito:mockito-core:1.+"
testCompile 'org.powermock:powermock-module-junit4:1.6.5'
testCompile 'org.powermock:powermock-api-mockito:1.6.5'
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile("junit:junit:4.12")
testCompile("org.hamcrest:hamcrest-all:1.3")
testCompile("org.mockito:mockito-all:1.10.19")
testCompile("org.powermock:powermock-mockito-release-full:1.6.4")
}

task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}

idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}

0 comments on commit fbb37f3

Please sign in to comment.