Refactor build scripts and Jenkinsfile
This commit is contained in:
+9
-12
@@ -1,31 +1,28 @@
|
||||
plugins {
|
||||
`maven-publish`
|
||||
id("java-library")
|
||||
id("maven-publish")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("io.papermc.paper:paper-api:1.21.6-R0.1-SNAPSHOT")
|
||||
}
|
||||
|
||||
tasks {
|
||||
jar {
|
||||
enabled = true
|
||||
}
|
||||
// Configure API-specific settings
|
||||
base {
|
||||
archivesName.set("DataLockLibApi")
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("mavenJava") {
|
||||
artifactId = "api"
|
||||
from(components["java"])
|
||||
}
|
||||
}
|
||||
|
||||
repositories{
|
||||
repositories {
|
||||
maven {
|
||||
name = "nexus"
|
||||
url = uri("https://repo.alttd.com/repository/alttd-snapshot/")
|
||||
credentials {
|
||||
username = project.property("alttdDevPublishUser") as String
|
||||
password = project.property("alttdDevPublishPass") as String
|
||||
username = project.findProperty("alttdDevPublishUser")?.toString()
|
||||
password = project.findProperty("alttdDevPublishPass")?.toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user