forked from Kotlin/kotlindl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (41 loc) · 1.3 KB
/
build.gradle
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
plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.8.21' apply false
id 'com.android.application' apply false
id 'maven-publish'
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
id "com.gradle.plugin-publish" version "1.0.0" apply false
id 'org.jetbrains.dokka' version '1.5.30'
}
def kotlinDLVersion = "$majorVersion.$minorVersion"
allprojects {
repositories {
google()
mavenCentral()
}
group = 'org.jetbrains.kotlinx'
version = kotlinDLVersion
}
apply from: project.rootProject.file('gradle/fatJar.gradle')
apply from: project.rootProject.file('gradle/dokka.gradle')
def unpublishedSubprojects = ["examples", "gradlePlugin"]
subprojects {
if (name in unpublishedSubprojects) return
apply from: project.rootProject.file('gradle/publish.gradle')
}
def sonatypeUser = System.getenv('SONATYPE_USER')
def sonatypePassword = System.getenv('SONATYPE_PASSWORD')
nexusPublishing {
packageGroup = project.group.toString()
repositories {
sonatype {
username = sonatypeUser
password = sonatypePassword
repositoryDescription = "kotlinx.kotlindl staging repository, version: $version"
}
}
}
task setTeamcityVersion {
doLast {
println("##teamcity[buildNumber '$version']")
}
}