-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
60 lines (50 loc) · 1.68 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.0"
id("java-gradle-plugin")
id("maven-publish")
id("com.gradle.plugin-publish").version("1.2.1")
}
group = "com.redock.classpathtofile"
version = "0.1.0"
kotlin {
compilerOptions {
apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)
}
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}
repositories {
mavenCentral()
}
dependencies {
compileOnly(gradleApi())
implementation("org.jetbrains.kotlin:kotlin-stdlib:2.0.0")
testCompileOnly(gradleTestKit())
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.2")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.10.2")
}
gradlePlugin {
website = "https://github.com/redocksoft/classpath-to-file-gradle-plugin"
vcsUrl = "https://github.com/redocksoft/classpath-to-file-gradle-plugin.git"
plugins {
create("classpathToFilePlugin") {
id = "com.redock.classpathtofile"
displayName = "com.redock.classpathtofile"
description = "Fix for Windows long classpath issue. For JDK9+, fixes JavaExec/Test tasks that error with message: \"CreateProcess error=206, The filename or extension is too long\""
implementationClass = "com.redock.classpathtofile.plugin.ClasspathToFilePlugin"
tags = listOf("classpath-issue", "windows-gradle-long-classpath", "javaexec-task", "createprocess error=206")
}
}
}
tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL
}