-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathbuild.gradle.kts
55 lines (44 loc) · 1.37 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
import java.time.Duration
buildscript {
repositories {
mavenCentral()
}
}
plugins {
val kotlin_version: String by System.getProperties()
val nexus_version: String by System.getProperties()
kotlin("multiplatform") version kotlin_version apply false
id("io.github.gradle-nexus.publish-plugin") version nexus_version
}
val kotlin_version: String by System.getProperties()
val multik_version: String by project
val unpublished = listOf("multik")
allprojects {
repositories {
mavenCentral()
}
group = "org.jetbrains.kotlinx"
version = multik_version
}
configure(subprojects.filter { it.name !in unpublished }) {
apply("$rootDir/gradle/publish.gradle")
}
tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask>().configureEach {
args.add("--ignore-engines")
}
val sonatypeUser: String = System.getenv("SONATYPE_USER") ?: ""
val sonatypePassword: String = System.getenv("SONATYPE_PASSWORD") ?: ""
nexusPublishing {
packageGroup.set(project.group.toString())
this.repositories {
sonatype {
username.set(sonatypeUser)
password.set(sonatypePassword)
repositoryDescription.set("kotlinx.multik staging repository, version: $version")
}
}
transitionCheckOptions {
maxRetries.set(100)
delayBetween.set(Duration.ofSeconds(5))
}
}