2022-01-06 10:24:01 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'maven-publish'
|
2023-04-14 20:34:00 +00:00
|
|
|
id "com.github.johnrengelman.shadow" version "8.1.1"
|
|
|
|
id "io.papermc.paperweight.userdev" version "1.5.4"
|
2022-01-06 10:24:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: "java"
|
|
|
|
apply plugin: "io.papermc.paperweight.userdev"
|
2023-04-25 14:27:23 +00:00
|
|
|
apply plugin: "com.github.johnrengelman.shadow"
|
2022-01-06 10:24:01 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
maven {
|
|
|
|
url = uri('https://jitpack.io')
|
|
|
|
}
|
|
|
|
maven {
|
2022-12-28 19:48:14 +00:00
|
|
|
name = "PaperMc"
|
2022-01-06 10:24:01 +00:00
|
|
|
url = uri('https://papermc.io/repo/repository/maven-public/')
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
url = uri('https://oss.sonatype.org/content/groups/public/')
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = 'CodeMC'
|
|
|
|
url = 'https://repo.codemc.org/repository/maven-public/'
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
url = uri('https://repo.dmulloy2.net/repository/public/')
|
|
|
|
}
|
|
|
|
maven {
|
2022-12-28 19:48:14 +00:00
|
|
|
name = "EssentialsX"
|
2022-01-06 10:24:01 +00:00
|
|
|
url = uri('https://repo.essentialsx.net/releases/')
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
url = uri('https://s01.oss.sonatype.org/content/repositories/snapshots/')
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
url = uri('https://repo.maven.apache.org/maven2/')
|
|
|
|
}
|
2022-04-03 20:01:11 +00:00
|
|
|
maven {
|
2022-12-28 19:48:14 +00:00
|
|
|
name = "PlaceHolderApi"
|
2022-04-03 20:01:11 +00:00
|
|
|
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
|
|
|
|
}
|
|
|
|
maven {
|
2022-12-28 19:48:14 +00:00
|
|
|
name = "Citizens"
|
2022-04-03 20:01:11 +00:00
|
|
|
url = 'https://repo.citizensnpcs.co/'
|
|
|
|
}
|
2022-04-07 20:35:01 +00:00
|
|
|
maven {
|
|
|
|
url = "https://repo.onarandombox.com/content/groups/public/"
|
|
|
|
}
|
2023-04-25 14:27:23 +00:00
|
|
|
maven {
|
|
|
|
name = "Worldedit"
|
|
|
|
url = 'https://maven.enginehub.org/repo/'
|
|
|
|
}
|
2022-02-25 18:57:15 +00:00
|
|
|
mavenCentral()
|
2022-01-06 10:24:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-04-07 20:35:01 +00:00
|
|
|
// lombok stuff
|
2022-05-24 09:25:35 +00:00
|
|
|
implementation 'org.projectlombok:lombok:1.18.24'
|
|
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.24'
|
|
|
|
testCompileOnly 'org.projectlombok:lombok:1.18.24'
|
2022-01-06 10:24:01 +00:00
|
|
|
|
2022-04-07 20:35:01 +00:00
|
|
|
// mongo stuff
|
2022-11-21 09:05:00 +00:00
|
|
|
implementation 'org.mongodb:mongodb-driver-sync:4.7.2'
|
|
|
|
implementation 'org.mongodb:bson:4.7.2'
|
|
|
|
implementation 'org.mongodb:mongodb-driver-core:4.7.2'
|
2022-01-06 10:24:01 +00:00
|
|
|
|
2023-04-14 20:34:00 +00:00
|
|
|
compileOnly 'io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT'
|
|
|
|
implementation 'de.tr7zw:item-nbt-api-plugin:2.11.2'
|
|
|
|
// compileOnly 'de.tr7zw:item-nbt-api:2.11.2'
|
2022-03-19 23:35:06 +00:00
|
|
|
compileOnly 'com.comphenix.protocol:ProtocolLib:4.8.0'
|
|
|
|
compileOnly 'net.luckperms:api:5.4'
|
2022-01-06 10:24:01 +00:00
|
|
|
compileOnly 'com.github.MilkBowl:VaultAPI:1.7.1'
|
2022-11-21 09:05:00 +00:00
|
|
|
compileOnly 'net.essentialsx:EssentialsX:2.19.7'
|
2023-04-25 14:27:23 +00:00
|
|
|
compileOnly 'com.sk89q.worldedit:worldedit-core:7.2.14'
|
|
|
|
compileOnly 'com.sk89q.worldedit:worldedit-bukkit:7.2.14'
|
2022-11-21 09:05:00 +00:00
|
|
|
compileOnly 'me.clip:placeholderapi:2.11.2'
|
2023-04-14 20:34:00 +00:00
|
|
|
compileOnly('net.citizensnpcs:citizens-main:2.0.31-SNAPSHOT') {
|
2022-12-28 19:48:14 +00:00
|
|
|
exclude group: '*', module: '*'
|
|
|
|
}
|
2022-04-07 20:35:01 +00:00
|
|
|
compileOnly 'com.onarandombox.multiversecore:Multiverse-Core:4.3.1'
|
2023-04-25 14:27:23 +00:00
|
|
|
compileOnly 'me.filoghost.holographicdisplays:holographicdisplays-api:3.0.2-SNAPSHOT'
|
2023-04-14 20:34:00 +00:00
|
|
|
// compileOnly fileTree(dir: 'libs', include: '*.jar')
|
|
|
|
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.4-R0.1-SNAPSHOT")
|
2022-01-06 10:24:01 +00:00
|
|
|
}
|
|
|
|
|
2022-06-09 21:27:04 +00:00
|
|
|
group = 'me.unurled'
|
2023-04-25 14:27:23 +00:00
|
|
|
version = '0.5.8'
|
2022-01-06 10:24:01 +00:00
|
|
|
description = 'Raxen'
|
2022-06-25 11:07:04 +00:00
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
|
|
}
|
|
|
|
}
|
2022-01-06 10:24:01 +00:00
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
maven(MavenPublication) {
|
|
|
|
from(components.java)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = 'UTF-8'
|
2023-04-14 20:34:00 +00:00
|
|
|
options.release = 17
|
|
|
|
options.compilerArgs += ["-Xlint:unchecked", "-Xlint:deprecation"]
|
2022-01-06 10:24:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
assemble {
|
|
|
|
dependsOn(reobfJar)
|
|
|
|
}
|
2023-04-14 20:34:00 +00:00
|
|
|
build {
|
|
|
|
dependsOn(shadowJar)
|
|
|
|
}
|
2022-01-06 10:24:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
2023-04-14 20:34:00 +00:00
|
|
|
include dependency('de.tr7zw:item-nbt-api-plugin:2.11.2')
|
|
|
|
include dependency('de.tr7zw:item-nbt-api:2.11.2')
|
2022-11-21 09:05:00 +00:00
|
|
|
include dependency('org.mongodb:mongodb-driver-sync:4.7.2')
|
|
|
|
include dependency('org.mongodb:bson:4.7.2')
|
|
|
|
include dependency('org.mongodb:mongodb-driver-core:4.7.2')
|
2022-01-06 10:24:01 +00:00
|
|
|
}
|
2022-06-09 21:27:04 +00:00
|
|
|
relocate("de.tr7zw", "me.unurled.libs.de.tr7zw")
|
|
|
|
relocate("com.mongodb", 'me.unurled.libs.com.mongodb')
|
|
|
|
relocate("org.bson", 'me.unurled.libs.org.bson')
|
2022-01-06 10:24:01 +00:00
|
|
|
processResources {
|
|
|
|
expand version: project.version
|
|
|
|
}
|
2023-04-14 20:34:00 +00:00
|
|
|
minimize()
|
2022-04-14 20:35:27 +00:00
|
|
|
}
|
|
|
|
|
2023-04-25 14:27:23 +00:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
resources {
|
|
|
|
srcDirs = ['src/main/resources', 'src/main/resources/schematics']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
exclude '**/*.schem'
|
|
|
|
}
|