2024-01-11 12:21:23 -05:00
|
|
|
plugins {
|
|
|
|
id("mcprotocollib.publish-conventions")
|
2024-06-17 03:16:08 -04:00
|
|
|
jacoco
|
2024-01-11 12:21:23 -05:00
|
|
|
}
|
|
|
|
|
2024-05-03 11:51:24 -04:00
|
|
|
version = "1.21-SNAPSHOT"
|
2024-01-11 12:21:23 -05:00
|
|
|
description = "MCProtocolLib is a simple library for communicating with Minecraft clients and servers."
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// Minecraft related libraries
|
2024-04-26 21:32:57 -04:00
|
|
|
api(libs.cloudburstnbt)
|
2024-06-17 16:23:42 -04:00
|
|
|
|
|
|
|
// Gson
|
|
|
|
api(libs.gson)
|
|
|
|
|
|
|
|
// MinecraftAuth for authentication
|
|
|
|
api(libs.minecraftauth)
|
2024-01-11 12:21:23 -05:00
|
|
|
|
2024-06-02 11:25:35 -04:00
|
|
|
// Slf4j
|
|
|
|
api(libs.slf4j.api)
|
|
|
|
|
2024-01-11 12:21:23 -05:00
|
|
|
// Kyori adventure
|
|
|
|
api(libs.bundles.adventure)
|
|
|
|
|
|
|
|
// Math utilities
|
|
|
|
api(libs.bundles.math)
|
|
|
|
|
|
|
|
// Stripped down fastutil
|
|
|
|
api(libs.bundles.fastutil)
|
|
|
|
|
|
|
|
// Netty
|
|
|
|
api(libs.bundles.netty)
|
|
|
|
|
|
|
|
// Checker Framework
|
|
|
|
api(libs.checkerframework.qual)
|
|
|
|
|
|
|
|
// Test dependencies
|
|
|
|
testImplementation(libs.junit.jupiter)
|
2024-06-18 11:14:41 -04:00
|
|
|
testImplementation(libs.slf4j.simple)
|
2024-01-11 12:21:23 -05:00
|
|
|
}
|
2024-06-17 03:16:08 -04:00
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
finalizedBy(tasks.jacocoTestReport)
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.jacocoTestReport {
|
|
|
|
dependsOn(tasks.test)
|
|
|
|
reports {
|
|
|
|
xml.required = false
|
|
|
|
csv.required = false
|
|
|
|
html.outputLocation = layout.buildDirectory.dir("jacocoHtml")
|
|
|
|
}
|
|
|
|
}
|