2018-07-31 22:12:41 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'com.github.johnrengelman.shadow' version '2.0.4'
|
2018-08-07 16:24:01 +02:00
|
|
|
id 'de.sebastianboegl.shadow.transformer.log4j' version '2.1.1'
|
2018-10-28 04:45:35 +01:00
|
|
|
id 'checkstyle'
|
2018-07-31 22:12:41 +02:00
|
|
|
}
|
|
|
|
|
2018-10-28 02:45:42 +01:00
|
|
|
apply from: '../gradle/checkerframework.gradle'
|
2018-10-28 04:45:35 +01:00
|
|
|
apply from: '../gradle/checkstyle.gradle'
|
2018-07-31 22:12:41 +02:00
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
2018-09-04 03:02:11 +02:00
|
|
|
def buildNumber = System.getenv("BUILD_NUMBER") ?: "unknown"
|
2018-09-29 20:54:46 +02:00
|
|
|
def version = "${project.version} (git-${project.ext.getCurrentShortRevision()}-b${buildNumber})"
|
2018-09-04 03:02:11 +02:00
|
|
|
|
2018-07-31 22:12:41 +02:00
|
|
|
attributes 'Main-Class': 'com.velocitypowered.proxy.Velocity'
|
2018-10-25 07:56:41 +02:00
|
|
|
attributes 'Implementation-Title': "Velocity"
|
2018-09-04 03:02:11 +02:00
|
|
|
attributes 'Implementation-Version': version
|
2018-10-25 07:56:41 +02:00
|
|
|
attributes 'Implementation-Vendor': "Velocity Contributors"
|
2018-07-31 22:12:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-09-30 05:28:44 +02:00
|
|
|
// Note: we depend on the API twice, first the main sourceset, and then the annotation processor.
|
2018-07-31 22:12:41 +02:00
|
|
|
compile project(':velocity-api')
|
2018-09-30 05:28:44 +02:00
|
|
|
compile project(':velocity-api').sourceSets.ap.output
|
2018-08-01 06:20:39 +02:00
|
|
|
compile project(':velocity-native')
|
2018-08-07 16:24:01 +02:00
|
|
|
|
2018-07-31 22:12:41 +02:00
|
|
|
compile "io.netty:netty-codec:${nettyVersion}"
|
2018-10-04 20:33:27 +02:00
|
|
|
compile "io.netty:netty-codec-haproxy:${nettyVersion}"
|
2018-07-31 22:12:41 +02:00
|
|
|
compile "io.netty:netty-codec-http:${nettyVersion}"
|
|
|
|
compile "io.netty:netty-handler:${nettyVersion}"
|
|
|
|
compile "io.netty:netty-transport-native-epoll:${nettyVersion}"
|
|
|
|
compile "io.netty:netty-transport-native-epoll:${nettyVersion}:linux-x86_64"
|
2018-08-08 16:10:11 +02:00
|
|
|
compile "io.netty:netty-transport-native-kqueue:${nettyVersion}:osx-x86_64"
|
2018-08-07 16:24:01 +02:00
|
|
|
|
2018-07-31 22:12:41 +02:00
|
|
|
compile "org.apache.logging.log4j:log4j-api:${log4jVersion}"
|
|
|
|
compile "org.apache.logging.log4j:log4j-core:${log4jVersion}"
|
2018-08-21 01:30:32 +02:00
|
|
|
compile "org.apache.logging.log4j:log4j-slf4j-impl:${log4jVersion}"
|
2018-08-07 16:24:01 +02:00
|
|
|
|
|
|
|
compile 'net.minecrell:terminalconsoleappender:1.1.1'
|
|
|
|
runtime 'net.java.dev.jna:jna:4.5.2' // Needed for JLine
|
|
|
|
runtime 'com.lmax:disruptor:3.4.2' // Async loggers
|
|
|
|
|
2018-08-11 03:32:27 +02:00
|
|
|
compile 'it.unimi.dsi:fastutil:8.2.1'
|
2018-08-21 01:30:32 +02:00
|
|
|
compile 'net.kyori:event-method-asm:3.0.0'
|
2018-08-11 03:32:27 +02:00
|
|
|
|
2018-07-31 22:12:41 +02:00
|
|
|
testCompile "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
|
|
|
|
testCompile "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
|
|
|
|
}
|
|
|
|
|
2018-08-11 03:32:27 +02:00
|
|
|
shadowJar {
|
|
|
|
exclude 'it/unimi/dsi/fastutil/booleans/**'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/bytes/**'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/chars/**'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/doubles/**'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/floats/**'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/ints/*Int2*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/ints/IntAVL*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/ints/IntArray*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/ints/IntBi*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/ints/IntList*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/ints/IntOpen*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/ints/IntRB*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/ints/IntSet*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/ints/IntSorted*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/io/**'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/longs/**'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*ObjectArray*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*ObjectAVL*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object*Big*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2Boolean*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2Byte*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2Char*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2Double*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2Float*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2IntArray*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2IntAVL*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2IntLinked*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object*OpenCustom*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2IntRB*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2IntSorted*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2Long*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2Object*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2Reference*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Object2Short*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*ObjectRB*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*ObjectSorted*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/objects/*Reference*'
|
|
|
|
exclude 'it/unimi/dsi/fastutil/shorts/**'
|
|
|
|
}
|
|
|
|
|
2018-07-31 22:12:41 +02:00
|
|
|
artifacts {
|
|
|
|
archives shadowJar
|
2018-08-07 16:24:01 +02:00
|
|
|
}
|