SimpleMatrix/build.gradle

76 lines
2.4 KiB
Groovy

/*
* SimpleMatrix - A simplified Android Matrix Client
* Copyright (C) 2018 Marcel Radzio
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.21'
ext.dokka_version = '0.9.17'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.netflix.nebula:gradle-lint-plugin:10.4.2'
classpath 'com.android.tools.build:gradle:3.3.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'org.ajoberstar:grgit:2.3.0'
classpath 'io.sentry:sentry-android-gradle-plugin:1.7.10'
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:${dokka_version}"
classpath 'com.google.gms:google-services:4.2.0' // google-services plugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
import org.ajoberstar.grgit.Grgit
ext {
git = Grgit.open(currentDir: projectDir)
gitVersionCode = git.log().size()
}
allprojects {
repositories {
google()
jcenter()
maven {
url 'https://kamax.io/maven/releases/'
}
maven {
url 'https://kamax.io/maven/snapshots/'
}
maven { url 'https://jitpack.io' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
apply plugin: 'nebula.lint'
gradleLint {
rules = ['unused-dependency']
}
}
subprojects { project ->
apply from: "$rootDir/versions.gradle"
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task printVersion() {
println("Version Code: $gitVersionCode")
}