Upgrade gradle version to 7.0.2

This commit is contained in:
JësFot 2021-05-18 21:34:25 +02:00
parent cc97062dfa
commit b49fb9cacf
3 changed files with 9 additions and 7 deletions

View File

@ -2,9 +2,7 @@ import org.gradle.internal.os.OperatingSystem
plugins {
id 'java-library'
id 'java'
id 'maven-publish'
id 'net.ltgt.apt' version '0.10'
id 'org.jetbrains.kotlin.jvm' version '1.5.0'
id 'checkstyle'
}
@ -12,7 +10,7 @@ plugins {
group 'net.minestom.server'
version '1.0'
sourceCompatibility = 1.11
sourceCompatibility = 11
project.ext.lwjglVersion = "3.2.3"
switch (OperatingSystem.current()) {
@ -53,7 +51,7 @@ allprojects {
// see https://stackoverflow.com/a/56641766
doLast {
// Append the fix to the file
def searchScript = new File(destinationDir.getAbsolutePath() + '/search.js')
def searchScript = new File(destinationDir, '/search.js')
searchScript.append '\n\n' +
'getURLPrefix = function(ui) {\n' +
' return \'\';\n' +
@ -62,7 +60,7 @@ allprojects {
}
checkstyle {
toolVersion "8.37"
toolVersion "8.42"
configFile file("${projectDir}/minestom_checks.xml")
}
}
@ -114,6 +112,10 @@ test {
useJUnitPlatform()
}
tasks.withType(Zip).configureEach {
duplicatesStrategy DuplicatesStrategy.EXCLUDE
}
dependencies {
// Junit Testing Framework
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.2'

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@ -277,7 +277,7 @@
value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
</module>
<module name="JavadocMethod">
<property name="scope" value="public"/>
<property name="accessModifiers" value="public"/>
<property name="allowMissingParamTags" value="true"/>
<property name="allowMissingReturnTag" value="true"/>
<property name="allowedAnnotations" value="Override, Test"/>