2022-05-06 01:51:35 +00:00
|
|
|
plugins {
|
|
|
|
java
|
2022-05-06 02:04:31 +00:00
|
|
|
`maven-publish`
|
2022-05-06 01:51:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "dev.plex"
|
|
|
|
version = "0.7.3"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation("com.google.code.gson:gson:2.9.0")
|
2022-05-06 02:04:31 +00:00
|
|
|
implementation("org.projectlombok:lombok:1.18.24")
|
|
|
|
implementation("org.jetbrains:annotations:23.0.0")
|
|
|
|
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
2022-05-06 02:11:15 +00:00
|
|
|
create<MavenPublication>("maven") {
|
|
|
|
from(components["java"])
|
|
|
|
}
|
2022-05-06 02:04:31 +00:00
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
val releasesRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-releases")
|
|
|
|
val snapshotsRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-snapshots")
|
|
|
|
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
|
|
|
|
credentials {
|
|
|
|
username = System.getenv("plexUser")
|
|
|
|
password = System.getenv("plexPassword")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-05-06 01:51:35 +00:00
|
|
|
}
|