forked from RavenLiao/HtmlAnnotator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
32 lines (30 loc) · 1.53 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
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.jetbrainsCompose) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.jetbrains.kotlin.android) apply false
alias(libs.plugins.mavenpublish) apply false
}
allprojects {
/**
* publish config
*/
if (hasProperty("signing.keyId") // configured in the ~/.gradle/gradle.properties file
&& hasProperty("signing.password") // configured in the ~/.gradle/gradle.properties file
&& hasProperty("signing.secretKeyRingFile") // configured in the ~/.gradle/gradle.properties file
&& hasProperty("mavenCentralUsername") // configured in the ~/.gradle/gradle.properties file
&& hasProperty("mavenCentralPassword") // configured in the ~/.gradle/gradle.properties file
&& hasProperty("versionName") // configured in the rootProject/gradle.properties file
&& hasProperty("GROUP") // configured in the rootProject/gradle.properties file
&& hasProperty("POM_ARTIFACT_ID") // configured in the project/gradle.properties file
) {
apply { plugin("com.vanniktech.maven.publish") }
configure<com.vanniktech.maven.publish.MavenPublishBaseExtension> {
version = property("versionName").toString()
}
}
}