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 {
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-06-03 02:28:44 +00:00
|
|
|
classpath(libs.kotlin.gradle)
|
2021-03-30 01:31:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
java
|
2022-06-03 02:28:44 +00:00
|
|
|
alias(libs.plugins.kotlin.jvm)
|
2021-03-30 01:31:22 +00:00
|
|
|
}
|
|
|
|
|
2023-09-27 14:21:20 +00:00
|
|
|
val javaVersion = JavaVersion.VERSION_17
|
|
|
|
|
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"
|
2023-09-27 14:21:20 +00:00
|
|
|
tasks.withType<JavaCompile> {
|
|
|
|
sourceCompatibility = javaVersion.majorVersion
|
|
|
|
targetCompatibility = javaVersion.majorVersion
|
|
|
|
}
|
2021-03-30 01:31:22 +00:00
|
|
|
tasks.withType<KotlinCompile> {
|
2023-09-27 14:21:20 +00:00
|
|
|
kotlinOptions.jvmTarget = javaVersion.majorVersion
|
2021-03-30 01:31:22 +00:00
|
|
|
}
|
|
|
|
}
|