forked from mwanji/toml4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
37 lines (33 loc) · 1.01 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
plugins {
java
`maven-publish`
}
group = "dev.plex"
version = "0.7.3"
repositories {
mavenCentral()
}
dependencies {
implementation("com.google.code.gson:gson:2.9.0")
implementation("org.projectlombok:lombok:1.18.24")
implementation("org.jetbrains:annotations:23.0.0")
annotationProcessor("org.projectlombok:lombok:1.18.24")
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
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")
}
}
}
}
}