mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-18 17:48:14 +08:00
Add version range support for Kotlin version
Closes gh-556
This commit is contained in:
@@ -117,6 +117,14 @@ public class MainControllerIntegrationTests
|
||||
.hasSpringBootStarterTest();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void kotlinRange() {
|
||||
downloadZip("/starter.zip?style=web&language=kotlin&bootVersion=1.2.1.RELEASE")
|
||||
.isKotlinProject().isMavenProject()
|
||||
.pomAssert().hasDependenciesCount(4)
|
||||
.hasProperty("kotlin.version", "1.1");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void gradleWarProject() {
|
||||
downloadZip("/starter.zip?style=web&style=security&packaging=war&type=gradle.zip")
|
||||
|
@@ -37,7 +37,17 @@
|
||||
"dependencyManagementPluginVersion": "1.0.0.RELEASE"
|
||||
},
|
||||
"kotlin": {
|
||||
"version": null
|
||||
"defaultVersion": "1.2",
|
||||
"mappings": [
|
||||
{
|
||||
"versionRange": "[1.0.0.RELEASE,1.2.0.RELEASE)",
|
||||
"version": "1.0"
|
||||
},
|
||||
{
|
||||
"versionRange": "[1.2.0.RELEASE,1.5.0.RELEASE)",
|
||||
"version": "1.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"maven": {
|
||||
"parent": {
|
||||
|
Reference in New Issue
Block a user