mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-04 07:39:52 +00:00
52 lines
1.7 KiB
Groovy
52 lines
1.7 KiB
Groovy
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
mavenLocal()
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
|
}
|
|
|
|
dependencies {
|
|
classpath libs.buildscript.kt.gradle
|
|
classpath libs.buildscript.kt.serialization
|
|
classpath libs.buildscript.kt.ksp
|
|
classpath libs.buildscript.jb.dokka
|
|
classpath libs.buildscript.gh.release
|
|
classpath libs.buildscript.android.gradle
|
|
classpath libs.buildscript.android.dexcount
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
alias(libs.plugins.versions)
|
|
alias(libs.plugins.nmcp.aggregation)
|
|
}
|
|
|
|
|
|
if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
|
|
nmcpAggregation {
|
|
centralPortal {
|
|
username = project.hasProperty('SONATYPE_USER') ? project.property('SONATYPE_USER') : System.getenv('SONATYPE_USER')
|
|
password = project.hasProperty('SONATYPE_PASSWORD') ? project.property('SONATYPE_PASSWORD') : System.getenv('SONATYPE_PASSWORD')
|
|
validationTimeout = Duration.ofHours(4)
|
|
publishingType = System.getenv('PUBLISHING_TYPE') != "" ? System.getenv('PUBLISHING_TYPE') : "USER_MANAGED"
|
|
}
|
|
|
|
publishAllProjectsProbablyBreakingProjectIsolation()
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
maven { url "https://maven.pkg.jetbrains.space/public/p/compose/dev" }
|
|
maven { url "https://nexus.inmo.dev/repository/maven-releases/" }
|
|
mavenLocal()
|
|
}
|
|
}
|
|
|
|
apply from: "./extensions.gradle"
|
|
apply from: "./github_release.gradle"
|
|
apply from: "./versions_plugin_setup.gradle"
|