Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mmobin789/9a7f7432378022e85fd2734926a1f2f4 to your computer and use it in GitHub Desktop.
Save mmobin789/9a7f7432378022e85fd2734926a1f2f4 to your computer and use it in GitHub Desktop.
An example build.gradle file (project level) for maven central migration.
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.4.32'
ext.espressoVersion = "3.3.0"
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.13.0' // NEW // updated version required gradle version 6.6.0 or above.
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.30' // NEW
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment