mirror of
https://github.com/barkeser2002/Boiler.git
synced 2026-09-25 00:59:58 +03:00
56 lines
1.3 KiB
Kotlin
56 lines
1.3 KiB
Kotlin
plugins {
|
|
id("java-library")
|
|
id("maven-publish")
|
|
|
|
id("io.papermc.paperweight.userdev") version "1.7.1" apply false
|
|
id("io.github.goooler.shadow") version "8.1.7"
|
|
}
|
|
|
|
tasks["jar"].enabled = false
|
|
|
|
allprojects {
|
|
apply(plugin = "java-library")
|
|
apply(plugin = "maven-publish")
|
|
|
|
group = "net.somewhatcity"
|
|
version = "3.0.2"
|
|
|
|
repositories {
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
maven("https://repo.thejocraft.net/releases/") {
|
|
name = "tjcserver"
|
|
}
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
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 {
|
|
mavenLocal()
|
|
}
|
|
repositories.maven("https://repo.somewhatcity.net/releases") {
|
|
name = "somewhatcity"
|
|
authentication { create<BasicAuthentication>("basic") }
|
|
credentials(PasswordCredentials::class)
|
|
}
|
|
}
|
|
}
|
|
|
|
|