-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
84 lines (74 loc) · 2.79 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
/*
* Copyright 2020-2020 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
import org.jmailen.gradle.kotlinter.*
plugins {
kotlin("multiplatform") apply false
kotlin("plugin.serialization") apply false
id("binary-compatibility-validator")
`maven-publish`
id("org.jmailen.kotlinter") version "3.9.0" apply false
}
allprojects {
group = "org.jetbrains.kotlinx.experimental"
repositories {
mavenCentral()
}
if (project != rootProject) {
apply {
plugin("org.jetbrains.kotlin.multiplatform")
plugin("maven-publish")
plugin("org.jmailen.kotlinter")
}
extensions.findByType<KotlinterExtension>()?.apply {
disabledRules = arrayOf("no-wildcard-imports", "no-unused-imports")
experimentalRules = true
}
}
task("emptyJar", Jar::class) {
}
publishing {
publications {
all {
if (this is MavenPublication) {
artifact(tasks.getByName("emptyJar")) {
classifier = "javadoc"
}
pom {
name.set("Kotlin UUID library")
description.set(project.description?.takeIf { it.isNotBlank() }
?: "Library for generating and manipulating UUID")
url.set("https://github.com/cy6erGn0m/kotlinx-uuid")
developers {
developer {
name.set("Sergey Mashkov")
email.set("[email protected]")
}
}
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
scm {
connection.set("scm:git:https://github.com/cy6erGn0m/kotlinx-uuid.git")
developerConnection.set("scm:git:https://github.com/cy6erGn0m/kotlinx-uuid.git")
url.set("https://github.com/cy6erGn0m/kotlinx-uuid/")
}
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/cy6ergn0m/kotlinx-uuid")
credentials {
username = System.getenv("USERNAME")
password = System.getenv("TOKEN")
}
}
}
}
}
}