Yatopia/subprojects/api.gradle.kts

35 lines
633 B
Plaintext
Raw Permalink Normal View History

repositories {
loadRepositories(project)
}
dependencies {
loadDependencies(project)
}
java {
withJavadocJar()
}
2021-01-22 16:06:28 +01:00
publishing {
publications {
create<MavenPublication>("api") {
from(components.getByName("java"))
}
}
repositories {
maven {
val releasesRepo = "https://repo.codemc.org/repository/maven-releases/"
val snapshotsRepo = "https://repo.codemc.org/repository/maven-snapshots/"
val versionString = project.version.toString()
url = if (versionString.endsWith("-SNAPSHOT")) {
uri(snapshotsRepo)
} else {
uri(releasesRepo)
}
credentials(PasswordCredentials::class)
}
}
}