-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
101 lines (86 loc) · 2.32 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
plugins {
id("com.diffplug.spotless") version "6.25.0"
kotlin("jvm") version "1.9.25"
id("org.jetbrains.dokka") version "1.9.20"
`java-gradle-plugin`
id("com.gradle.plugin-publish") version "1.3.0"
id("net.kyori.indra") version "3.1.3"
id("net.kyori.indra.git") version "3.1.3"
id("net.kyori.indra.publishing.gradle-plugin") version "3.1.3"
`kotlin-dsl`
}
group = "com.xpdustry"
version = "2.0.1" + if (indraGit.headTag() == null) "-SNAPSHOT" else ""
description = "Gradle plugin handling Kotlin metadata relocation for Shadow"
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
compileOnly(gradleApi())
compileOnly("com.gradleup.shadow:shadow-gradle-plugin:8.3.5")
implementation("org.ow2.asm:asm:9.7.1")
implementation("org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.9.0")
}
signing {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
}
spotless {
kotlin {
ktfmt().dropboxStyle()
licenseHeaderFile(file("HEADER.txt"))
indentWithSpaces(4)
trimTrailingWhitespace()
endWithNewline()
}
kotlinGradle {
ktlint()
}
}
indra {
javaVersions {
target(8)
minimumToolchain(17)
}
publishSnapshotsTo("xpdustry", "https://maven.xpdustry.com/snapshots")
publishReleasesTo("xpdustry", "https://maven.xpdustry.com/releases")
mitLicense()
github("xpdustry", "kotlin-shadow-relocator") {
ci(true)
issues(true)
scm(true)
}
configurePublications {
pom {
organization {
name.set("Xpdustry")
url.set("https://www.xpdustry.com")
}
developers {
developer {
id.set("Phinner")
timezone.set("Europe/Brussels")
}
}
}
}
}
kotlin {
explicitApi()
}
indraPluginPublishing {
website("https://github.com/xpdustry/kotlin-shadow-relocator")
plugin(
project.name,
"com.xpdustry.ksr.KotlinShadowRelocatorPlugin",
"KSR",
project.description,
listOf("kotlin", "shade", "fatjar", "uberjar"),
)
}
tasks.javadocJar {
dependsOn(tasks.dokkaHtml)
from(tasks.dokkaHtml)
}