2022-04-02 03:59:47 +00:00
|
|
|
plugins {
|
|
|
|
java
|
|
|
|
`maven-publish`
|
|
|
|
idea
|
|
|
|
}
|
|
|
|
|
2022-04-02 04:14:12 +00:00
|
|
|
group = "dev.plex"
|
2024-10-16 21:33:52 +00:00
|
|
|
version = "1.5-SNAPSHOT"
|
2022-04-02 04:14:12 +00:00
|
|
|
description = "Module-HTTPD"
|
2022-04-02 03:59:47 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2022-04-02 04:14:12 +00:00
|
|
|
|
2022-04-02 03:59:47 +00:00
|
|
|
maven {
|
2022-05-22 02:05:38 +00:00
|
|
|
url = uri("https://repo.papermc.io/repository/maven-public/")
|
2022-04-02 03:59:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
2022-04-02 04:14:12 +00:00
|
|
|
url = uri("https://nexus.telesphoreo.me/repository/plex/")
|
2022-04-02 03:59:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
url = uri("https://jitpack.io")
|
2022-06-06 03:13:20 +00:00
|
|
|
content {
|
|
|
|
includeGroup("com.github.MilkBowl")
|
|
|
|
}
|
2022-04-02 03:59:47 +00:00
|
|
|
}
|
2024-10-16 21:33:52 +00:00
|
|
|
|
|
|
|
maven { url = uri("https://maven.enginehub.org/repo/") }
|
2022-04-02 03:59:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-10-16 21:33:52 +00:00
|
|
|
implementation("org.projectlombok:lombok:1.18.34")
|
|
|
|
annotationProcessor("org.projectlombok:lombok:1.18.34")
|
|
|
|
implementation("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT")
|
|
|
|
implementation("dev.plex:server:1.5-SNAPSHOT")
|
|
|
|
implementation("org.json:json:20240303")
|
2022-04-02 03:59:47 +00:00
|
|
|
implementation("org.reflections:reflections:0.10.2")
|
2024-10-16 21:33:52 +00:00
|
|
|
implementation("org.eclipse.jetty:jetty-server:11.0.24")
|
|
|
|
implementation("org.eclipse.jetty:jetty-servlet:11.0.24")
|
|
|
|
implementation("org.eclipse.jetty:jetty-proxy:11.0.24")
|
2022-11-28 04:15:00 +00:00
|
|
|
implementation("com.github.MilkBowl:VaultAPI:1.7.1") {
|
2022-05-08 18:59:50 +00:00
|
|
|
exclude("org.bukkit", "bukkit")
|
|
|
|
}
|
2024-10-16 21:33:52 +00:00
|
|
|
implementation(platform("com.intellectualsites.bom:bom-newest:1.49")) // Ref: https://github.com/IntellectualSites/bom
|
|
|
|
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core:2.11.2")
|
|
|
|
implementation("commons-io:commons-io:2.17.0")
|
2022-05-08 18:59:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.getByName<Jar>("jar") {
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
2023-09-05 23:14:43 +00:00
|
|
|
archiveBaseName.set("Module-HTTPD")
|
2022-05-08 18:59:50 +00:00
|
|
|
archiveVersion.set("")
|
|
|
|
from("src/main/resources") {
|
|
|
|
exclude("dev/**")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
2024-10-16 21:33:52 +00:00
|
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
2022-04-02 03:59:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
compileJava {
|
2022-05-08 18:59:50 +00:00
|
|
|
options.encoding = Charsets.UTF_8.name()
|
2022-04-02 03:59:47 +00:00
|
|
|
}
|
|
|
|
javadoc {
|
2022-05-08 18:59:50 +00:00
|
|
|
options.encoding = Charsets.UTF_8.name()
|
2022-04-02 03:59:47 +00:00
|
|
|
}
|
|
|
|
processResources {
|
2022-05-08 18:59:50 +00:00
|
|
|
filteringCharset = Charsets.UTF_8.name()
|
2022-04-02 03:59:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
create<MavenPublication>("maven") {
|
|
|
|
from(components["java"])
|
|
|
|
}
|
|
|
|
}
|
2022-04-14 04:49:12 +00:00
|
|
|
}
|