some build system stuff

This commit is contained in:
Ben Kerllenevich
2021-11-29 18:04:05 -05:00
parent 5ec5c2ea3d
commit 3d7df537c1
3 changed files with 34 additions and 15 deletions

View File

@@ -20,7 +20,7 @@ dependencies {
paperclip("io.papermc:paperclip:3.0.2-SNAPSHOT")
}
subprojects {
allprojects {
apply(plugin = "java")
apply(plugin = "maven-publish")
@@ -29,12 +29,22 @@ subprojects {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
}
subprojects {
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
tasks.withType<Javadoc> {
options.encoding = Charsets.UTF_8.name()
}
tasks.withType<ProcessResources> {
filteringCharset = Charsets.UTF_8.name()
}
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/groups/public/")
@@ -45,18 +55,10 @@ subprojects {
maven("https://hub.spigotmc.org/nexus/content/groups/public/")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
configure<PublishingExtension> {
repositories.maven {
name = "purpur"
url = uri("https://repo.purpurmc.org/snapshots")
credentials(PasswordCredentials::class)
}
}
}
paperweight {
serverProject.set(project(":Purpur-Server"))
serverProject.set(project(":purpur-server"))
remapRepo.set("https://maven.fabricmc.net/")
decompileRepo.set("https://files.minecraftforge.net/maven/")
@@ -71,3 +73,14 @@ paperweight {
}
}
}
allprojects {
publishing {
repositories {
maven("https://repo.purpurmc.org/snapshots") {
name = "purpur"
credentials(PasswordCredentials::class)
}
}
}
}