-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
36 lines (31 loc) · 1.04 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
plugins {
java
`maven-publish`
}
group = "com.twelveiterations.keycloak"
repositories {
mavenCentral()
}
dependencies {
val keycloakVersion: String by properties
implementation("org.keycloak:keycloak-server-spi-private:$keycloakVersion")
implementation("org.keycloak:keycloak-server-spi:$keycloakVersion")
implementation("org.keycloak:keycloak-services:$keycloakVersion")
implementation("org.apache.httpcomponents:httpclient:4.5.13")
}
publishing {
repositories {
maven {
val releasesRepoUrl = "https://nexus.twelveiterations.com/repository/maven-releases-private/"
val snapshotsRepoUrl = "https://nexus.twelveiterations.com/repository/maven-snapshots-private/"
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
name = "twelveIterationsNexus"
credentials(PasswordCredentials::class)
}
}
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}