apply plugin: 'com.jfrog.bintray'

version = '1.0' //YOUR LIBRARY VERSION

task sourcesJar(type: Jar) {
    from android.sourceSets.main.java.srcDirs
    classifier = 'sources'
}

task javadoc(type: Javadoc) {
    source = android.sourceSets.main.java.srcDirs
    classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
    classifier = 'javadoc'
    from javadoc.destinationDir
}
artifacts {
    archives javadocJar
    archives sourcesJar
}

// Bintray
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())


bintray {
    user = properties.getProperty("bintray.user")
    key = properties.getProperty("bintray.apikey")

    configurations = ['archives']
    pkg {
        repo = 'maven'
        name = 'Interface-interaction' //YOUR PACKAGE NAME
        userOrg = 'agilie'
        desc = 'Interface-interaction Interact your app\'s interface elements with different effects!' // YOUR LIBRARY DESCRIPTION
        websiteUrl = 'https://github.com/agilie/InterfaceInteraction' // YOUR SITE
        vcsUrl = 'https://github.com/agilie/InterfaceInteraction' // YOUR GIT REPO
        licenses = ["MIT"] // A LIST OF YOUR LICENCES
        publish = true
        publicDownloadNumbers = true
    }
}