Skip to content

Instantly share code, notes, and snippets.

@scheakur
Created July 12, 2014 00:15
Show Gist options
  • Save scheakur/0dc2566863703abf97f3 to your computer and use it in GitHub Desktop.
Save scheakur/0dc2566863703abf97f3 to your computer and use it in GitHub Desktop.
Spring Boot + Spring Loaded + Gradle + IntelliJ IDEA = Awesome
buildscript {
repositories {
mavenCentral()
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.4.RELEASE")
classpath("org.springframework:springloaded:1.2.0.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
apply plugin: 'idea'
jar {
baseName = 'springboot-example'
version = '0.0.1-SNAPSHOT'
}
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
repositories {
mavenCentral()
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
testCompile("org.springframework.boot:spring-boot-starter-test")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment