mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-19 21:16:30 +02:00
Add maven publishing target
This commit is contained in:
parent
bf95f03a18
commit
8635906b1c
@ -17,6 +17,7 @@ plugins {
|
|||||||
id("com.github.breadmoirai.github-release") version "2.2.12"
|
id("com.github.breadmoirai.github-release") version "2.2.12"
|
||||||
kotlin("jvm") version "1.4.21"
|
kotlin("jvm") version "1.4.21"
|
||||||
id("com.github.jk1.dependency-license-report") version "1.16"
|
id("com.github.jk1.dependency-license-report") version "1.16"
|
||||||
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
@ -135,3 +136,29 @@ tasks.compileTestKotlin {
|
|||||||
freeCompilerArgs = listOf("-Xjvm-default=enable", "-Xallow-result-return-type", "-Xopt-in=kotlin.io.path.ExperimentalPathApi")
|
freeCompilerArgs = listOf("-Xjvm-default=enable", "-Xallow-result-return-type", "-Xopt-in=kotlin.io.path.ExperimentalPathApi")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (project.hasProperty("bunnycdn.token")) {
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
create<MavenPublication>("maven") {
|
||||||
|
groupId = "link.infra.packwiz"
|
||||||
|
artifactId = "packwiz-installer"
|
||||||
|
|
||||||
|
from(components["java"])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = uri("https://storage.bunnycdn.com/comp-maven")
|
||||||
|
credentials(HttpHeaderCredentials::class) {
|
||||||
|
name = "AccessKey"
|
||||||
|
value = findProperty("bunnycdn.token") as String?
|
||||||
|
}
|
||||||
|
authentication {
|
||||||
|
create<HttpHeaderAuthentication>("header")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user