bf/build.gradle.kts
Ashhhleyyy 6f50ed0eba
Some checks failed
Maven release / build (push) Failing after 1m0s
fix(build): make ASM an api dependency
2024-03-12 20:52:12 +00:00

46 lines
980 B
Text

plugins {
id("java")
id("application")
id("maven-publish")
}
group = "dev.ashhhleyyy"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
val asmVersion = "9.6"
api("org.ow2.asm:asm:$asmVersion")
api("org.ow2.asm:asm-tree:$asmVersion")
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
repositories {
if (System.getenv("MAVEN_URL") != null) {
maven {
name = "ashhhleyyy"
setUrl(System.getenv("MAVEN_URL"))
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
} else {
mavenLocal()
}
}
}