-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.gradle.kts
77 lines (72 loc) · 2.95 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
task("clean", type = Delete::class) {
delete(layout.buildDirectory)
}
subprojects {
group = "dev.rikka.tools.refine"
version = "4.4.0"
plugins.withId("java") {
extensions.configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}
}
plugins.withId("maven-publish") {
extensions.configure<PublishingExtension> {
publications {
withType(MavenPublication::class) {
version = project.version.toString()
group = project.group.toString()
pom {
name.set("HiddenApiRefine")
description.set("A Gradle plugin that improves the experience when developing Android apps, especially system tools, that use hidden APIs.")
url.set("https://github.com/RikkaApps/HiddenApiRefinePlugin")
licenses {
license {
name.set("MIT License")
url.set("https://github.com/RikkaApps/HiddenApiRefinePlugin/blob/main/LICENSE")
}
}
developers {
developer {
name.set("Kr328 & RikkaW")
}
}
scm {
connection.set("scm:git:https://github.com/RikkaApps/HiddenApiRefinePlugin.git")
url.set("https://github.com/RikkaApps/HiddenApiRefinePlugin")
}
}
}
}
repositories {
mavenLocal()
maven {
name = "ossrh"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2")
credentials(PasswordCredentials::class.java)
}
}
}
plugins.withId("signing") {
extensions.configure<SigningExtension> {
if (findProperty("signing.gnupg.keyName") != null) {
useGpgCmd()
plugins.withId("maven-publish") {
extensions.configure<PublishingExtension> {
publications {
withType(MavenPublication::class) {
val signingTasks = sign(this)
tasks.withType(AbstractPublishToMaven::class).matching { it.publication == this }.all {
dependsOn(signingTasks)
}
}
}
}
}
}
}
}
}
}