-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
45 lines (40 loc) · 1.36 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
38
39
40
41
42
43
44
45
plugins {
// Unique plugins for this module
}
dependencies {
// Both shared-jar and standalone-utils inherit from shared-utils
// We should exclude one of them to avoid duplicate classes
api(project(":shared-jar"))
api(project(":standalone-utils")) {
exclude(group = "com.kamikazejam.kamicommon", module = "shared-utils")
}
// org.json (standalone-utils) and google gson needed for for jedis (in :shared-jar) to work properly
api("com.google.code.gson:gson:2.11.0")
}
tasks {
publish.get().dependsOn(build.get())
}
publishing {
publications {
create<MavenPublication>("shadow") {
groupId = rootProject.group.toString()
artifactId = project.name
version = rootProject.version.toString()
from(components["java"])
}
}
repositories {
maven {
credentials {
username = System.getenv("LUXIOUS_NEXUS_USER")
password = System.getenv("LUXIOUS_NEXUS_PASS")
}
// Select URL based on version (if it's a snapshot or not)
url = if (project.version.toString().endsWith("-SNAPSHOT")) {
uri("https://repo.luxiouslabs.net/repository/maven-snapshots/")
}else {
uri("https://repo.luxiouslabs.net/repository/maven-releases/")
}
}
}
}