Raxen/build.gradle

151 lines
4.4 KiB
Groovy
Raw Normal View History

2022-01-06 10:24:01 +00:00
plugins {
id 'java'
id 'maven-publish'
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"
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/')
}
maven {
2022-12-28 19:48:14 +00:00
name = "PlaceHolderApi"
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
maven {
2022-12-28 19:48:14 +00:00
name = "Citizens"
url = 'https://repo.citizensnpcs.co/'
}
maven {
url = "https://repo.onarandombox.com/content/groups/public/"
}
maven {
name = "Worldedit"
url = 'https://maven.enginehub.org/repo/'
}
mavenCentral()
2022-01-06 10:24:01 +00:00
}
dependencies {
// lombok stuff
2023-06-06 15:29:01 +00:00
implementation 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
testCompileOnly 'org.projectlombok:lombok:1.18.26'
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation 'org.apache.httpcomponents:httpmime:4.5.13'
2022-01-06 10:24:01 +00:00
// mongo stuff
2023-06-06 15:29:01 +00:00
implementation 'org.mongodb:mongodb-driver-sync:4.9.1'
implementation 'org.mongodb:bson:4.9.1'
implementation 'org.mongodb:mongodb-driver-core:4.9.1'
implementation 'redis.clients:jedis:4.3.1'
2022-01-06 10:24:01 +00:00
2023-06-20 11:17:41 +00:00
compileOnly 'io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT'
implementation 'de.tr7zw:item-nbt-api-plugin:2.11.3'
// compileOnly 'de.tr7zw:item-nbt-api:2.11.2'
2023-06-06 15:29:01 +00:00
compileOnly 'com.comphenix.protocol:ProtocolLib:5.0.0'
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'
compileOnly 'com.sk89q.worldedit:worldedit-core:7.2.14'
compileOnly 'com.sk89q.worldedit:worldedit-bukkit:7.2.14'
2023-06-06 15:29:01 +00:00
compileOnly 'me.clip:placeholderapi:2.11.3'
2023-06-20 11:17:41 +00:00
compileOnly('net.citizensnpcs:citizens-main:2.0.32-SNAPSHOT') {
2022-12-28 19:48:14 +00:00
exclude group: '*', module: '*'
}
compileOnly 'com.onarandombox.multiversecore:Multiverse-Core:4.3.1'
2023-06-20 11:17:41 +00:00
implementation 'com.github.decentsoftware-eu:decentholograms:2.8.2'
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.20-R0.1-SNAPSHOT")
2022-01-06 10:24:01 +00:00
}
2022-06-09 21:27:04 +00:00
group = 'me.unurled'
2023-06-06 15:29:01 +00:00
version = '0.6.0'
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
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.release = 17
options.compilerArgs += ["-Xlint:unchecked", "-Xlint:deprecation"]
2022-01-06 10:24:01 +00:00
}
tasks {
assemble {
dependsOn(reobfJar)
}
build {
dependsOn(shadowJar)
}
2022-01-06 10:24:01 +00:00
}
shadowJar {
dependencies {
2023-06-20 11:17:41 +00:00
include dependency('de.tr7zw:item-nbt-api-plugin:2.11.3')
include dependency('de.tr7zw:item-nbt-api:2.11.3')
2023-06-06 15:29:01 +00:00
include dependency('org.mongodb:mongodb-driver-sync:4.9.1')
include dependency('org.mongodb:bson:4.9.1')
include dependency('org.mongodb:mongodb-driver-core:4.9.1')
2023-06-20 11:17:41 +00:00
include dependency('com.github.decentsoftware-eu:decentholograms:2.8.2')
2023-06-06 15:29:01 +00:00
include dependency('org.apache.httpcomponents:httpclient:4.5.13')
include dependency('org.apache.httpcomponents:httpmime:4.5.13')
include dependency('redis.clients:jedis:4.3.1')
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')
2023-06-06 15:29:01 +00:00
relocate('eu.decentsoftware', 'me.unurled.libs.eu.decentsoftware')
relocate('org.apache', 'me.unurled.libs.org.apache')
relocate('redis.clients', 'me.unurled.libs.redis.clients')
2022-01-06 10:24:01 +00:00
processResources {
expand version: project.version
}
minimize()
}
sourceSets {
main {
resources {
2023-06-06 15:29:01 +00:00
srcDirs = ['src/main/resources']
}
}
}
processResources {
exclude '**/*.schem'
}