<@U7ULGS2A1> 1. I have installed JDK1.8 ``` C:\P...
# spring
j
@Pawel Urban 1. I have installed JDK1.8
Copy code
C:\Program Files\Java>java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

C:\Program Files\Java>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.8.0_161
2. my gradle
Copy code
buildscript {
	ext {
		kotlinVersion = '1.2.10'
		springBootVersion = '2.0.0.M7'
	}
	repositories {
		mavenCentral()
		maven { url "<https://repo.spring.io/snapshot>" }
		maven { url "<https://repo.spring.io/milestone>" }
	}
	dependencies {
		classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
		classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
		classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
	}
}

apply plugin: 'kotlin'
apply plugin: 'kotlin-spring'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

group = 'pl.app'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
compileKotlin {
	kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
	kotlinOptions.jvmTarget = "1.8"
}

repositories {
	mavenCentral()
	maven { url "<https://repo.spring.io/snapshot>" }
	maven { url "<https://repo.spring.io/milestone>" }
}


dependencies {
	compile('org.springframework.boot:spring-boot-starter-data-jpa')
	compile('org.springframework.boot:spring-boot-starter-web')
	compile('org.springframework.boot:spring-boot-starter-webflux')
	compile("org.jetbrains.kotlin:kotlin-stdlib-jre8")
	compile("org.jetbrains.kotlin:kotlin-reflect")
	runtime('com.h2database:h2')
	testCompile('org.springframework.boot:spring-boot-starter-test')
	testCompile('io.projectreactor:reactor-test')
}
c
ow... this is quite an outdated syntax...
j
@Czar This file is generated from http://start.spring.io/ I've always worked at playframwork(1.x ) and I wanted to try kotlin and spring
c
Yes, Gradle template there is outdated at the moment. Gradle did a lot of development recently, Spring isn't caught up yet. Current gradle version supports much cleaner configuration with
plugins {}
instead of
buildscript
and
apply
I have a toy app I test new kotlin/gradle developments on. You're welcome to have a look. It uses kotlin-dsl instead of groovy though, but is mostly (90% maybe?) similar to what you'd write in groovy. https://github.com/AlexCzar/db-info-demo