mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 09:17:39 +00:00
Update build files and NOTICE.txt
This commit is contained in:
parent
34279fdb46
commit
0a07599abf
31
NOTICE.txt
31
NOTICE.txt
@ -16,3 +16,34 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
|
Unknown LZ4 Java code
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
||||||
|
BufferedRandomAccessFile.java
|
||||||
|
|
||||||
|
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
|
||||||
|
See the NOTICE file distributed with this work for additional information regarding
|
||||||
|
copyright ownership. The ASF licenses this file to you under the Apache License,
|
||||||
|
Version 2.0 ("License"); you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and limitations under the License.
|
||||||
|
|
||||||
|
SimplexNoise.java
|
||||||
|
|
||||||
|
Version 2012-03-09
|
||||||
|
This code was placed in the public domain by its original author, Stefan Gustavson. You may use it
|
||||||
|
as you see fit, but attribution is appreciated.
|
||||||
|
@ -14,17 +14,18 @@ logger.lifecycle("""
|
|||||||
Output files will be in [subproject]/build/libs
|
Output files will be in [subproject]/build/libs
|
||||||
*******************************************
|
*******************************************
|
||||||
""")
|
""")
|
||||||
|
|
||||||
//TODO FIX THIS WHEN I FEEL LIKE IT
|
//TODO FIX THIS WHEN I FEEL LIKE IT
|
||||||
var rootVersion = "1.16"
|
var rootVersion by extra("1.16")
|
||||||
var revision: String = ""
|
var revision: String by extra("")
|
||||||
var buildNumber = ""
|
var buildNumber by extra("")
|
||||||
var date: String = ""
|
var date: String by extra("")
|
||||||
ext {
|
ext {
|
||||||
val git: Grgit = Grgit.open {
|
val git: Grgit = Grgit.open {
|
||||||
dir = File("$rootDir/.git");
|
dir = File("$rootDir/.git");
|
||||||
}
|
}
|
||||||
ext["date"] = git.head().dateTime.format(DateTimeFormatter.ofPattern("yy.MM.dd"));
|
date = git.head().dateTime.format(DateTimeFormatter.ofPattern("yy.MM.dd"));
|
||||||
ext["revision"] = "-${git.head().abbreviatedId}";
|
revision = "-${git.head().abbreviatedId}";
|
||||||
var parents: MutableList<String>? = git.head().parentIds;
|
var parents: MutableList<String>? = git.head().parentIds;
|
||||||
if (project.hasProperty("buildnumber")) {
|
if (project.hasProperty("buildnumber")) {
|
||||||
buildNumber = project.properties["buildnumber"] as String;
|
buildNumber = project.properties["buildnumber"] as String;
|
||||||
@ -48,6 +49,8 @@ allprojects {
|
|||||||
|
|
||||||
version = String.format("%s-%s", rootVersion, buildNumber)
|
version = String.format("%s-%s", rootVersion, buildNumber)
|
||||||
|
|
||||||
|
applyCommonConfiguration()
|
||||||
|
|
||||||
if (!project.hasProperty("gitCommitHash")) {
|
if (!project.hasProperty("gitCommitHash")) {
|
||||||
apply(plugin = "org.ajoberstar.grgit")
|
apply(plugin = "org.ajoberstar.grgit")
|
||||||
ext["gitCommitHash"] = try {
|
ext["gitCommitHash"] = try {
|
||||||
|
@ -52,11 +52,11 @@ dependencies {
|
|||||||
implementation("com.github.jengelman.gradle.plugins:shadow:5.2.0")
|
implementation("com.github.jengelman.gradle.plugins:shadow:5.2.0")
|
||||||
implementation("net.ltgt.apt-eclipse:net.ltgt.apt-eclipse.gradle.plugin:0.21")
|
implementation("net.ltgt.apt-eclipse:net.ltgt.apt-eclipse.gradle.plugin:0.21")
|
||||||
implementation("net.ltgt.apt-idea:net.ltgt.apt-idea.gradle.plugin:0.21")
|
implementation("net.ltgt.apt-idea:net.ltgt.apt-idea.gradle.plugin:0.21")
|
||||||
implementation("org.jfrog.buildinfo:build-info-extractor-gradle:4.16.0")
|
//implementation("org.jfrog.buildinfo:build-info-extractor-gradle:4.16.0")
|
||||||
implementation("gradle.plugin.org.spongepowered:spongegradle:0.9.0")
|
//implementation("gradle.plugin.org.spongepowered:spongegradle:0.9.0")
|
||||||
implementation("net.minecraftforge.gradle:ForgeGradle:3.0.179")
|
//implementation("net.minecraftforge.gradle:ForgeGradle:3.0.181")
|
||||||
implementation("net.fabricmc:fabric-loom:$loomVersion")
|
//implementation("net.fabricmc:fabric-loom:$loomVersion")
|
||||||
implementation("net.fabricmc:sponge-mixin:$mixinVersion")
|
//implementation("net.fabricmc:sponge-mixin:$mixinVersion")
|
||||||
implementation("gradle.plugin.com.mendhak.gradlecrowdin:plugin:0.1.0")
|
implementation("gradle.plugin.com.mendhak.gradlecrowdin:plugin:0.1.0")
|
||||||
implementation("org.enginehub.gradle:gradle-codecov-plugin:0.1.0")
|
implementation("org.enginehub.gradle:gradle-codecov-plugin:0.1.0")
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
import org.gradle.api.Project
|
import org.gradle.api.Project
|
||||||
|
import org.gradle.api.artifacts.ExternalModuleDependency
|
||||||
import org.gradle.api.artifacts.ModuleDependency
|
import org.gradle.api.artifacts.ModuleDependency
|
||||||
import org.gradle.api.internal.HasConvention
|
import org.gradle.api.internal.HasConvention
|
||||||
import org.gradle.api.plugins.MavenRepositoryHandlerConvention
|
import org.gradle.api.plugins.MavenRepositoryHandlerConvention
|
||||||
@ -41,7 +42,7 @@ fun Project.applyLibrariesConfiguration() {
|
|||||||
val deps = configurations["shade"].incoming.dependencies
|
val deps = configurations["shade"].incoming.dependencies
|
||||||
.filterIsInstance<ModuleDependency>()
|
.filterIsInstance<ModuleDependency>()
|
||||||
.map { it.copy() }
|
.map { it.copy() }
|
||||||
.map { dependency ->
|
.map { dependency: ModuleDependency ->
|
||||||
dependency.artifact {
|
dependency.artifact {
|
||||||
name = dependency.name
|
name = dependency.name
|
||||||
type = artifactType
|
type = artifactType
|
||||||
@ -95,3 +96,16 @@ fun Project.applyLibrariesConfiguration() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun Project.constrainDependenciesToLibsCore() {
|
||||||
|
evaluationDependsOn(":worldedit-libs:core")
|
||||||
|
val coreDeps = project(":worldedit-libs:core").configurations["shade"].dependencies
|
||||||
|
.filterIsInstance<ExternalModuleDependency>()
|
||||||
|
dependencies.constraints {
|
||||||
|
for (coreDep in coreDeps) {
|
||||||
|
add("shade", "${coreDep.group}:${coreDep.name}:${coreDep.version}") {
|
||||||
|
because("libs should align with libs:core")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -4,6 +4,7 @@ import org.gradle.api.Project
|
|||||||
import org.gradle.api.plugins.JavaPluginConvention
|
import org.gradle.api.plugins.JavaPluginConvention
|
||||||
import org.gradle.api.plugins.quality.CheckstyleExtension
|
import org.gradle.api.plugins.quality.CheckstyleExtension
|
||||||
import org.gradle.api.tasks.bundling.Jar
|
import org.gradle.api.tasks.bundling.Jar
|
||||||
|
import org.gradle.api.tasks.compile.JavaCompile
|
||||||
import org.gradle.api.tasks.javadoc.Javadoc
|
import org.gradle.api.tasks.javadoc.Javadoc
|
||||||
import org.gradle.api.tasks.testing.Test
|
import org.gradle.api.tasks.testing.Test
|
||||||
import org.gradle.external.javadoc.CoreJavadocOptions
|
import org.gradle.external.javadoc.CoreJavadocOptions
|
||||||
@ -32,6 +33,18 @@ fun Project.applyPlatformAndCoreConfiguration() {
|
|||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks
|
||||||
|
.withType<JavaCompile>()
|
||||||
|
.matching { it.name == "compileJava" || it.name == "compileTestJava" }
|
||||||
|
.configureEach {
|
||||||
|
val disabledLint = listOf(
|
||||||
|
"processing", "path", "fallthrough", "serial"
|
||||||
|
)
|
||||||
|
//options.compilerArgs.addAll(listOf("-Xlint:all") + disabledLint.map { "-Xlint:-$it" })
|
||||||
|
options.isDeprecation = false
|
||||||
|
options.encoding = "UTF-8"
|
||||||
|
}
|
||||||
|
|
||||||
// configure<CheckstyleExtension> {
|
// configure<CheckstyleExtension> {
|
||||||
// configFile = rootProject.file("config/checkstyle/checkstyle.xml")
|
// configFile = rootProject.file("config/checkstyle/checkstyle.xml")
|
||||||
// toolVersion = "8.34"
|
// toolVersion = "8.34"
|
||||||
@ -52,19 +65,14 @@ fun Project.applyPlatformAndCoreConfiguration() {
|
|||||||
|
|
||||||
// Java 8 turns on doclint which we fail
|
// Java 8 turns on doclint which we fail
|
||||||
tasks.withType<Javadoc>().configureEach {
|
tasks.withType<Javadoc>().configureEach {
|
||||||
//delete("docs/javadoc")
|
(options as StandardJavadocDocletOptions).apply {
|
||||||
//setDestinationDir(file("docs/javadoc"))
|
addStringOption("Xdoclint:none", "-quiet")
|
||||||
//title = "${project.name} ${project.version} API"
|
tags(
|
||||||
//(options as StandardJavadocDocletOptions).addStringOption("author", "true")
|
"apiNote:a:API Note:",
|
||||||
(options as CoreJavadocOptions).addStringOption("Xdoclint:none", "-quiet")
|
"implSpec:a:Implementation Requirements:",
|
||||||
// subprojects.forEach { proj ->
|
"implNote:a:Implementation Note:"
|
||||||
// proj.tasks.withType<Javadoc>().forEach { javadocTask ->
|
)
|
||||||
// source += javadocTask.source
|
}
|
||||||
// classpath += javadocTask.classpath
|
|
||||||
// excludes += javadocTask.excludes
|
|
||||||
// includes += javadocTask.includes
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<Jar>("javadocJar") {
|
tasks.register<Jar>("javadocJar") {
|
||||||
|
@ -2,12 +2,15 @@ import org.gradle.api.Project
|
|||||||
|
|
||||||
object Versions {
|
object Versions {
|
||||||
const val TEXT = "3.0.4"
|
const val TEXT = "3.0.4"
|
||||||
const val TEXT_EXTRAS = "3.0.5"
|
const val TEXT_EXTRAS = "3.0.6"
|
||||||
const val PISTON = "0.5.6"
|
const val PISTON = "0.5.6"
|
||||||
const val AUTO_VALUE = "1.7"
|
const val AUTO_VALUE = "1.7"
|
||||||
const val JUNIT = "5.6.1"
|
const val JUNIT = "5.6.1"
|
||||||
const val MOCKITO = "3.3.3"
|
const val MOCKITO = "3.3.3"
|
||||||
const val LOGBACK = "1.2.3"
|
const val LOGBACK = "1.2.3"
|
||||||
|
const val FAST_UTIL = "8.2.1"
|
||||||
|
const val GUAVA = "21.0"
|
||||||
|
const val GSON = "2.8.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Properties that need a project reference to resolve:
|
// Properties that need a project reference to resolve:
|
||||||
|
@ -14,7 +14,10 @@ repositories {
|
|||||||
maven { url = uri("https://maven.enginehub.org/repo/") }
|
maven { url = uri("https://maven.enginehub.org/repo/") }
|
||||||
maven { url = uri("http://ci.emc.gs/nexus/content/groups/aikar/") }
|
maven { url = uri("http://ci.emc.gs/nexus/content/groups/aikar/") }
|
||||||
maven { url = uri("https://ci.athion.net/plugin/repository/tools/") }
|
maven { url = uri("https://ci.athion.net/plugin/repository/tools/") }
|
||||||
maven { url = uri("https://jitpack.io")}
|
maven {
|
||||||
|
this.name = "JitPack"
|
||||||
|
this.url = uri("https://jitpack.io")
|
||||||
|
}
|
||||||
maven { url = uri("https://repo.destroystokyo.com/repository/maven-public/") }
|
maven { url = uri("https://repo.destroystokyo.com/repository/maven-public/") }
|
||||||
maven {
|
maven {
|
||||||
name = "ProtocolLib Repo"
|
name = "ProtocolLib Repo"
|
||||||
@ -30,24 +33,29 @@ configurations.all {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile("com.github.MilkBowl:VaultAPI:1.7") { isTransitive = false }
|
compileOnly("com.github.MilkBowl:VaultAPI:1.7") {
|
||||||
|
isTransitive = false
|
||||||
|
}
|
||||||
"api"(project(":worldedit-core"))
|
"api"(project(":worldedit-core"))
|
||||||
"api"(project(":worldedit-libs:bukkit"))
|
"api"(project(":worldedit-libs:bukkit"))
|
||||||
"compile"(":worldedit-adapters:")
|
"compile"(":worldedit-adapters:")
|
||||||
"compile"("org.spigotmcv1_14_r1:spigotmcv1_14_r1:1_14_r1")
|
"compile"("org.spigotmcv1_14_r1:spigotmcv1_14_r1:1_14_r1")
|
||||||
"compile"("org.spigotmcv1_15_r1:spigotmcv1_15_r1:1_15_r1")
|
"compile"("org.spigotmcv1_15_r1:spigotmcv1_15_r1:1_15_r1")
|
||||||
"compile"("it.unimi.dsi:fastutil:8.2.1")
|
"implementation"("it.unimi.dsi:fastutil:${Versions.FAST_UTIL}")
|
||||||
"api"("com.destroystokyo.paper:paper-api:1.16.1-R0.1-SNAPSHOT") {
|
"api"("com.destroystokyo.paper:paper-api:1.16.1-R0.1-SNAPSHOT") {
|
||||||
exclude("junit", "junit")
|
exclude("junit", "junit")
|
||||||
isTransitive = false
|
isTransitive = false
|
||||||
}
|
}
|
||||||
|
"compileOnly"("org.jetbrains:annotations:20.0.0")
|
||||||
"compileOnly"("org.spigotmc:spigot:1.14.4-R0.1-SNAPSHOT")
|
"compileOnly"("org.spigotmc:spigot:1.14.4-R0.1-SNAPSHOT")
|
||||||
"compileOnly"("org.spigotmc:spigot:1.15.2-R0.1-SNAPSHOT")
|
"compileOnly"("org.spigotmc:spigot:1.15.2-R0.1-SNAPSHOT")
|
||||||
"compileOnly"("org.spigotmc:spigot:1.16.1-R0.1-SNAPSHOT")
|
"compileOnly"("org.spigotmc:spigot:1.16.1-R0.1-SNAPSHOT")
|
||||||
"implementation"("io.papermc:paperlib:1.0.2")
|
"implementation"("io.papermc:paperlib:1.0.+")
|
||||||
"compileOnly"("com.sk89q:dummypermscompat:1.10")
|
"compileOnly"("com.sk89q:dummypermscompat:1.10") {
|
||||||
|
exclude("com.github.MilkBowl", "VaultAPI")
|
||||||
|
}
|
||||||
"implementation"("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
|
"implementation"("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
|
||||||
"testCompile"("org.mockito:mockito-core:1.9.0-rc1")
|
"testImplementation"("org.mockito:mockito-core:1.9.0-rc1")
|
||||||
"compileOnly"("com.sk89q.worldguard:worldguard-bukkit:7.+") {
|
"compileOnly"("com.sk89q.worldguard:worldguard-bukkit:7.+") {
|
||||||
exclude("com.sk89q.worldedit", "worldedit-bukkit")
|
exclude("com.sk89q.worldedit", "worldedit-bukkit")
|
||||||
exclude("com.sk89q.worldedit", "worldedit-core")
|
exclude("com.sk89q.worldedit", "worldedit-core")
|
||||||
@ -95,7 +103,7 @@ tasks.named<ShadowJar>("shadowJar") {
|
|||||||
include(dependency("org.bstats:bstats-bukkit:1.7"))
|
include(dependency("org.bstats:bstats-bukkit:1.7"))
|
||||||
}
|
}
|
||||||
relocate("io.papermc.lib", "com.sk89q.worldedit.bukkit.paperlib") {
|
relocate("io.papermc.lib", "com.sk89q.worldedit.bukkit.paperlib") {
|
||||||
include(dependency("io.papermc:paperlib:1.0.2"))
|
include(dependency("io.papermc:paperlib:1.+"))
|
||||||
}
|
}
|
||||||
relocate("it.unimi.dsi.fastutil", "com.sk89q.worldedit.bukkit.fastutil") {
|
relocate("it.unimi.dsi.fastutil", "com.sk89q.worldedit.bukkit.fastutil") {
|
||||||
include(dependency("it.unimi.dsi:fastutil"))
|
include(dependency("it.unimi.dsi:fastutil"))
|
||||||
|
@ -1,13 +1,19 @@
|
|||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
`java-library`
|
||||||
|
}
|
||||||
|
|
||||||
applyPlatformAndCoreConfiguration()
|
applyPlatformAndCoreConfiguration()
|
||||||
applyShadowConfiguration()
|
applyShadowConfiguration()
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
"compile"(project(":worldedit-core"))
|
"api"(project(":worldedit-core"))
|
||||||
"compile"("org.apache.logging.log4j:log4j-core:2.8.1")
|
"implementation"("org.apache.logging.log4j:log4j-core:2.8.1")
|
||||||
"compile"("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
|
"implementation"("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
|
||||||
"compile"("commons-cli:commons-cli:1.4")
|
"implementation"("commons-cli:commons-cli:1.4")
|
||||||
|
"implementation"("com.google.guava:guava:${Versions.GUAVA}")
|
||||||
|
"implementation"("com.google.code.gson:gson:${Versions.GSON}")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named<Jar>("jar") {
|
tasks.named<Jar>("jar") {
|
||||||
|
@ -29,22 +29,22 @@ configurations.all {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
"compile"(project(":worldedit-libs:core"))
|
"api"(project(":worldedit-libs:core"))
|
||||||
"compile"("de.schlichtherle:truezip:6.8.3")
|
"implementation"("de.schlichtherle:truezip:6.8.3")
|
||||||
"compile"("net.java.truevfs:truevfs-profile-default_2.13:0.12.1")
|
"implementation"("net.java.truevfs:truevfs-profile-default_2.13:0.12.1")
|
||||||
"compile"("org.mozilla:rhino-runtime:1.7.12")
|
"implementation"("org.mozilla:rhino-runtime:1.7.12")
|
||||||
"compile"("org.yaml:snakeyaml:1.23")
|
"implementation"("org.yaml:snakeyaml:1.23")
|
||||||
"compile"("com.google.guava:guava:21.0")
|
"implementation"("com.google.guava:guava:${Versions.GUAVA}")
|
||||||
"compile"("com.google.code.findbugs:jsr305:3.0.2")
|
"implementation"("com.google.code.findbugs:jsr305:3.0.2")
|
||||||
"compile"("com.google.code.gson:gson:2.8.0")
|
"implementation"("com.google.code.gson:gson:${Versions.GSON}")
|
||||||
"compile"("org.slf4j:slf4j-api:1.7.26")
|
"implementation"("org.slf4j:slf4j-api:1.7.26")
|
||||||
"compile"("it.unimi.dsi:fastutil:8.2.1")
|
"implementation"("it.unimi.dsi:fastutil:${Versions.FAST_UTIL}")
|
||||||
|
|
||||||
val antlrVersion = "4.7.2"
|
val antlrVersion = "4.7.2"
|
||||||
"antlr"("org.antlr:antlr4:$antlrVersion")
|
"antlr"("org.antlr:antlr4:$antlrVersion")
|
||||||
"implementation"("org.antlr:antlr4-runtime:$antlrVersion")
|
"implementation"("org.antlr:antlr4-runtime:$antlrVersion")
|
||||||
|
|
||||||
"compile"("com.googlecode.json-simple:json-simple:1.1.1") { isTransitive = false }
|
"implementation"("com.googlecode.json-simple:json-simple:1.1.1") { isTransitive = false }
|
||||||
"compileOnly"(project(":worldedit-libs:core:ap"))
|
"compileOnly"(project(":worldedit-libs:core:ap"))
|
||||||
"annotationProcessor"(project(":worldedit-libs:core:ap"))
|
"annotationProcessor"(project(":worldedit-libs:core:ap"))
|
||||||
// ensure this is on the classpath for the AP
|
// ensure this is on the classpath for the AP
|
||||||
@ -53,7 +53,6 @@ dependencies {
|
|||||||
"annotationProcessor"("com.google.auto.value:auto-value:${Versions.AUTO_VALUE}")
|
"annotationProcessor"("com.google.auto.value:auto-value:${Versions.AUTO_VALUE}")
|
||||||
"testImplementation"("ch.qos.logback:logback-core:${Versions.LOGBACK}")
|
"testImplementation"("ch.qos.logback:logback-core:${Versions.LOGBACK}")
|
||||||
"testImplementation"("ch.qos.logback:logback-classic:${Versions.LOGBACK}")
|
"testImplementation"("ch.qos.logback:logback-classic:${Versions.LOGBACK}")
|
||||||
"compile"("co.aikar:fastutil-lite:1.0")
|
|
||||||
"compile"("com.github.luben:zstd-jni:1.4.3-1")
|
"compile"("com.github.luben:zstd-jni:1.4.3-1")
|
||||||
"compileOnly"("net.fabiozumbi12:redprotect:1.9.6")
|
"compileOnly"("net.fabiozumbi12:redprotect:1.9.6")
|
||||||
"compile"("com.github.intellectualsites.plotsquared:PlotSquared-API:latest") {
|
"compile"("com.github.intellectualsites.plotsquared:PlotSquared-API:latest") {
|
||||||
@ -62,7 +61,7 @@ dependencies {
|
|||||||
"compile"("com.plotsquared:PlotSquared-Core:5.12.2") {
|
"compile"("com.plotsquared:PlotSquared-Core:5.12.2") {
|
||||||
isTransitive = false
|
isTransitive = false
|
||||||
}
|
}
|
||||||
implementation(kotlin("stdlib-jdk8", "1.3.61"))
|
implementation(kotlin("stdlib-jdk8", "1.3.72"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named<Test>("test") {
|
tasks.named<Test>("test") {
|
||||||
|
@ -21,4 +21,5 @@ dependencies {
|
|||||||
"implementation"(project(":worldedit-core"))
|
"implementation"(project(":worldedit-core"))
|
||||||
"implementation"(kotlin("stdlib-jdk8"))
|
"implementation"(kotlin("stdlib-jdk8"))
|
||||||
"implementation"(kotlin("reflect"))
|
"implementation"(kotlin("reflect"))
|
||||||
|
"implementation"("com.google.guava:guava:${Versions.GUAVA}")
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ applyPlatformAndCoreConfiguration()
|
|||||||
applyShadowConfiguration()
|
applyShadowConfiguration()
|
||||||
|
|
||||||
apply(plugin = "fabric-loom")
|
apply(plugin = "fabric-loom")
|
||||||
|
apply(plugin = "java-library")
|
||||||
|
|
||||||
val minecraftVersion = "1.15.2"
|
val minecraftVersion = "1.15.2"
|
||||||
val yarnMappings = "1.15.2+build.14:v2"
|
val yarnMappings = "1.15.2+build.14:v2"
|
||||||
|
@ -1,19 +1,23 @@
|
|||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
import net.minecraftforge.gradle.common.util.RunConfig
|
import net.minecraftforge.gradle.common.util.RunConfig
|
||||||
import net.minecraftforge.gradle.userdev.UserDevExtension
|
|
||||||
import net.minecraftforge.gradle.mcp.task.GenerateSRG
|
import net.minecraftforge.gradle.mcp.task.GenerateSRG
|
||||||
|
import net.minecraftforge.gradle.userdev.UserDevExtension
|
||||||
import net.minecraftforge.gradle.userdev.tasks.RenameJarInPlace
|
import net.minecraftforge.gradle.userdev.tasks.RenameJarInPlace
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("net.minecraftforge.gradle")
|
id("net.minecraftforge.gradle")
|
||||||
|
`java-library`
|
||||||
}
|
}
|
||||||
|
|
||||||
applyPlatformAndCoreConfiguration()
|
applyPlatformAndCoreConfiguration()
|
||||||
applyShadowConfiguration()
|
applyShadowConfiguration()
|
||||||
|
|
||||||
val minecraftVersion = "1.14.4"
|
val minecraftVersion = "1.16.1"
|
||||||
val mappingsMinecraftVersion = "1.14.3"
|
val nextMajorMinecraftVersion: String = minecraftVersion.split('.').let { (useless, major) ->
|
||||||
val forgeVersion = "28.1.0"
|
"$useless.${major.toInt() + 1}"
|
||||||
|
}
|
||||||
|
val mappingsMinecraftVersion = "1.16"
|
||||||
|
val forgeVersion = "32.0.92"
|
||||||
|
|
||||||
configurations.all {
|
configurations.all {
|
||||||
resolutionStrategy {
|
resolutionStrategy {
|
||||||
@ -22,8 +26,8 @@ configurations.all {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
"compile"(project(":worldedit-core"))
|
"api"(project(":worldedit-core"))
|
||||||
"compile"("org.apache.logging.log4j:log4j-slf4j-impl:2.11.2")
|
"implementation"("org.apache.logging.log4j:log4j-slf4j-impl:2.11.2")
|
||||||
|
|
||||||
"minecraft"("net.minecraftforge:forge:$minecraftVersion-$forgeVersion")
|
"minecraft"("net.minecraftforge:forge:$minecraftVersion-$forgeVersion")
|
||||||
}
|
}
|
||||||
@ -31,7 +35,7 @@ dependencies {
|
|||||||
configure<UserDevExtension> {
|
configure<UserDevExtension> {
|
||||||
mappings(mapOf(
|
mappings(mapOf(
|
||||||
"channel" to "snapshot",
|
"channel" to "snapshot",
|
||||||
"version" to "20190913-$mappingsMinecraftVersion"
|
"version" to "20200514-$mappingsMinecraftVersion"
|
||||||
))
|
))
|
||||||
|
|
||||||
accessTransformer(file("src/main/resources/META-INF/accesstransformer.cfg"))
|
accessTransformer(file("src/main/resources/META-INF/accesstransformer.cfg"))
|
||||||
@ -57,40 +61,44 @@ configure<BasePluginConvention> {
|
|||||||
|
|
||||||
tasks.named<Copy>("processResources") {
|
tasks.named<Copy>("processResources") {
|
||||||
// this will ensure that this task is redone when the versions change.
|
// this will ensure that this task is redone when the versions change.
|
||||||
inputs.property("version", project.ext["internalVersion"])
|
val properties = mapOf(
|
||||||
inputs.property("forgeVersion", forgeVersion)
|
"version" to project.ext["internalVersion"],
|
||||||
|
"forgeVersion" to forgeVersion,
|
||||||
|
"minecraftVersion" to minecraftVersion,
|
||||||
|
"nextMajorMinecraftVersion" to nextMajorMinecraftVersion
|
||||||
|
)
|
||||||
|
properties.forEach { (key, value) ->
|
||||||
|
inputs.property(key, value)
|
||||||
|
}
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
// replace stuff in mcmod.info, nothing else
|
||||||
from(sourceSets["main"].resources.srcDirs) {
|
from(sourceSets["main"].resources.srcDirs) {
|
||||||
include("META-INF/mods.toml")
|
include("META-INF/mods.toml")
|
||||||
|
|
||||||
// replace version and mcversion
|
// replace version and mcversion
|
||||||
expand(
|
expand(properties)
|
||||||
"version" to project.ext["internalVersion"],
|
|
||||||
"forgeVersion" to forgeVersion
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else except the mcmod.info
|
// copy everything else except the mcmod.info
|
||||||
from(sourceSets["main"].resources.srcDirs) {
|
from(sourceSets["main"].resources.srcDirs) {
|
||||||
exclude("META-INF/mods.toml")
|
exclude("META-INF/mods.toml")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// copy from -core resources as well
|
||||||
|
from(project(":worldedit-core").tasks.named("processResources"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named<Jar>("jar") {
|
addJarManifest(includeClasspath = false)
|
||||||
manifest {
|
|
||||||
attributes("Class-Path" to CLASSPATH,
|
|
||||||
"WorldEdit-Version" to project.version)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.named<ShadowJar>("shadowJar") {
|
tasks.named<ShadowJar>("shadowJar") {
|
||||||
dependencies {
|
dependencies {
|
||||||
relocate("org.slf4j", "com.sk89q.worldedit.slf4j")
|
relocate("org.slf4j", "com.sk89q.worldedit.slf4j")
|
||||||
relocate("org.apache.logging.slf4j", "com.sk89q.worldedit.log4jbridge")
|
relocate("org.apache.logging.slf4j", "com.sk89q.worldedit.log4jbridge")
|
||||||
|
relocate("org.antlr.v4", "com.sk89q.worldedit.antlr4")
|
||||||
|
|
||||||
include(dependency("org.slf4j:slf4j-api"))
|
include(dependency("org.slf4j:slf4j-api"))
|
||||||
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl"))
|
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl"))
|
||||||
|
include(dependency("org.antlr:antlr4-runtime"))
|
||||||
include(dependency("de.schlichtherle:truezip"))
|
include(dependency("de.schlichtherle:truezip"))
|
||||||
include(dependency("net.java.truevfs:truevfs-profile-default_2.13"))
|
include(dependency("net.java.truevfs:truevfs-profile-default_2.13"))
|
||||||
include(dependency("org.mozilla:rhino-runtime"))
|
include(dependency("org.mozilla:rhino-runtime"))
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
applyLibrariesConfiguration()
|
applyLibrariesConfiguration()
|
||||||
|
constrainDependenciesToLibsCore()
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
@ -6,6 +7,7 @@ repositories {
|
|||||||
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
|
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
"shade"("net.kyori:text-adapter-bukkit:${Versions.TEXT_EXTRAS}")
|
"shade"("net.kyori:text-adapter-bukkit:${Versions.TEXT_EXTRAS}")
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
applyLibrariesConfiguration()
|
applyLibrariesConfiguration()
|
||||||
|
constrainDependenciesToLibsCore()
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
@ -8,4 +9,4 @@ repositories {
|
|||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
"shade"("net.kyori:text-adapter-spongeapi:${Versions.TEXT_EXTRAS}")
|
"shade"("net.kyori:text-adapter-spongeapi:${Versions.TEXT_EXTRAS}")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user