wilkinsona / project-generator

3 stars 4 forks source link

Allow the version to be specified when adding a dependency to a build #16

Closed wilkinsona closed 5 years ago

wilkinsona commented 5 years ago

Currently, the implementation only allows the dependency's group ID and artifact ID to be specified. This is built on the assumption that the version of the dependency will be managed. This assumption doesn't hold true for Kotlin projects using Spring Boot 1.5. For example, when using Maven dependencies like the following are required:

<dependency>
    <groupId>org.jetbrains.kotlin</groupId>
    <artifactId>kotlin-stdlib-jdk8</artifactId>
    <version>${kotlin.version}</version>
</dependency>
<dependency>
    <groupId>org.jetbrains.kotlin</groupId>
    <artifactId>kotlin-reflect</artifactId>
    <version>${kotlin.version}</version>
</dependency>