-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (36 loc) · 1.12 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
46
import org.ajoberstar.grgit.Grgit
plugins {
id("org.ajoberstar.grgit") version "5.2.0"
}
logger.lifecycle("Version: $libraryVersion (release: $isRelease)")
allprojects {
group = "gay.vzt.saisei"
version = libraryVersion
repositories {
maven("https://maven.dimensional.fun/releases")
mavenCentral()
maven("https://jitpack.io")
mavenLocal()
}
}
subprojects {
apply(plugin = "kotlinx-atomicfu")
if (name == "codegen") {
return@subprojects
}
// lol
apply(plugin = "saisei-module")
val repoAlias = System.getenv("REPO_ALIAS")
val repoToken = System.getenv("REPO_TOKEN")
if (!repoAlias.isNullOrBlank() && !repoToken.isNullOrBlank()) configure<PublishingExtension> {
repositories {
maven("https://maven.dimensional.fun/${if (isRelease) "release" else "snapshot"}s") {
credentials.username = System.getenv("REPO_ALIAS")
credentials.password = System.getenv("REPO_TOKEN")
}
}
publications.withType<MavenPublication>().forEach {
// TODO: pom
}
}
}