-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle.kts
61 lines (52 loc) · 1.46 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
plugins {
id("com.gradle.plugin-publish") version "0.13.0"
id("me.filippov.gradle.jvm.wrapper") version("0.14.0")
`java-gradle-plugin`
kotlin("jvm") version "1.5.31"
}
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
jvmWrapper {
winJvmInstallDir = "build\\gradle-jvm"
unixJvmInstallDir = "build/gradle-jvm"
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
allWarningsAsErrors = true
apiVersion = "1.4"
languageVersion = "1.4"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
gradlePlugin {
plugins {
create("jvm-wrapper-plugin") {
id = "me.filippov.gradle.jvm.wrapper"
implementationClass = "me.filippov.gradle.jvm.wrapper.Plugin"
}
}
}
pluginBundle {
website = "https://github.com/mfilippov/gradle-jvm-wrapper"
vcsUrl = "https://github.com/mfilippov/gradle-jvm-wrapper"
description = "Allows using gradle wrapper with embedded Java"
version = "0.14.0"
(plugins) {
"jvm-wrapper-plugin" {
displayName = "Embedded JVM in gradle wrapper plugin"
tags = listOf("wrapper", "jvm", "embedded", "plugin")
}
}
}