Skip to content

Commit 68dc517

Browse files
committed
added maven central config
1 parent d028e84 commit 68dc517

2 files changed

Lines changed: 33 additions & 3 deletions

File tree

api/build.gradle.kts

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
plugins {
22
`java-library`
33
`checkstyle`
4+
id("com.vanniktech.maven.publish") version "0.36.0"
45
}
56

67
java {
78
toolchain { languageVersion.set(JavaLanguageVersion.of(21)) }
8-
withSourcesJar()
9-
withJavadocJar()
109
}
1110

1211
repositories {
@@ -20,3 +19,34 @@ dependencies {
2019
tasks.test {
2120
useJUnitPlatform()
2221
}
22+
23+
mavenPublishing {
24+
publishToMavenCentral(automaticRelease = true)
25+
signAllPublications()
26+
27+
coordinates("dev.objz", "commandbridge-api", providers.gradleProperty("pluginVersion").get())
28+
29+
pom {
30+
name.set("CommandBridge API")
31+
description.set("Developer API for CommandBridge - cross-server command execution for Minecraft networks")
32+
url.set("https://cb.objz.dev")
33+
licenses {
34+
license {
35+
name.set("GPL-3.0-only")
36+
url.set("https://www.gnu.org/licenses/gpl-3.0.html")
37+
}
38+
}
39+
developers {
40+
developer {
41+
id.set("objz")
42+
name.set("objz")
43+
url.set("https://github.com/objz")
44+
}
45+
}
46+
scm {
47+
url.set("https://github.com/objz/CommandBridge")
48+
connection.set("scm:git:git://github.com/objz/CommandBridge.git")
49+
developerConnection.set("scm:git:ssh://git@github.com/objz/CommandBridge.git")
50+
}
51+
}
52+
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
org.gradle.configuration-cache=false
2-
pluginVersion=3.3.0
2+
pluginVersion=3.3.1
33
releaseChannel=release
44

0 commit comments

Comments
 (0)