CrazyAuctions/build.gradle

59 lines
1.1 KiB
Groovy
Raw Normal View History

2023-11-27 07:17:59 +01:00
plugins {
id 'java-library'
2023-11-27 07:17:59 +01:00
}
defaultTasks 'build'
2023-11-27 07:17:59 +01:00
2023-12-06 20:54:54 +01:00
assemble {
subprojects.forEach { project -> dependsOn ":${project.name}:build" }
2023-11-27 07:17:59 +01:00
doLast {
File dir = new File(rootDir, "jars")
2023-11-27 07:17:59 +01:00
if (dir.exists()) dir.delete()
2023-11-27 07:17:59 +01:00
dir.mkdirs()
copy {
2023-12-06 21:00:28 +01:00
from(project("paper").layout.buildDirectory.file("libs/${rootProject.name}-${rootProject.version}.jar").get())
into(dir)
}
2023-11-27 07:17:59 +01:00
}
}
subprojects {
apply plugin: 'java-library'
repositories {
maven { url = 'https://repo.crazycrew.us/releases' }
2023-11-27 07:17:59 +01:00
maven { url = 'https://jitpack.io' }
mavenCentral()
2023-11-27 07:17:59 +01:00
}
if (name == "paper") {
repositories {
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
}
}
2023-11-27 07:17:59 +01:00
compileJava {
options.encoding = 'UTF-8'
options.release.set(17)
}
2023-11-27 07:17:59 +01:00
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
2023-11-26 19:51:29 +01:00
}
2023-11-27 07:17:59 +01:00
}
javadoc {
options.encoding = 'UTF-8'
}
2023-11-27 07:17:59 +01:00
processResources {
filteringCharset = 'UTF-8'
}
2023-11-27 07:17:59 +01:00
}