-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
39 lines (34 loc) · 987 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
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
kotlin("js") apply false
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri(Project.publishUrl))
snapshotRepositoryUrl.set(uri(Project.snapshotUrl))
username.set(System.getenv("OSSRH_USER") ?: return@sonatype)
password.set(System.getenv("OSSRH_PASSWORD") ?: return@sonatype)
stagingProfileId.set(
properties["oss.stagingProfileId"]?.toString() ?: System.getenv("OSS_STAGING_PROFILE_ID") ?: return@sonatype
)
}
}
}
val initializeSonatypeStagingRepository by tasks.existing
subprojects {
initializeSonatypeStagingRepository {
shouldRunAfter(tasks.withType<Sign>())
}
}
tasks.wrapper {
gradleVersion = "7.5.1"
}
plugins.withType<YarnPlugin> {
the<YarnRootExtension>().apply {
lockFileDirectory = projectDir
version = "1.22.19"
}
}