-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
77 lines (63 loc) · 1.86 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
69
70
71
72
73
74
75
76
77
plugins {
kotlin("jvm")
kotlin("kapt")
id("java-gradle-plugin")
id("com.gradle.plugin-publish") version "1.1.0"
}
group = "io.github.merlinths"
version = "1.0.1"
dependencies {
api("com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:1.8.0-1.0.8")
implementation(libs.gradle.pluginApi)
implementation(gradleKotlinDsl())
testImplementation(kotlin("test"))
}
gradlePlugin {
website.set("https://github.com/MerlinTHS/KavaCompilerPlugin")
vcsUrl.set("https://github.com/MerlinTHS/KavaCompilerPlugin")
plugins {
create("kavaGradlePlugin") {
displayName = "Kava Gradle Plugin"
description = "Gradle Plugin to simplify kotlin development with Kava."
id = "io.github.merlinths.kava"
implementationClass = "io.mths.kava.gradle.KavaSubPlugin"
tags.set(
listOf("kotlin", "kava", "validation")
)
}
}
}
tasks.register("sourcesJar", Jar::class) {
group = "build"
description = "Assembles Kotlin sources"
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
dependsOn(tasks.classes)
}
publishing {
publications {
create<MavenPublication>("default") {
from(components["java"])
artifact(tasks["sourcesJar"])
pom {
name.set("Kava Gradle Plugin")
description.set("Gradle Plugin for Kava development.")
url.set("https://github.com/MerlinTHS/Kava")
developers {
developer {
name.set("Merlin Eden")
url.set("https://github.com/MerlinTHS")
}
}
}
}
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
tasks.test {
useJUnitPlatform()
}