forked from Sable/axml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
46 lines (39 loc) · 969 Bytes
/
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
46
group = "com.aliucord"
version = "1.0.1"
plugins {
id("java-library")
id("maven-publish")
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.slf4j:slf4j-api:2.0.1")
}
java {
withSourcesJar()
}
publishing {
publications {
register("axml", MavenPublication::class) {
artifactId = "axml"
artifact(tasks["jar"])
artifact(tasks["sourcesJar"])
}
}
repositories {
val username = System.getenv("MAVEN_USERNAME")
val password = System.getenv("MAVEN_PASSWORD")
if (username != null && password != null) {
maven {
credentials {
this.username = username
this.password = password
}
setUrl("https://maven.aliucord.com/snapshots")
}
} else {
mavenLocal()
}
}
}