mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2025-02-01 23:11:35 +01:00
Added auto-publish for the API module
This commit is contained in:
parent
2c75d7e616
commit
c3fa896ed2
@ -2,4 +2,31 @@ group 'API'
|
||||
|
||||
dependencies {
|
||||
compileOnly "org.spigotmc:v1_8_R1:latest"
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
groupId = 'com.bgsoftware'
|
||||
artifactId = 'WildLoadersAPI'
|
||||
version = System.getenv("BUILD_NUMBER") == null ? parent.version : parent.version + "." + System.getenv("BUILD_NUMBER")
|
||||
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
String mavenUsername = System.getenv('mavenUsername') == null ? project.mavenUsername : System.getenv('mavenUsername');
|
||||
String mavenPassword = System.getenv('mavenPassword') == null ? project.mavenUsername : System.getenv('mavenPassword');
|
||||
|
||||
if (mavenUsername != null && mavenPassword != null) {
|
||||
maven {
|
||||
url 'https://repo.bg-software.com/repository/api/'
|
||||
credentials {
|
||||
username mavenUsername
|
||||
password mavenPassword
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user