Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- id 'com.github.johnrengelman.shadow' version '5.2.0'
- id "io.freefair.lombok" version "5.1.0"
- id 'java'
- }
- group = pluginGroup
- version = pluginVersion
- sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
- repositories {
- mavenCentral()
- maven { url = 'https://jitpack.io' }
- maven { url = "https://repo.aikar.co/content/groups/aikar/" }
- maven {
- url = 'https://papermc.io/repo/repository/maven-public/'
- name = 'papermc'
- }
- }
- compileJava {
- options.compilerArgs += ["-parameters"]
- options.fork = true
- options.forkOptions.executable = 'javac'
- }
- shadowJar {
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- setArchiveName('SafeChat-' + this.version + '.jar') //
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Relocations to avoid conflicts at runtime: //
- relocate 'com.zaxxer.hikari', 'me.thevipershow.safechat.libs.com.zaxxer.hikari' //
- relocate 'org.postgresql', 'me.thevipershow.safechat.libs.org.postgresql' //
- relocate 'co.aikar.commands', 'me.thevipershow.safechat.libs.acf' //
- relocate 'co.aikar.locales', 'me.thevipershow.safechat.libs.locales' //
- // relocate 'net.kyori', 'me.thevipershow.safechat.libs.net.kyori' //
- relocate 'co.aikar.idb', 'me.thevipershow.safechat.libs.idb' //
- relocate 'org.checkerframework', 'me.thevipershow.safechat.libs.checkerframework' //
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- }
- dependencies {
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Here below you can find all the dependencies regarding databases //
- // Drivers: [PostgreSQL] //
- // Connection Pool: [HikariCP] //
- compile group: 'org.postgresql', name: 'postgresql', version: '42.2.8' //
- compile('com.zaxxer:HikariCP:3.4.5') { //
- exclude group: 'org.slf4j' //
- } //
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Minecraft: here below you can find all the imported dependencies regarding minecraft //
- // By Aikar: [IDB, ACF, TaskChain] //
- // By kashike: [Text, Text-Adapter-Bukkit] //
- compile 'co.aikar:acf-paper:0.5.0-SNAPSHOT' //
- compile 'net.kyori:text-api:3.0.3' //
- compile 'co.aikar:idb-core:1.0.0-SNAPSHOT' //
- compile('net.kyori:text-adapter-bukkit:3.0.3') { //
- exclude module: 'gson' //
- exclude module: 'text-api' //
- } //
- compileOnly group: 'com.destroystokyo.paper', name: 'paper-api', version: '1.15.2-R0.1-SNAPSHOT' //
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Utilities: Lombok //
- compileOnly group: 'org.jetbrains', name: 'annotations', version: '19.0.0' //
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- }
- import org.apache.tools.ant.filters.ReplaceTokens
- /**
- * This allows the plugin to find placeholders @version@
- * and replace it with the current plugin's version
- * especially useful for Bukkit's plugin.yaml
- */
- processResources {
- from(sourceSets.main.resources.srcDirs) {
- filter ReplaceTokens, tokens: [version: version]
- }
- }
- build.dependsOn shadowJar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement