mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 06:41:08 +00:00
Fix buildscript
This commit is contained in:
+44
-9
@@ -1,38 +1,73 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'io.freefair.lombok' version '5.2.1'
|
||||
id "com.github.johnrengelman.shadow" version "7.0.0"
|
||||
}
|
||||
|
||||
group 'com.volmit.iris'
|
||||
version '1.3.7'
|
||||
def apiVersion = '1.14'
|
||||
def name = 'Iris'
|
||||
def main = 'com.volmit.iris.Iris'
|
||||
|
||||
// ==============================================================
|
||||
registerCustomOutputTask('Cyberpwn', 'C://Users/cyberpwn/Documents/development/server/plugins');
|
||||
// ==============================================================
|
||||
|
||||
configurations {
|
||||
provided
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main { compileClasspath += configurations.provided }
|
||||
processResources {
|
||||
filesMatching('**/plugin.yml') {
|
||||
expand(
|
||||
'name': name.toString(),
|
||||
'version': version.toString(),
|
||||
'main': main.toString(),
|
||||
'apiversion': apiVersion.toString()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
maven {
|
||||
allowInsecureProtocol true
|
||||
url "http://archive.arcane.art/repository/arcane/"
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
|
||||
}
|
||||
|
||||
def registerCustomOutputTask(name, path) {
|
||||
tasks.register('build' + name, Copy) {
|
||||
group('development')
|
||||
outputs.upToDateWhen{false}
|
||||
dependsOn ':shadowJar'
|
||||
from(file('build/libs/Iris-' + version + '-all.jar'))
|
||||
into(file(path))
|
||||
rename { String fileName ->
|
||||
fileName.replace('Iris-' + version + '-all.jar', "Iris.jar")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.projectlombok:lombok:1.18.12'
|
||||
annotationProcessor 'org.projectlombok:lombok:1.18.12'
|
||||
implementation 'io.timeandspace:smoothie-map:2.0.2'
|
||||
implementation 'com.github.ben-manes.caffeine:caffeine:2.8.5'
|
||||
implementation 'org.zeroturnaround:zt-zip:1.14'
|
||||
provided 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
|
||||
implementation 'io.papermc:paperlib:1.0.5'
|
||||
provided 'org.bukkit.craftbukkit:1.16.3:1.16.3'
|
||||
provided 'org.bukkit.craftbukkit:1.16.4:1.16.4'
|
||||
provided 'com.bergerkiller.bukkit:BKCommonLib:1.16.4-v2'
|
||||
provided 'com.sk89q.worldedit:worldedit-bukkit:7.2.0-SNAPSHOT'
|
||||
provided 'io.lumine.xikage:MythicMobs:4.9.1'
|
||||
provided 'com.google.code.gson:gson:2.8.5'
|
||||
compileClasspath 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
|
||||
compileClasspath 'org.bukkit.craftbukkit:1.16.3:1.16.3'
|
||||
compileClasspath 'org.bukkit.craftbukkit:1.16.4:1.16.4'
|
||||
compileClasspath 'com.bergerkiller.bukkit:BKCommonLib:1.16.4-v2'
|
||||
compileClasspath 'com.sk89q.worldedit:worldedit-bukkit:7.2.0-SNAPSHOT'
|
||||
compileClasspath 'io.lumine.xikage:MythicMobs:4.9.1'
|
||||
compileClasspath 'com.google.code.gson:gson:2.8.5'
|
||||
}
|
||||
Reference in New Issue
Block a user