-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
80 lines (69 loc) · 2.13 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
plugins {
`kotlin-dsl`
`java-gradle-plugin`
id("com.gradle.plugin-publish") version "1.3.0"
id("net.kyori.indra") version "3.1.3"
id("net.kyori.indra.publishing") version "3.1.3"
signing
}
group = "dev.onelitefeather.glue"
val baseVersion = "0.0.3"
version = System.getenv("TAG_VERSION") ?: "$baseVersion-dev"
repositories {
mavenCentral()
maven("https://eldonexus.de/repository/maven-public/")
}
dependencies {
implementation("dev.onelitefeather:DiffPatch:1.5.3")
implementation("org.eclipse.jgit:org.eclipse.jgit:7.0.0.202409031743-r")
}
java {
withSourcesJar()
withJavadocJar()
}
kotlin {
jvmToolchain(11)
}
tasks.withType<AbstractPublishToMaven>().configureEach {
val signingTasks = tasks.withType<Sign>()
dependsOn(signingTasks)
}
gradlePlugin {
vcsUrl.set("https://github.com/OneLiteFeatherNET/Glue")
website.set("https://github.com/OneLiteFeatherNET/Glue")
plugins {
create("Glue") {
id = "dev.onelitefeather.glue"
displayName = "Plugin for glue patches together into a git repo"
description = "Glue is a Git patcher that makes file-based changes to repositories. It combines patch files and a Git sub module to a new state. \n" +
"The project is inspired by SpoftSpoon v2 from PaperMC"
tags = listOf("git", "glue", "paper", "patches")
implementationClass = "dev.onelitefeather.glue.GluePlugin"
}
}
}
indra {
publishReleasesTo("eldo", "https://eldonexus.de/repository/maven-releases/")
publishSnapshotsTo("eldo", "https://eldonexus.de/repository/maven-snapshots/")
javaVersions {
target(11)
testWith(11)
}
github("OneLiteFeatherNET", "Glue") {
ci(true)
publishing(false)
}
mitLicense()
signWithKeyFromPrefixedProperties("onelitefeather")
configurePublications {
pom {
developers {
developer {
id.set("themeinerlp")
name.set("Phillipp Glanz")
email.set("[email protected]")
}
}
}
}
}