bf/build.gradle.kts

47 lines
1,002 B
Text
Raw Normal View History

2024-03-12 15:44:26 +00:00
plugins {
id("java")
id("application")
id("maven-publish")
2024-03-12 15:44:26 +00:00
}
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()
2024-03-12 20:20:19 +00:00
}
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()
}
}
}