We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3626cc5 commit d481c82Copy full SHA for d481c82
mcb-api/build.gradle.kts
@@ -1,3 +1,7 @@
1
+plugins {
2
+ `maven-publish`
3
+}
4
+
5
val productName = findProperty("product-name")!! as String
6
7
dependencies {
@@ -8,4 +12,25 @@ tasks {
8
12
shadowJar {
9
13
archiveFileName = "$productName-$version-api.jar"
10
14
}
15
16
17
+publishing {
18
+ repositories {
19
+ maven {
20
+ name = "WorldMandiaRepository"
21
+ url = uri("https://repo.worldmandia.cc/releases")
22
+ credentials(PasswordCredentials::class)
23
+ authentication {
24
+ create<BasicAuthentication>("basic")
25
+ }
26
27
28
+ publications {
29
+ create<MavenPublication>("maven") {
30
+ groupId = "cc.worldmandia"
31
+ artifactId = "mcb-api"
32
+ version = project.version.toString()
33
+ from(components["java"])
34
35
11
36
0 commit comments