bf/build.gradle.kts
Ashhhleyyy f82be6d14f
Some checks failed
Maven release / build (push) Has been cancelled
chore: add CI
2024-03-12 20:20:19 +00:00

45 lines
978 B
Text

plugins {
id("java")
id("application")
}
group = "dev.ashhhleyyy"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
val asmVersion = "9.6"
implementation("org.ow2.asm:asm:$asmVersion")
implementation("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()
}
}
}