-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
86 lines (78 loc) · 2.5 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
plugins {
val kotlinVersion = "1.6.0"
kotlin("multiplatform") version kotlinVersion apply false
kotlin("plugin.serialization") version kotlinVersion apply false
`maven-publish`
id("org.jetbrains.dokka") version "0.10.0"
//id("de.gesellix.docker") version "2021-12-18T23-58-00"
id("com.avast.gradle.docker-compose") version "0.14.13" apply false
}
group = "de.mtorials"
version = "0.3.0"
allprojects {
repositories {
mavenCentral()
jcenter()
maven {
url = uri("https://git.mt32.net/api/v4/groups/mtorials/-/packages/maven")
name = "GitLab"
credentials(HttpHeaderCredentials::class) {
name = "Job-Token"
value = System.getenv("CI_JOB_TOKEN")
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
maven("https://maven.pkg.github.com/Dominaezzz/matrix-kt") {
credentials {
username = System.getenv("GH_USER")
password = System.getenv("GH_TOKEN")
}
}
}
}
subprojects {
apply(plugin = "maven-publish")
this.group = rootProject.group.toString() + ".dial-phone"
this.version = rootProject.version
// Exclude all projects with tests from publishing
if (this.tasks.filterIsInstance<Task>().isNotEmpty()) {
publishing {
repositories {
mavenLocal()
maven {
url = uri("https://git.mt32.net/api/v4/projects/59/packages/maven")
name = "GitLab"
credentials(HttpHeaderCredentials::class) {
name = "Job-Token"
value = System.getenv("CI_JOB_TOKEN")
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
}
publications {
create<MavenPublication>("maven") {
artifactId = this.name
}
}
}
}
}
extra.apply {
set("ktorVersion", "2.0.1")
set("kotlinxCoroutinesVersion", "1.6.0")
set("kotlinxSerializationVersion", "1.3.3")
}
val name = "dial-phone"
tasks.dokka {
outputFormat = "html"
outputDirectory = "$buildDir/javadoc"
}
val dokkaJar by tasks.creating(Jar::class) {
group = JavaBasePlugin.DOCUMENTATION_GROUP
description = "Documentation for DialPhone."
from(tasks.dokka)
}