Specify Java 8 compatibility

This commit is contained in:
ButterscotchVanilla
2021-08-10 21:46:03 -04:00
parent 110554a180
commit 202b15e8a8

View File

@@ -11,6 +11,9 @@ plugins {
id 'java-library'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
@@ -31,7 +34,7 @@ dependencies {
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'com.google.guava:guava:28.2-jre'
// Use JUnit test framework
testImplementation platform('org.junit:junit-bom:5.7.2')
@@ -48,7 +51,7 @@ task serverJar (type: Jar, dependsOn: subprojects.tasks['build']) {
manifest {
attributes 'Main-Class': 'io.eiren.vr.Main'
}
// Pack all dependencies within the JAR
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }