Raxen/build.gradle

125 lines
3.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 "7.1.2"
id "io.papermc.paperweight.userdev" version "1.3.5"
2022-01-06 10:24:01 +00:00
}
apply plugin: "java"
apply plugin: "io.papermc.paperweight.userdev"
repositories {
mavenLocal()
maven {
url = uri('https://jitpack.io')
}
maven {
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 {
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 {
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
maven {
url = 'https://repo.citizensnpcs.co/'
}
maven {
url = "https://repo.onarandombox.com/content/groups/public/"
}
mavenCentral()
2022-01-06 10:24:01 +00:00
}
dependencies {
// lombok stuff
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
// mongo stuff
implementation 'org.mongodb:mongodb-driver-sync:4.5.1'
implementation 'org.mongodb:bson:4.5.1'
implementation 'org.mongodb:mongodb-driver-core:4.5.1'
2022-01-06 10:24:01 +00:00
2022-03-19 23:35:06 +00:00
implementation 'de.tr7zw:item-nbt-api-plugin:2.9.2'
compileOnly 'io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT'
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-03-19 23:35:06 +00:00
compileOnly 'net.essentialsx:EssentialsX:2.19.4'
compileOnly 'com.fastasyncworldedit:FastAsyncWorldEdit-Core:2.1.2'
compileOnly 'com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit:2.1.2'
compileOnly 'me.clip:placeholderapi:2.11.1'
compileOnly 'net.citizensnpcs:citizens-main:2.0.29-SNAPSHOT'
compileOnly 'com.onarandombox.multiversecore:Multiverse-Core:4.3.1'
2022-01-06 10:24:01 +00:00
compileOnly fileTree(dir: 'libs', include: '*.jar')
2022-03-19 23:35:06 +00:00
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.18.2-R0.1-SNAPSHOT")
2022-01-06 10:24:01 +00:00
}
group = 'gq.unurled'
2022-05-31 12:32:50 +00:00
version = '0.5.3'
2022-01-06 10:24:01 +00:00
description = 'Raxen'
java.sourceCompatibility = JavaVersion.VERSION_17
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks {
assemble {
dependsOn(reobfJar)
}
}
shadowJar {
dependencies {
2022-03-19 23:35:06 +00:00
include dependency('de.tr7zw:item-nbt-api-plugin:2.9.2')
include dependency('org.mongodb:mongodb-driver-sync:4.5.1')
include dependency('org.mongodb:bson:4.5.1')
include dependency('org.mongodb:mongodb-driver-core:4.5.1')
2022-01-06 10:24:01 +00:00
}
relocate("de.tr7zw.changeme", "gq.unurled.libs.de.tr7zw")
relocate("de.tr7zw", "gq.unurled.libs.de.tr7zw")
relocate("com.mongodb", 'gq.unurled.libs.com.mongodb')
relocate("org.bson", 'gq.unurled.libs.org.bson')
processResources {
expand version: project.version
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
2022-01-06 10:24:01 +00:00
}