mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
57 lines
1.4 KiB
Kotlin
57 lines
1.4 KiB
Kotlin
plugins {
|
|
id("java-library")
|
|
id("maven-publish")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
|
|
}
|
|
|
|
tasks {
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "fancypluginsReleases"
|
|
url = uri("https://repo.fancyplugins.de/releases")
|
|
credentials(PasswordCredentials::class)
|
|
authentication {
|
|
isAllowInsecureProtocol = true
|
|
create<BasicAuthentication>("basic")
|
|
}
|
|
}
|
|
|
|
maven {
|
|
name = "fancypluginsSnapshots"
|
|
url = uri("https://repo.fancyplugins.de/snapshots")
|
|
credentials(PasswordCredentials::class)
|
|
authentication {
|
|
isAllowInsecureProtocol = true
|
|
create<BasicAuthentication>("basic")
|
|
}
|
|
}
|
|
}
|
|
publications {
|
|
create<MavenPublication>("maven") {
|
|
groupId = "de.oliver"
|
|
artifactId = "FancyVisuals"
|
|
version = findProperty("fancyvisualsVersion") as String
|
|
from(project.components["java"])
|
|
}
|
|
}
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
|
|
javadoc {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
}
|
|
|
|
compileJava {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
options.release = 21
|
|
|
|
}
|
|
} |