WildLoaders/API/build.gradle
2024-03-01 14:19:44 +02:00

40 lines
839 B
Groovy

plugins {
id 'maven-publish'
}
java {
withSourcesJar()
}
group 'API'
dependencies {
compileOnly "org.spigotmc:v1_8_R1:latest"
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.bgsoftware'
artifactId = 'WildLoadersAPI'
version = parent.version
from components.java
}
}
repositories {
String mavenUsername = System.getenv('mavenUsername');
String mavenPassword = System.getenv('mavenPassword');
if (mavenUsername != null && mavenPassword != null) {
maven {
url 'https://repo.bg-software.com/repository/api/'
credentials {
username mavenUsername
password mavenPassword
}
}
}
}
}