-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
104 lines (90 loc) · 2.91 KB
/
build.gradle.kts
File metadata and controls
104 lines (90 loc) · 2.91 KB
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
102
103
104
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
kotlin("jvm") version "2.3.0"
id("java-gradle-plugin")
id("signing")
id("maven-publish")
id("com.gradle.plugin-publish") version "2.0.0"
}
project.group = "net.mayope"
dependencies {
implementation("com.beust:klaxon:5.6")
api(kotlin("stdlib"))
api(kotlin("reflect"))
implementation(gradleApi())
implementation(localGroovy())
}
repositories {
mavenCentral()
}
gradle.taskGraph.whenReady {
if (allTasks.any { it is Sign }) {
allprojects {
extra["signing.keyId"] = "5357AC31"
extra["signing.secretKeyRingFile"] = project.findProperty("signing_key_ring_file")
extra["signing.password"] = project.findProperty("signing_key_ring_file_password")
}
}
}
gradlePlugin {
website = "https://github.com/mayope/deployment-plugin"
vcsUrl = "https://github.com/mayope/deployment-plugin"
plugins {
create("deployplugin") {
group = project.group
id = "net.mayope.deployplugin"
displayName = "Mayope Deployment Plugin"
description = "Opinionated tool to deploy docker container to kubernetes using helm"
implementationClass="net.mayope.deployplugin.DeployPlugin"
tags = listOf("helm", "kubernetes", "deployment", "docker")
}
}
}
publishing {
publications {
register("mavenJava", MavenPublication::class) {
from(components["java"])
}
}
}
val publications = project.publishing.publications.withType(MavenPublication::class.java).map {
with(it.pom) {
withXml {
val root = asNode()
root.appendNode("name", "Mayope Deployment Plugin")
root.appendNode("description", "Opinionated tool to deploy docker container to kubernetes using helm")
root.appendNode("url", "https://github.com/mayope/deployment-plugin")
}
licenses {
license {
name.set("MIT License")
url.set("https://github.com/mayope/deployment-plugin")
distribution.set("repo")
}
}
developers {
developer {
id.set("klg71")
name.set("Lukas Meisegeier")
email.set("MeisegeierLukas@gmx.de")
}
}
scm {
url.set("https://github.com/mayope/deployment-plugin")
connection.set("scm:git:git://github.com/mayope/deployment-plugin.git")
developerConnection.set("scm:git:ssh://git@github.com/mayope/deployment-plugin.git")
}
}
}
signing{
sign(publishing.publications["mavenJava"])
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class.java).all {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_23)
}
}
java {
sourceCompatibility = JavaVersion.VERSION_23
targetCompatibility = JavaVersion.VERSION_23
}