Search code examples
javaandroidmavengradlebintray

Bintray gradle plugin not uploading artifacts


I am using bintray gradle plugin to upload java artifact on Bintray. I have written this code from example, it creates package and version successfully but there are not files in files directory. What am I missing here??

bintray {
    user = 'user name'
    key = 'my key'
    pkg {
        repo = 'androids'
        name = 'name'
        licenses = ['Apache-2.0']
        vcsUrl = 'https://github.com/bintray/gradle-bintray-plugin.git'
        version {
            name = 'version'
            desc = 'Gradle Bintray Plugin 1.0 final'
            released  = new Date()
            vcsTag = '1.3.0'
            attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
        }

        filesSpec {
            from 'build/libs'
            into 'standalone_files/level1'
        }
    }

}

Solution

  • I was running the task from root project where build directory was not defined. When I ran it from with in the module where (build/libs) contains required artifacts.