46 lines
980 B
Text
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()
|
|
}
|
|
}
|
|
}
|