Created
March 16, 2019 16:05
-
-
Save Proximyst/53e91f041c8ad2412f64557387b6cc13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation | |
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | |
import org.apache.tools.ant.filters.ReplaceTokens | |
plugins { | |
id("com.github.johnrengelman.shadow") version "4.0.4" apply false | |
id("java") | |
kotlin("jvm") version "1.3.21" apply false | |
} | |
group = "com.proximyst" | |
version = "0.1.1" | |
allprojects { | |
apply(plugin = "com.github.johnrengelman.shadow") | |
apply(plugin = "kotlin") | |
group = rootProject.group | |
version = rootProject.version | |
repositories { | |
maven { | |
name = "SpigotMC" | |
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") | |
content { | |
includeGroup("org.bukkit") | |
includeGroup("org.spigotmc") | |
} | |
} | |
maven { | |
name = "Sonatype OSS" | |
url = uri("https://oss.sonatype.org/content/repositories/snapshots") | |
content { | |
includeGroup("net.md-5") | |
} | |
} | |
maven { | |
name = "Aikar's Maven Repository" | |
url = uri("https://repo.aikar.co/content/groups/aikar/") | |
content { | |
includeGroup("co.aikar") | |
} | |
} | |
maven { | |
name = "PaperMC Repo" | |
url = uri("https://papermc.io/repo/repository/maven-snapshots/") | |
content { | |
includeGroup("com.destroystokyo.paper") | |
} | |
} | |
maven { | |
// Replacement for MilkBowl's | |
name = "Essentials Repo" | |
url = uri("https://ci.ender.zone/plugin/repository/everything/") | |
content { | |
includeGroup("net.milkbowl.vault") | |
} | |
} | |
maven { | |
name = "Phoenix616 Repo" | |
url = uri("https://repo.minebench.de/") | |
content { | |
includeGroup("de.themoep") | |
} | |
} | |
maven { | |
name = "JitPack" | |
url = uri("https://jitpack.io") | |
content { | |
includeGroup("(((antisemitism)))") | |
} | |
} | |
jcenter() | |
mavenCentral() | |
} | |
dependencies { | |
compileOnly("com.destroystokyo.paper:paper-api:1.13.2-R0.1-SNAPSHOT") | |
compileOnly("net.milkbowl.vault:VaultAPI:1.7") | |
compileOnly("(((antisemitism)))") | |
compile(kotlin("stdlib")) | |
compile("me.lucko:helper:5.5.0") | |
compile("co.aikar:taskchain-bukkit:3.7.2") | |
compile("com.zaxxer:HikariCP:3.3.1") | |
compile("com.h2database:h2:1.4.+") | |
} | |
tasks.create<ConfigureShadowRelocation>("relocateShadowJar") { | |
target = tasks["shadowJar"] as ShadowJar | |
prefix = "com.proximyst.(((antisemitism))).dependencies" | |
} | |
tasks["shadowJar"].dependsOn(tasks["relocateShadowJar"]) | |
tasks.processResources.configure { | |
from("src/main/resources") { | |
include("plugin.yml") | |
filter<ReplaceTokens>( | |
"version" to project.version | |
) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment