File tree Expand file tree Collapse file tree 4 files changed +40
-19
lines changed
kotlin/com/example/kotlin
test/java/com/example/java Expand file tree Collapse file tree 4 files changed +40
-19
lines changed Original file line number Diff line number Diff line change 1
- buildscript {
2
- ext {
3
- springBootVersion = ' 2.1.3.RELEASE'
4
- }
5
- repositories {
6
- mavenCentral()
7
- }
8
- dependencies {
9
- classpath(" org.springframework.boot:spring-boot-gradle-plugin:${ springBootVersion} " )
10
- }
1
+ plugins {
2
+ id ' org.springframework.boot' version ' 2.1.3.RELEASE'
3
+ id ' org.jetbrains.kotlin.jvm' version ' 1.2.71'
4
+ id ' org.jetbrains.kotlin.plugin.spring' version ' 1.2.71'
11
5
}
12
6
13
- apply plugin : ' java'
14
- apply plugin : ' eclipse'
15
- apply plugin : ' org.springframework.boot'
16
7
apply plugin : ' io.spring.dependency-management'
17
8
18
9
group = ' com.example'
19
10
version = ' 0.0.1-SNAPSHOT'
20
- sourceCompatibility = 1.8
11
+ sourceCompatibility = ' 1.8'
21
12
22
13
repositories {
23
14
mavenCentral()
24
15
}
25
16
26
17
dependencies {
27
- compile(" org.springframework.boot:spring-boot-starter-webflux" )
28
- testCompile(" org.springframework.boot:spring-boot-starter-test" )
29
- }
18
+ implementation ' org.springframework.boot:spring-boot-starter-webflux'
19
+ implementation ' com.fasterxml.jackson.module:jackson-module-kotlin'
20
+ implementation ' org.jetbrains.kotlin:kotlin-reflect'
21
+ implementation ' org.jetbrains.kotlin:kotlin-stdlib-jdk8'
22
+
23
+ testImplementation ' org.springframework.boot:spring-boot-starter-test'
24
+ }
25
+
26
+ compileKotlin {
27
+ kotlinOptions {
28
+ freeCompilerArgs = [' -Xjsr305=strict' ]
29
+ jvmTarget = ' 1.8'
30
+ }
31
+ }
32
+
33
+ compileTestKotlin {
34
+ kotlinOptions {
35
+ freeCompilerArgs = [' -Xjsr305=strict' ]
36
+ jvmTarget = ' 1.8'
37
+ }
38
+ }
Original file line number Diff line number Diff line change 1
- package com .example ;
1
+ package com .example . java ;
2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
Original file line number Diff line number Diff line change
1
+ package com.example.kotlin
2
+
3
+ import org.springframework.boot.autoconfigure.SpringBootApplication
4
+ import org.springframework.boot.runApplication
5
+
6
+ @SpringBootApplication
7
+ class SpringBootAsyncApplication
8
+
9
+ fun main (args : Array <String >) {
10
+ runApplication<SpringBootAsyncApplication >(* args)
11
+ }
12
+
Original file line number Diff line number Diff line change 1
- package com .example ;
1
+ package com .example . java ;
2
2
3
3
import com .example .java .service .BasicService ;
4
4
import org .junit .Test ;
You can’t perform that action at this time.
0 commit comments