Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Add spring-boot sample #743

Closed
wants to merge 37 commits into from
Closed

Add spring-boot sample #743

wants to merge 37 commits into from

Conversation

ramsrib
Copy link

@ramsrib ramsrib commented Mar 5, 2018

Context

Added spring-boot sample which is missing in the present kotlin-dsl samples.

Contributor Checklist

  • Base the PR against the develop branch
  • Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
  • Provide integration tests to verify changes from a user perspective
  • Provide unit tests to verify logic
  • Ensure that tests pass locally: ./gradlew check --parallel

bamboo and others added 30 commits July 27, 2017 15:30
Make master represent 0.11.1 and use now released Gradle 4.2
And don't bother to request auto-applied plugins either.
Merge v0.12.2 on `master` and use Gradle 4.3-RC3
And project.property() in favor of project.objects.property()

Take the opportunity and rename to messageProperty
Merge pull request gradle#582 from gradle/bamboo/master/v0.12.3
Replaced by DCO
 Merge v0.13.1 into master and upgrade wrappers to Gradle 4.4
@JLLeitschuh
Copy link
Contributor

I think you need to rebase your changes on develop.

val kotlinVersion = "1.2.21"
id("org.springframework.boot") version "2.0.0.RELEASE"
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be replaced with kotlin("plugin.spring") version kotlinVersion
(same for jvm of course)

}
}

val test by tasks.getting(Test::class) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be also (tasks.findByName("test") as Test).useJUnitPlatform().
From my point of view it looks better... But don't know 🤷‍♂️

dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.kotlin:kotlin-reflect")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can here use kotlin() as well:

compile(kotlin("stdlib-jdk8"))
compile(kotlin("reflect"))

@ramsrib
Copy link
Author

ramsrib commented Mar 9, 2018

I created this patch from master, so i'll drop this PR and create one from develop branch to avoid conflicts.

Also i'll include the review comments in that new PR (#746).

@ramsrib ramsrib closed this Mar 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants