Skip to content

Commit

Permalink
Merge branch 'release/v5.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco (Valandur) committed Jul 22, 2019
2 parents 7b0a43e + 7fddc40 commit 32600e6
Show file tree
Hide file tree
Showing 450 changed files with 13,043 additions and 13,073 deletions.
192 changes: 18 additions & 174 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,184 +1,28 @@
plugins {
id "java"
id "com.qixalite.spongestart2" version "4.0.0"
id "ninja.miserable.blossom" version "1.0.1"
id "com.github.johnrengelman.shadow" version "2.0.1"
id "idea"
id "com.github.johnrengelman.shadow" version "2.0.1" apply false
}

group = "valandur.webapi"
version = "${project.version}-S${project.spongeVersion}"

blossom {
def locMain = "src/main/java/valandur/webapi/util/Constants.java"
replaceToken "@version@", project.version, locMain
}

spongestart {
minecraft project.minecraftVersion
//spongeForgeVersion "1.12.2-2705-8.0.0-BETA-3398"
//spongeVanillaVersion "1.12.2-8.0.0-BETA-444"
}

configurations.all {
// Exclude because included by Sponge/Minecraft
exclude group: "org.apache.commons"
exclude group: "com.google.common"

resolutionStrategy {
force "com.google.guava:guava:23.0"
force "org.reflections:reflections:0.9.10" // Fixes some logging issues in 0.9.11
}
}

repositories {
mavenCentral()
maven {
url "https://repo.spongepowered.org/maven/"
}
maven {
url "http://repo.bstats.org/content/repositories/releases/"
}
maven {
url = "http://repo.aikar.co/nexus/content/groups/aikar/"
}
flatDir {
dirs "lib"
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
}

dependencies {
compile project(":webapi-lib")

compile group: "co.aikar", name: "minecraft-timings", version: "1.0.4"

compile group: "com.fasterxml.jackson.core", name: "jackson-core", version: project.jacksonVersion
compile group: "com.fasterxml.jackson.core", name: "jackson-databind", version: project.jacksonVersion
compile group: "com.fasterxml.jackson.core", name: "jackson-annotations", version: project.jacksonVersion
compile group: "com.fasterxml.jackson.dataformat", name: "jackson-dataformat-xml", version: project.jacksonVersion
compile group: "com.fasterxml.jackson.jaxrs", name: "jackson-jaxrs-json-provider", version: project.jacksonVersion
// compile group: "io.swagger.core.v3", name: "swagger-jaxrs2", version: "2.0.0-rc3" // This if for Swagger 3.0

compile group: "org.codehaus.woodstox", name: "woodstox-core-asl", version: "4.4.1"

compile group: "org.eclipse.jetty", name: "jetty-server", version: project.jettyVersion
compile group: "org.eclipse.jetty", name: "jetty-servlet", version: project.jettyVersion
compile group: "org.eclipse.jetty", name: "jetty-rewrite", version: project.jettyVersion
compile group: "org.eclipse.jetty.websocket", name: "websocket-server", version: project.jettyVersion
compile group: "org.eclipse.jetty.websocket", name: "websocket-servlet", version: project.jettyVersion
compile group: "org.eclipse.jetty.websocket", name: "websocket-client", version: project.jettyVersion

compile group: "io.swagger", name: "swagger-jersey2-jaxrs", version: "1.5.18"
compile group: "io.sentry", name: "sentry", version: "1.6.4"

compile group: "org.mindrot", name: "jbcrypt", version: "0.4"
compile group: "org.glassfish.jersey.containers", name: "jersey-container-servlet", version: "2.26"
compile group: "org.glassfish.jersey.inject", name: "jersey-hk2", version: "2.26"
compile group: "org.bstats", name: "bstats-sponge", version: "1.4"

compileOnly group: "org.spongepowered", name: "spongeapi", version: "${project.spongeVersion}-SNAPSHOT"

compile group: 'redis.clients', name: 'jedis', version: '2.9.0'
compile group: 'com.rabbitmq', name: 'amqp-client', version: '5.3.0'

// Integrations
compileOnly name: "ActiveTime-s7.1-v1.4.3"
compileOnly name: "CmdScheduler-s7.1-v1.1.1"
compileOnly name: "GWMLibrary 1.3.4"
compileOnly name: "GWMCrates 3.1.13"
compileOnly name: "MMCRestrict-1.7.1-API-7"
compileOnly name: "MMCTickets-2.0.7-API-7"
compileOnly name: "Nucleus-1.12.1-S7.1-api"
compileOnly name: "RedProtect-7.5.5-b130-Universal"
compileOnly name: "UniversalMarket-1.12.2-v1.3"
compileOnly name: "VillagerShops-2.0.1"
compileOnly name: "WebBooks"
}

shadowJar {
configurations = [project.configurations.compile]
subprojects {
apply plugin: "java"
apply plugin: "com.github.johnrengelman.shadow"

mergeServiceFiles()
group = "valandur.webapi"
version = "${project.version}-S${project.spongeVersion}"

duplicatesStrategy = DuplicatesStrategy.EXCLUDE
sourceCompatibility = 1.8
targetCompatibility = 1.8

relocate "co.aikar.timings.lib", "valandur.webapi.shadow.co.aikar.timings.lib"

relocate "com.ctc", "valandur.webapi.shadow.com.ctc"
relocate "com.fasterxml", "valandur.webapi.shadow.com.fasterxml"

relocate "com.google.errorprone", "valandur.webapi.shadow.com.google.errorprone"
relocate "com.google.j2objc", "valandur.webapi.shadow.com.google.j2objc"
relocate "com.google.thirdparty", "valandur.webapi.shadow.com.google.thirdparty"

relocate "com.sun.research", "valandur.webapi.shadow.com.sun.research"

relocate "edu.umd.cs.findbugs.annotations", "valandur.webapi.shadow.edu.umd.cs.findbugs.annotations"

relocate "io.sentry", "valandur.webapi.shadow.io.sentry"
relocate "io.swagger", "valandur.webapi.shadow.io.swagger"

relocate "javassist", "valandur.webapi.shadow.javassist"

relocate "javax.annotation", "valandur.webapi.shadow.javax.annotation"
relocate "javax.inject", "valandur.webapi.shadow.javax.inject"
relocate "javax.servlet", "valandur.webapi.shadow.javax.servlet"
relocate "javax.validation", "valandur.webapi.shadow.javax.validation"
relocate "javax.ws", "valandur.webapi.shadow.javax.ws"
relocate "javax.xml.stream", "valandur.webapi.shadow.javax.xml.stream"

relocate "jersey.repackaged", "valandur.webapi.shadow.jersey.repackaged"

relocate "net.jcip.annotations", "valandur.webapi.shadow.net.jcip.annotations"

relocate "org.aopalliance", "valandur.webapi.shadow.org.aopalliance"
relocate "org.codehaus", "valandur.webapi.shadow.org.codehaus"
relocate "org.threeten", "valandur.webapi.shadow.org.threeten"

relocate "org.eclipse.jetty.http", "valandur.webapi.shadow.org.eclipse.jetty.http"
relocate "org.eclipse.jetty.io", "valandur.webapi.shadow.org.eclipse.jetty.io"
relocate "org.eclipse.jetty.rewrite", "valandur.webapi.shadow.org.eclipse.jetty.rewrite"
relocate "org.eclipse.jetty.security", "valandur.webapi.shadow.org.eclipse.jetty.security"
relocate "org.eclipse.jetty.server", "valandur.webapi.shadow.org.eclipse.jetty.server"
relocate "org.eclipse.jetty.servlet", "valandur.webapi.shadow.org.eclipse.jetty.servlet"
relocate "org.eclipse.jetty.util", "valandur.webapi.shadow.org.eclipse.jetty.util"
relocate "org.eclipse.jetty.version", "valandur.webapi.shadow.org.eclipse.jetty.version"

relocate "org.glassfish", "valandur.webapi.shadow.org.glassfish"
relocate "org.intellij", "valandur.webapi.shadow.org.intellij"
relocate "org.jetbrains", "valandur.webapi.shadow.org.jetbrains"
relocate "org.jvnet", "valandur.webapi.shadow.org.jvnet"
relocate "org.mindrot", "valandur.webapi.shadow.org.mindrot"
relocate "org.reflections", "valandur.webapi.shadow.org.reflections"

relocate "org.slf4j.event", "valandur.webapi.shadow.org.slf4j.event"
relocate "org.slf4j.helpers", "valandur.webapi.shadow.org.slf4j.helpers"
relocate "org.slf4j.spi", "valandur.webapi.shadow.org.slf4j.spi"

relocate "org.yaml", "valandur.webapi.shadow.org.yaml"

// Provided by Sponge/Minecraft
dependencies {
exclude(dependency("org.apache.commons.*:"))
exclude(dependency("com.google.guava.*:"))
exclude(dependency("org.slf4j.*:"))
repositories {
maven {
url "https://repo.spongepowered.org/maven/"
}
}

exclude "/about.html"
exclude "/jetty-dir.css"
exclude "/org/eclipse/jetty/favicon.ico"

archiveName = "webapi-${version}.jar"
}

task copyJars(type: Copy) {
from([shadowJar])
into project.file("artifacts")
}
copyJars.dependsOn(shadowJar)

artifacts {
archives shadowJar
}

build.dependsOn(shadowJar)
build.dependsOn(copyJars)
}
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version=5.4.1
version=5.4.2

minecraftVersion=1.12.2
spongeVersion=7.1.0

jacksonVersion=2.9.4
jettyVersion=9.4.8.v20171121
6 changes: 4 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include 'webapi-server'
include 'webapi-lib'
rootProject.name = "webapi"

include "webapi-server"
include "webapi-lib"
include "webapi-sponge"
16 changes: 0 additions & 16 deletions webapi-lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
plugins {
id 'java'
}

group 'valandur.webapi'
version = "${project.version}-S${project.spongeVersion}"

sourceCompatibility = 1.8

repositories {
mavenCentral()
maven {
url "https://repo.spongepowered.org/maven/"
}
}

dependencies {
compileOnly group: "com.fasterxml.jackson.core", name: "jackson-annotations", version: project.jacksonVersion

Expand Down
17 changes: 0 additions & 17 deletions webapi-server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
plugins {
id 'java'
id "com.github.johnrengelman.shadow"
}

group = "valandur.webapi"
version = "${project.version}-S${project.spongeVersion}"

sourceCompatibility = 1.8

repositories {
mavenCentral()
maven {
url "https://repo.spongepowered.org/maven/"
}
}

dependencies {
compile project(":webapi-lib")

Expand Down
Loading

0 comments on commit 32600e6

Please sign in to comment.