This commit is contained in:
parent
6fa9824ef8
commit
c7b2e78eb5
6 changed files with 20 additions and 34 deletions
|
@ -1,16 +1,19 @@
|
|||
import org.gradle.api.artifacts.repositories.AuthenticationSupported
|
||||
import org.gradle.authentication.http.HttpHeaderAuthentication
|
||||
import org.gradle.api.credentials.HttpHeaderCredentials
|
||||
|
||||
plugins {
|
||||
java
|
||||
`maven-publish`
|
||||
id("com.gradleup.shadow") version "9.0.0-beta4"
|
||||
id("io.papermc.paperweight.userdev") version "2.0.0-beta.10"
|
||||
id("io.papermc.paperweight.userdev") version "2.0.0-beta.17"
|
||||
id("org.sonarqube") version "5.1.0.4882"
|
||||
}
|
||||
|
||||
group = "me.unurled"
|
||||
version = "0.2.0"
|
||||
version = "0.3.0"
|
||||
|
||||
val mcVersion = "1.21.4-R0.1-SNAPSHOT"
|
||||
val lampVersion = "4.0.0-beta.17"
|
||||
|
||||
val javaVersion = 23
|
||||
|
||||
|
@ -22,10 +25,6 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
paperweight.paperDevBundle(mcVersion)
|
||||
implementation("io.github.revxrsal:lamp.common:${lampVersion}")
|
||||
implementation("io.github.revxrsal:lamp.bukkit:${lampVersion}")
|
||||
implementation("io.github.revxrsal:lamp.brigadier:${lampVersion}")
|
||||
implementation("io.github.revxrsal:lamp.paper:${lampVersion}")
|
||||
}
|
||||
|
||||
java {
|
||||
|
@ -66,11 +65,14 @@ tasks.register<Jar>("javadocJar") {
|
|||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
name = "repounurledme"
|
||||
url = uri("https://repo.unurled.me/releases")
|
||||
credentials(PasswordCredentials::class)
|
||||
name = "SacredRealms"
|
||||
url = uri("https://git.unurled.me/api/packages/SacredRealms/maven")
|
||||
credentials(HttpHeaderCredentials::class) {
|
||||
name = "Authorization"
|
||||
value = "token " + project.findProperty("mavenToken")
|
||||
}
|
||||
authentication {
|
||||
create<BasicAuthentication>("basic")
|
||||
create<HttpHeaderAuthentication>("header")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue