48 lines
		
	
	
		
			923 B
		
	
	
	
		
			Groovy
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			923 B
		
	
	
	
		
			Groovy
		
	
	
		
			Executable File
		
	
	
	
	
| 
 | |
| 
 | |
| group 'com.baeldung.ktor'
 | |
| version '1.0-SNAPSHOT'
 | |
| 
 | |
| 
 | |
| buildscript {
 | |
|     ext.kotlin_version = '1.2.41'
 | |
| 
 | |
|     repositories {
 | |
|         mavenCentral()
 | |
|     }
 | |
|     dependencies {
 | |
| 
 | |
|         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
 | |
|     }
 | |
| }
 | |
| 
 | |
| apply plugin: 'java'
 | |
| apply plugin: 'kotlin'
 | |
| apply plugin: 'application'
 | |
| 
 | |
| mainClassName = 'APIServer.kt'
 | |
| 
 | |
| sourceCompatibility = 1.8
 | |
| compileKotlin { kotlinOptions.jvmTarget = "1.8" }
 | |
| compileTestKotlin { kotlinOptions.jvmTarget = "1.8" }
 | |
| 
 | |
| kotlin { experimental { coroutines "enable" } }
 | |
| 
 | |
| repositories {
 | |
|     mavenCentral()
 | |
|     jcenter()
 | |
|     maven { url "https://dl.bintray.com/kotlin/ktor" }
 | |
| }
 | |
| sourceSets {
 | |
|     main{
 | |
|         kotlin{
 | |
|             srcDirs 'com/baeldung/ktor'
 | |
|         }
 | |
|     }
 | |
| 
 | |
| }
 | |
| 
 | |
| dependencies {
 | |
|     compile "ch.qos.logback:logback-classic:1.2.1"
 | |
|     testCompile group: 'junit', name: 'junit', version: '4.12'
 | |
| } |