mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-04 00:46:08 +00:00
Fix buildscript
This commit is contained in:
parent
6741d58bec
commit
c19857d463
53
build.gradle
53
build.gradle
@ -1,38 +1,73 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'io.freefair.lombok' version '5.2.1'
|
id 'io.freefair.lombok' version '5.2.1'
|
||||||
|
id "com.github.johnrengelman.shadow" version "7.0.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
group 'com.volmit.iris'
|
group 'com.volmit.iris'
|
||||||
version '1.3.7'
|
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 {
|
configurations {
|
||||||
provided
|
provided
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
processResources {
|
||||||
main { compileClasspath += configurations.provided }
|
filesMatching('**/plugin.yml') {
|
||||||
|
expand(
|
||||||
|
'name': name.toString(),
|
||||||
|
'version': version.toString(),
|
||||||
|
'main': main.toString(),
|
||||||
|
'apiversion': apiVersion.toString()
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
gradlePluginPortal()
|
||||||
maven {
|
maven {
|
||||||
|
allowInsecureProtocol true
|
||||||
url "http://archive.arcane.art/repository/arcane/"
|
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 {
|
dependencies {
|
||||||
compileOnly 'org.projectlombok:lombok:1.18.12'
|
compileOnly 'org.projectlombok:lombok:1.18.12'
|
||||||
annotationProcessor 'org.projectlombok:lombok:1.18.12'
|
annotationProcessor 'org.projectlombok:lombok:1.18.12'
|
||||||
implementation 'io.timeandspace:smoothie-map:2.0.2'
|
implementation 'io.timeandspace:smoothie-map:2.0.2'
|
||||||
implementation 'com.github.ben-manes.caffeine:caffeine:2.8.5'
|
implementation 'com.github.ben-manes.caffeine:caffeine:2.8.5'
|
||||||
implementation 'org.zeroturnaround:zt-zip:1.14'
|
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'
|
implementation 'io.papermc:paperlib:1.0.5'
|
||||||
provided 'org.bukkit.craftbukkit:1.16.3:1.16.3'
|
compileClasspath 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
|
||||||
provided 'org.bukkit.craftbukkit:1.16.4:1.16.4'
|
compileClasspath 'org.bukkit.craftbukkit:1.16.3:1.16.3'
|
||||||
provided 'com.bergerkiller.bukkit:BKCommonLib:1.16.4-v2'
|
compileClasspath 'org.bukkit.craftbukkit:1.16.4:1.16.4'
|
||||||
provided 'com.sk89q.worldedit:worldedit-bukkit:7.2.0-SNAPSHOT'
|
compileClasspath 'com.bergerkiller.bukkit:BKCommonLib:1.16.4-v2'
|
||||||
provided 'io.lumine.xikage:MythicMobs:4.9.1'
|
compileClasspath 'com.sk89q.worldedit:worldedit-bukkit:7.2.0-SNAPSHOT'
|
||||||
provided 'com.google.code.gson:gson:2.8.5'
|
compileClasspath 'io.lumine.xikage:MythicMobs:4.9.1'
|
||||||
|
compileClasspath 'com.google.code.gson:gson:2.8.5'
|
||||||
}
|
}
|
2
gradle.properties
Normal file
2
gradle.properties
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
org.gradle.daemon=true
|
||||||
|
org.gradle.parallel=true
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
package com.volmit.iris.scaffold.hunk.storage;
|
package com.volmit.iris.scaffold.hunk.storage;
|
||||||
|
|
||||||
import com.volmit.iris.scaffold.hunk.Hunk;
|
import com.volmit.iris.scaffold.hunk.Hunk;
|
||||||
import org.bouncycastle.util.Arrays;
|
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class ArrayHunk<T> extends StorageHunk<T> implements Hunk<T>
|
public class ArrayHunk<T> extends StorageHunk<T> implements Hunk<T>
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
package com.volmit.iris.scaffold.hunk.storage;
|
package com.volmit.iris.scaffold.hunk.storage;
|
||||||
|
|
||||||
import com.volmit.iris.scaffold.hunk.Hunk;
|
import com.volmit.iris.scaffold.hunk.Hunk;
|
||||||
import org.bouncycastle.util.Arrays;
|
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class SynchronizedArrayHunk<T> extends StorageHunk<T> implements Hunk<T>
|
public class SynchronizedArrayHunk<T> extends StorageHunk<T> implements Hunk<T>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: ${project.name}
|
name: ${name}
|
||||||
version: ${project.version}
|
version: ${version}
|
||||||
main: com.volmit.iris.Iris
|
main: ${main}
|
||||||
load: STARTUP
|
load: STARTUP
|
||||||
authors: [cyberpwn, NextdoorPsycho]
|
authors: [cyberpwn, NextdoorPsycho]
|
||||||
website: volmit.com
|
website: volmit.com
|
||||||
@ -8,5 +8,5 @@ description: More than a Dimenson!
|
|||||||
commands:
|
commands:
|
||||||
iris:
|
iris:
|
||||||
aliases: [ir, irs]
|
aliases: [ir, irs]
|
||||||
api-version: 1.14
|
api-version: ${apiversion}
|
||||||
hotload-dependencies: false
|
hotload-dependencies: false
|
Loading…
x
Reference in New Issue
Block a user