mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-12-01 15:13:24 +01:00
35 lines
633 B
Plaintext
35 lines
633 B
Plaintext
repositories {
|
|
loadRepositories(project)
|
|
}
|
|
|
|
dependencies {
|
|
loadDependencies(project)
|
|
}
|
|
|
|
java {
|
|
withJavadocJar()
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
}
|