A Gradle plugin that pushes Gradle project's source to dropbox.
Archives are available in maven central. To use it, add the following lines in build.gradle
apply plugin: 'me.dlkanth.dropcode'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'me.dlkanth:drop-code:1.0'
}
}Create an app in Dropbox and generate access token for the app from Dropbox AppConsole. Copy the access token and add it in your gradle.properties or just paste it in your build.gradle
dropCode {
accessToken 'ACCESS_TOKEN_FROM_DROPBOX'
} Run the dropCode gradle task from terminal or Gradle Tools Window
gradlew dropCodeThat's all. Your Project Source will be zipped and dropped to Dropbox.
By default, DropCode will name the source zip with current date and time. You can change the name of source zip to be dropped in Dropbox. Follow the below snippet.
dropCode {
accessToken 'ACCESS_TOKEN_FROM_DROPBOX'
dropFileName 'sourceFile'
}