BlueMap/core/build.gradle.kts
Lukas Rieger 1454297bbd
Rework gradle-build system (#574)
* Rework gradle-build setup

* Fix versioning

* Fix github build

* Configure publishing

* Push BlueMapAPI

* Reorganize project naming

* Update neoforge-gradle

* Add gradle-stracktrace to github action

* Remove clean gradle target to hopefully no longer upset neogradle for some reason

* Update gradle and add stacktrace to github action again

* Update neogradle

* Switch to neoforges ModDevGradle
2024-09-12 17:45:21 +02:00

63 lines
1.5 KiB
Plaintext

plugins {
bluemap.base
}
dependencies {
api ( "de.bluecolored:api" )
api ( libs.aircompressor )
api ( libs.bluenbt )
api ( libs.caffeine )
api ( libs.commons.dbcp2 )
api ( libs.configurate.hocon )
api ( libs.configurate.gson )
api ( libs.lz4 )
compileOnly ( libs.jetbrains.annotations )
compileOnly ( libs.lombok )
annotationProcessor ( libs.lombok )
// tests
testImplementation ( libs.junit.core )
testRuntimeOnly ( libs.junit.engine )
testRuntimeOnly ( libs.lombok )
testAnnotationProcessor ( libs.lombok )
}
tasks.register("zipResourceExtensions", type = Zip::class) {
from(fileTree("src/main/resourceExtensions"))
archiveFileName = "resourceExtensions.zip"
destinationDirectory = file("src/main/resources/de/bluecolored/bluemap/")
}
tasks.processResources {
dependsOn("zipResourceExtensions")
from("src/main/resources") {
include("de/bluecolored/bluemap/version.json")
duplicatesStrategy = DuplicatesStrategy.INCLUDE
expand (
"version" to project.version,
"gitHash" to gitHash() + if (gitClean()) "" else " (dirty)",
)
}
}
tasks.getByName("sourcesJar") {
dependsOn("zipResourceExtensions")
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = "bluemap-${project.name}"
version = project.version.toString()
from(components["java"])
}
}
}