-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
114 lines (99 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
import java.net.URI
plugins {
`maven-publish`
signing
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
idea
eclipse
}
version = "1.53-SNAPSHOT"
subprojects {
apply {
plugin<MavenPublishPlugin>()
plugin<SigningPlugin>()
plugin<IdeaPlugin>()
plugin<EclipsePlugin>()
}
}
allprojects {
group = "com.intellectualsites.bom"
version = rootProject.version
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven {
url = uri("https://maven.enginehub.org/repo")
content {
includeGroup("org.enginehub")
includeGroup("com.sk89q")
}
}
maven {
url = uri("https://jitpack.io")
content {
includeModule("com.github.MilkBowl", "VaultAPI")
}
}
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
content {
includeModule("io.papermc", "paperlib")
includeModule("io.papermc.paper", "paper-api")
}
}
}
signing {
if (!project.hasProperty("skip.signing") && !version.toString().endsWith("-SNAPSHOT")) {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
signing.isRequired
sign(publishing.publications)
}
}
publishing {
publications {
create<MavenPublication>("maven") {
pom {
name.set(project.name + " " + project.version)
description.set("Bill of materials for IntellectualSites projects.")
url.set("https://github.com/IntellectualSites/bom")
licenses {
license {
name.set("The MIT License")
url.set("https://opensource.org/licenses/MIT")
distribution.set("repo")
}
}
developers {
developer {
id.set("NotMyFault")
name.set("Alexander Brandes")
organization.set("IntellectualSites")
organizationUrl.set("https://github.com/IntellectualSites/")
email.set("contact(at)notmyfault.dev")
}
}
scm {
url.set("https://github.com/IntellectualSites/bom")
connection.set("scm:git:https://github.com/IntellectualSites/bom.git")
developerConnection.set("scm:git:[email protected]:IntellectualSites/bom.git")
tag.set("${project.version}")
}
issueManagement{
system.set("GitHub")
url.set("https://github.com/IntellectualSites/bom/issues")
}
}
}
}
}
}
nexusPublishing {
this.repositories {
sonatype {
nexusUrl.set(URI.create("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}