Spring Initializr build.gradle: Difference between revisions
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
<syntaxhighlight lang='groovy'> | <syntaxhighlight lang='groovy'> | ||
//file:noinspection GradlePackageUpdate | |||
plugins { | |||
id 'org.springframework.boot' version '2.6.3' | |||
id 'io.spring.dependency-management' version '1.0.11.RELEASE' | |||
id 'java' | |||
} | } | ||
group = 'playground.smoke' | |||
version = '0.1.0-SNAPSHOT' | |||
sourceCompatibility = '11' | |||
group = 'playground. | |||
version = '0.0 | |||
sourceCompatibility = | |||
repositories { | repositories { | ||
Line 32: | Line 22: | ||
} | } | ||
dependencies { | |||
implementation 'org.springframework.boot:spring-boot-starter-web' | |||
testImplementation 'org.springframework.boot:spring-boot-starter-test' | |||
} | |||
tasks.named('test') { | |||
useJUnitPlatform() | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 23:52, 6 February 2022
Internal
Example
//file:noinspection GradlePackageUpdate
plugins {
id 'org.springframework.boot' version '2.6.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'playground.smoke'
version = '0.1.0-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}