Spring Initializr build.gradle: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Spring Initializr =Example= <syntaxhighlight lang='groovy'> buildscript { ext { springBootVersion = '2.0....") |
|||
Line 2: | Line 2: | ||
* [[Spring_Initializr#Build_Specification|Spring Initializr]] | * [[Spring_Initializr#Build_Specification|Spring Initializr]] | ||
* [[IntelliJ IDEA Plugin for Spring Boot#build.gradle|IntelliJ IDEA Plugin for Spring Boot]] | |||
=Example= | =Example= |
Revision as of 05:22, 8 October 2018
Internal
Example
buildscript {
ext {
springBootVersion = '2.0.5.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'playground.spring.springBootWithInitializrFromIntellij'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation('org.springframework.boot:spring-boot-starter')
runtimeOnly('org.springframework.boot:spring-boot-devtools')
compileOnly('org.projectlombok:lombok')
testImplementation('org.springframework.boot:spring-boot-starter-test')
}