Skip to content

Commit d481c82

Browse files
author
mani1232
committed
add repo for api
1 parent 3626cc5 commit d481c82

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

mcb-api/build.gradle.kts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
plugins {
2+
`maven-publish`
3+
}
4+
15
val productName = findProperty("product-name")!! as String
26

37
dependencies {
@@ -8,4 +12,25 @@ tasks {
812
shadowJar {
913
archiveFileName = "$productName-$version-api.jar"
1014
}
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+
}
1136
}

0 commit comments

Comments
 (0)