2016-10-05 18:25:09 +02:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
2021-04-16 17:43:30 +02:00
|
|
|
mavenCentral()
|
2018-06-26 10:39:33 +02:00
|
|
|
google()
|
2016-10-05 18:25:09 +02:00
|
|
|
}
|
|
|
|
dependencies {
|
2021-09-13 14:35:27 +02:00
|
|
|
// Release notes of Android Gradle Plugin (AGP):
|
|
|
|
// https://developer.android.com/studio/releases/gradle-plugin
|
|
|
|
classpath 'com.android.tools.build:gradle:7.0.4'
|
2022-01-06 10:05:37 +01:00
|
|
|
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0'
|
2016-10-05 18:25:09 +02:00
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
// in the individual module build.gradle files
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
2021-04-16 17:43:30 +02:00
|
|
|
mavenCentral()
|
2018-06-26 10:39:33 +02:00
|
|
|
google()
|
2016-10-05 18:25:09 +02:00
|
|
|
}
|
2022-01-06 10:04:40 +01:00
|
|
|
|
2022-01-06 10:05:37 +01:00
|
|
|
plugins.withId("com.vanniktech.maven.publish.base") {
|
|
|
|
group = project.getProperties().getOrDefault("GROUP", "0.0.0")
|
|
|
|
version = project.getProperties().getOrDefault("VERSION_NAME", "name")
|
|
|
|
|
|
|
|
mavenPublishing {
|
|
|
|
publishToMavenCentral("S01")
|
|
|
|
pomFromGradleProperties()
|
|
|
|
signAllPublications()
|
2022-01-06 10:04:40 +01:00
|
|
|
}
|
|
|
|
}
|
2016-10-05 18:25:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
|
|
|
}
|