-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
build.gradle.kts
63 lines (49 loc) · 1022 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
maven {
name = "Kord Snapshots"
url = uri("https://repo.kord.dev/snapshots")
}
}
}
plugins {
`maven-publish`
kotlin("jvm")
id("org.jetbrains.dokka")
}
val projectVersion: String by project
group = "dev.kordex"
version = projectVersion
val printVersion = task("printVersion") {
doLast {
print(version.toString())
}
}
repositories {
// This is here because Dokka will fail to build in CI otherwise.
google()
mavenCentral()
maven {
name = "Kord Snapshots"
url = uri("https://repo.kord.dev/snapshots")
}
}
subprojects {
group = "dev.kordex"
version = projectVersion
repositories {
// This is here because Dokka will fail to build in CI otherwise.
rootProject.repositories.forEach {
if (it is MavenArtifactRepository) {
maven {
name = it.name
url = it.url
}
}
}
}
tasks.withType<KotlinCompile> {
// Removing this block breaks the build, and I don't know why!
}
}