53 lines
1.1 KiB
Groovy
53 lines
1.1 KiB
Groovy
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
buildscript {
|
|
ext.kotlin_version = "2.0.21"
|
|
ext.jvm_version = 21
|
|
ext.kotlinter_version = "3.15.0"
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id 'application'
|
|
id 'org.jetbrains.kotlin.jvm' version "$kotlin_version"
|
|
id 'org.jmailen.kotlinter' version "$kotlinter_version"
|
|
}
|
|
|
|
group = 'uk.ac.ic.doc'
|
|
version = '1.0.0'
|
|
|
|
description = """Kotlin Collections"""
|
|
|
|
tasks.withType(KotlinCompile).configureEach {
|
|
kotlinOptions {
|
|
jvmTarget = "$jvm_version"
|
|
freeCompilerArgs = ["-Xjvm-default=all-compatibility"]
|
|
}
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(jvm_version))
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
testImplementation 'junit:junit:4.13.2'
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
|
|
}
|
|
|
|
test {
|
|
include "**/*Tests.class"
|
|
testLogging {
|
|
events "PASSED", "FAILED", "SKIPPED"
|
|
}
|
|
}
|