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' ' 2.1.3.RELEASE' 
3+     id ' org.jetbrains.kotlin.jvm' ' 1.2.71' 
4+     id ' org.jetbrains.kotlin.plugin.spring' ' 1.2.71' 
115}
126
13- apply plugin : ' java' 
14- apply plugin : ' eclipse' 
15- apply plugin : ' org.springframework.boot' 
167apply plugin : ' io.spring.dependency-management' 
178
189group =  ' com.example' 
1910version =  ' 0.0.1-SNAPSHOT' 
20- sourceCompatibility =  1.8 
11+ sourceCompatibility =  ' 1.8' 
2112
2213repositories  {
2314    mavenCentral()
2415}
2516
2617dependencies  {
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 ;
22
33import  org .springframework .boot .SpringApplication ;
44import  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 ;
22
33import  com .example .java .service .BasicService ;
44import  org .junit .Test ;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments