2021-03-30 01:31:22 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
2021-07-29 00:49:48 +00:00
|
|
|
import java.net.URI
|
2021-03-30 01:31:22 +00:00
|
|
|
|
|
|
|
buildscript {
|
2021-07-06 01:05:25 +00:00
|
|
|
val kotlinVersion: String by extra("1.5.20")
|
2021-07-29 00:49:48 +00:00
|
|
|
val ktorVersion: String by extra("1.6.1")
|
2021-03-30 01:31:22 +00:00
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
maven { url = java.net.URI("https://repo.spring.io/snapshot") }
|
|
|
|
maven { url = java.net.URI("https://repo.spring.io/milestone") }
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
|
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.2.4.RELEASE")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
java
|
2021-07-29 00:49:48 +00:00
|
|
|
kotlin("jvm") version "1.5.20"
|
2021-03-30 01:31:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
2021-07-06 01:05:25 +00:00
|
|
|
url = URI("https://repo.maven.apache.org/maven2")
|
2021-03-30 01:31:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
group = "com.wbrawner"
|
|
|
|
version = "0.0.1-SNAPSHOT"
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
|
|
kotlinOptions.jvmTarget = "14"
|
|
|
|
}
|
|
|
|
}
|