LibsDisguises/build.gradle.kts
Shane Freeder 0a3b147e5d
Do not require publish to build
This will allow the project to build without a publish. The relocation
creates some issues because the relocated jar will not exist until after
we run a first build, but, at least the build process is no longer
dependent upon the publish task running.
2024-08-06 20:49:02 +01:00

57 lines
1.2 KiB
Plaintext

plugins {
`java-library`
}
subprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
url = uri("https://repo.md-5.net/content/groups/public/")
}
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
url = uri("https://mvn.lumine.io/repository/maven-public/")
}
maven {
url = uri("https://repo.codemc.io/repository/maven-releases/")
}
maven {
url = uri("https://repo.codemc.io/repository/maven-snapshots/")
}
}
apply(plugin = "java-library")
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
disableAutoTargetJvm()
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
group = "me.libraryaddict.disguises"
version = "1.0-SNAPSHOT"
dependencies {
implementation(rootProject.libs.org.spigotmc.spigot.api)
compileOnly(rootProject.libs.org.projectlombok.lombok)
annotationProcessor(rootProject.libs.org.projectlombok.lombok)
}
}