msb3/api/build.gradle

84 lines
2.0 KiB
Groovy

plugins {
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
version = MSB3_VERSION
tasks {
shadowJar {
manifest {
attributes (
"Multi-Release": true,
"Add-Opens": "java.base/java.lang " +
"java.base/java.lang.reflect"
)
}
mergeServiceFiles()
}
java {
targetCompatibility = JavaVersion.VERSION_21
}
assemble {
dependsOn shadowJar, processResources
}
}
dependencies {
api project(":resource-compiler")
api 'net.minestom:minestom-snapshots:8209a1d1e9' // stableVersion: 1_21_4-6490538291
api 'de.articdive:jnoise-pipeline:4.1.0'
api 'org.slf4j:slf4j-api:2.0.16'
api 'org.apache.logging.log4j:log4j-slf4j2-impl:2.24.0'
api 'org.apache.logging.log4j:log4j-api:2.24.0'
api 'org.apache.logging.log4j:log4j-core:2.19.0'
api 'org.spongepowered:configurate-hocon:4.2.0'
api 'org.spongepowered:configurate-gson:4.2.0'
api 'org.spongepowered:configurate-yaml:4.2.0'
api 'org.sql2o:sql2o:1.8.0'
api 'com.clickhouse:clickhouse-jdbc:0.7.1'
api 'org.lz4:lz4-java:1.8.0'
api 'io.prometheus:prometheus-metrics-core:1.3.1'
api 'io.prometheus:prometheus-metrics-instrumentation-jvm:1.3.1'
api 'io.prometheus:prometheus-metrics-exporter-httpserver:1.3.1'
implementation 'org.apache.commons:commons-text:1.10.0'
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'ru.dragonestia.msb3'
artifactId = 'msb-api'
version = MSB3_VERSION
from components.java
}
}
repositories {
maven {
name = "Gitea"
url = uri(MSB3_MAVEN_REPOSITORY)
allowInsecureProtocol = true
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${dragonestiaGiteaToken}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}