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-07-31 22:12:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileJava {
|
|
|
|
options.compilerArgs += ['-proc:none']
|
|
|
|
}
|
|
|
|
|
|
|
|
compileTestJava {
|
|
|
|
options.compilerArgs += ['-proc:none']
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes 'Main-Class': 'com.velocitypowered.proxy.Velocity'
|
|
|
|
attributes 'Implementation-Version': project.version
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':velocity-api')
|
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}"
|
|
|
|
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-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-07-31 22:12:41 +02:00
|
|
|
testCompile "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
|
|
|
|
testCompile "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives shadowJar
|
2018-08-07 16:24:01 +02:00
|
|
|
}
|