3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-12-26 00:00:55 +01:00
Velocity/build.gradle

65 Zeilen
1.6 KiB
Groovy

plugins {
id 'java'
2018-07-24 21:59:28 +02:00
id 'com.github.johnrengelman.shadow' version '2.0.4'
}
2018-07-26 01:47:59 +02:00
group 'com.velocitypowered'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
2018-07-26 07:58:56 +02:00
targetCompatibility = 1.8
ext {
// dependency versions
junitVersion = '5.3.0-M1'
log4jVersion = '2.11.0'
2018-07-31 01:02:08 +02:00
nettyVersion = '4.1.28.Final'
}
repositories {
2018-07-26 07:58:56 +02:00
mavenLocal()
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/groups/public/'
}
}
dependencies {
2018-07-26 07:58:56 +02:00
compile 'com.google.code.gson:gson:2.8.5'
compile 'com.google.guava:guava:25.1-jre'
2018-07-26 20:02:23 +02:00
compile "io.netty:netty-codec:${nettyVersion}"
compile "io.netty:netty-codec-http:${nettyVersion}"
compile "io.netty:netty-handler:${nettyVersion}"
2018-07-27 06:52:04 +02:00
compile "io.netty:netty-transport-native-epoll:${nettyVersion}"
compile "io.netty:netty-transport-native-epoll:${nettyVersion}:linux-x86_64"
compile 'net.kyori:text:1.12-1.6.0-SNAPSHOT'
compile "org.apache.logging.log4j:log4j-api:${log4jVersion}"
compile "org.apache.logging.log4j:log4j-core:${log4jVersion}"
compile 'com.moandjiezana.toml:toml4j:0.7.2'
testCompile "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testCompile "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
}
jar {
manifest {
attributes 'Main-Class': 'com.velocitypowered.proxy.Velocity'
attributes 'Implementation-Version': project.version
}
}
task javadocJar(type: Jar) {
classifier 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar
archives shadowJar
archives sourcesJar
}