.
This commit is contained in:
parent
0078822da1
commit
c1385924fb
2 changed files with 54 additions and 1 deletions
53
kencommandapi-bukkit/build.gradle.kts
Normal file
53
kencommandapi-bukkit/build.gradle.kts
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
val scrowToken = providers.gradleProperty("scrowMavenToken")
|
||||||
|
.orElse(providers.environmentVariable("SCROW_MAVEN_TOKEN")).get()
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("maven-publish")
|
||||||
|
id("io.freefair.lombok") version "9.2.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "de.kentoj"
|
||||||
|
version = "unspecified"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
|
||||||
|
name = "spigotmc-repo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
// https://mvnrepository.com/artifact/org.jetbrains/annotations
|
||||||
|
implementation("org.jetbrains:annotations:26.0.2-1")
|
||||||
|
implementation(project(":kencommandapi-core"))
|
||||||
|
|
||||||
|
implementation("org.spigotmc:spigot-api:1.21.11-R0.1-SNAPSHOT")
|
||||||
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
create<MavenPublication>("KenCommandAPIBukkit") {
|
||||||
|
groupId = project.group.toString()
|
||||||
|
artifactId = "kencommandapi-bukkit"
|
||||||
|
version = project.version.toString()
|
||||||
|
from(components["java"])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "scrow"
|
||||||
|
url = uri("http://forge.kentoj.de/api/packages/scrow/maven")
|
||||||
|
isAllowInsecureProtocol = true
|
||||||
|
|
||||||
|
credentials(HttpHeaderCredentials::class) {
|
||||||
|
name = "Authorization"
|
||||||
|
value = "token $scrowToken"
|
||||||
|
}
|
||||||
|
|
||||||
|
authentication {
|
||||||
|
create<HttpHeaderAuthentication>("header")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -23,7 +23,7 @@ publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("KenCommandAPI") {
|
create<MavenPublication>("KenCommandAPI") {
|
||||||
groupId = project.group.toString()
|
groupId = project.group.toString()
|
||||||
artifactId = project.name
|
artifactId = "kencommandapi-core"
|
||||||
version = project.version.toString()
|
version = project.version.toString()
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue