mirror of
https://github.com/barkeser2002/MapEngine.git
synced 2026-09-25 00:10:03 +03:00
54 lines
1.4 KiB
Kotlin
54 lines
1.4 KiB
Kotlin
plugins {
|
|
id("java-library")
|
|
id("maven-publish")
|
|
|
|
id("io.papermc.paperweight.userdev") version "2.0.0-beta.17" apply false
|
|
id("com.gradleup.shadow") version "8.3.6"
|
|
}
|
|
|
|
tasks["jar"].enabled = false
|
|
|
|
allprojects {
|
|
apply(plugin = "java-library")
|
|
apply(plugin = "maven-publish")
|
|
|
|
group = "de.pianoman911"
|
|
version = "1.8.11"
|
|
|
|
repositories {
|
|
maven("https://repo.minceraft.dev/public/")
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
options.compilerArgs.add("-Xlint:deprecation")
|
|
options.compilerArgs.add("-Xlint:unchecked")
|
|
}
|
|
|
|
tasks.withType<Javadoc> {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
publishing {
|
|
publications.create<MavenPublication>("maven${project.name}") {
|
|
artifactId = "${rootProject.name}-${project.name}".lowercase()
|
|
from(components["java"])
|
|
}
|
|
repositories.maven("https://repo.minceraft.dev/releases/") {
|
|
name = "minceraft"
|
|
authentication { create<BasicAuthentication>("basic") }
|
|
credentials(PasswordCredentials::class)
|
|
}
|
|
}
|
|
}
|