This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
/
build.gradle.kts
68 lines (56 loc) · 2 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import org.gradle.api.tasks.testing.logging.TestLogEvent.*
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "de.lancom.genesis"
version = "1.1.7"
val kotlinVersion = "1.7.0"
plugins {
id("org.jetbrains.kotlin.jvm") version "1.7.0"
id("maven-publish")
id("java-gradle-plugin")
id("com.gradle.plugin-publish") version "0.21.0"
}
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation(gradleApi())
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.6.21")
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.20.0")
implementation("org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-noarg:$kotlinVersion")
implementation("org.jlleitschuh.gradle:ktlint-gradle:10.3.0")
testImplementation(gradleTestKit())
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
}
gradlePlugin {
plugins {
register("kotlin") {
id = "de.lancom.genesis.kotlin"
displayName = "Lancom Genesis Kotlin Plugin"
description = "Plugin for basic configuration of Kotlin based Gradle projects"
implementationClass = "de.lancom.genesis.kotlin.KotlinPlugin"
}
}
}
pluginBundle {
website = "https://github.com/lancomsystems/genesis-kotlin"
vcsUrl = "https://github.com/lancomsystems/genesis-kotlin.git"
tags = listOf("kotlin")
}
tasks.withType(Test::class.java) {
useJUnitPlatform()
testLogging {
events = setOf(PASSED, FAILED)
}
}
tasks.withType(KotlinCompile::class.java).all {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType(JavaCompile::class.java).all {
targetCompatibility = "1.8"
}