Migrate to Gradle 7+

This commit is contained in:
Nanit 2021-10-28 20:14:45 +03:00
parent 31f1772316
commit c445b07564

View File

@ -1,5 +1,5 @@
plugins { plugins {
id 'com.github.johnrengelman.shadow' version '6.1.0' id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'java' id 'java'
} }
@ -11,11 +11,13 @@ repositories {
} }
dependencies { dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
compile files('libs/napi-configurate-yaml-1.0.jar') testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
compile group: 'org.yaml', name: 'snakeyaml', version: '1.27'
compile group: 'io.netty', name: 'netty-all', version: '4.1.54.Final' implementation files('libs/napi-configurate-yaml-1.0.jar')
compile group: 'net.kyori', name: 'adventure-nbt', version: '4.1.1' implementation group: 'org.yaml', name: 'snakeyaml', version: '1.27'
implementation group: 'io.netty', name: 'netty-all', version: '4.1.54.Final'
implementation group: 'net.kyori', name: 'adventure-nbt', version: '4.1.1'
} }
jar { jar {
@ -26,4 +28,8 @@ jar {
shadowJar{ shadowJar{
minimize() minimize()
}
test {
useJUnitPlatform()
} }