-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
123 lines (101 loc) · 3.44 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
plugins {
`java-library`
`maven-publish`
signing
id("org.cadixdev.licenser") version "0.6.1"
}
base {
archivesBaseName = "ripple"
}
allprojects {
apply(plugin = "signing")
group = "io.github.juuxel.ripple"
version = "0.4.1"
if (rootProject.file("private.gradle").exists()) {
apply(from = rootProject.file("private.gradle"))
}
afterEvaluate {
if (plugins.hasPlugin("maven-publish")) {
publishing {
publications.withType<MavenPublication> {
pom {
name.set(base.archivesBaseName)
url.set("https://github.com/Juuxel/Ripple")
licenses {
license {
name.set("Mozilla Public License Version 2.0")
url.set("https://www.mozilla.org/en-US/MPL/2.0/")
}
}
developers {
developer {
id.set("Juuxel")
name.set("Juuxel")
email.set("juuzsmods@gmail.com")
}
}
scm {
connection.set("scm:git:git://github.com/Juuxel/Ripple.git")
developerConnection.set("scm:git:ssh://github.com:Juuxel/Ripple.git")
url.set("https://github.com/Juuxel/Ripple")
}
}
}
repositories {
if (project.hasProperty("artifactoryUsername")) {
maven {
name = "Cotton"
url = uri("https://server.bbkr.space/artifactory/libs-release")
credentials {
username = project.property("artifactoryUsername").toString()
password = project.property("artifactoryPassword").toString()
}
}
} else {
println("Cannot configure artifactory; please define ext.artifactoryUsername and ext.artifactoryPassword before running artifactoryPublish")
}
}
}
if (project.hasProperty("signing.keyId")) {
signing {
sign(publishing.publications)
}
}
}
}
}
subprojects {
apply(plugin = "base")
base {
archivesBaseName = "${rootProject.base.archivesBaseName}-${this@subprojects.project.name}"
}
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
api(group = "org.cadixdev", name = "lorenz", version = "0.5.6")
api(group = "org.jetbrains", name = "annotations", version = "20.1.0")
api(group = "blue.endless", name = "jankson", version = "1.2.0")
}
tasks.jar {
from(file("LICENSE"))
}
license {
header(file("HEADER.txt"))
}
publishing {
publications.create<MavenPublication>("maven") {
artifactId = "ripple"
from(components["java"])
pom {
description.set("A processor library for deobfuscation mappings.")
}
}
}