Coder Social home page Coder Social logo

gradle-mvn-push's Introduction

Hi 👋, I'm Chris Banes

A software engineer focused on all things UI

Connect with me:

chrisbanes chrisbanes chrisbanes chrisbanes

Languages and Tools

android kotlin

 chrisbanes

gradle-mvn-push's People

Contributors

aectann avatar chrisbanes avatar dlew avatar grantland avatar johnjohndoe avatar ligi avatar magicmicky avatar sebastianengel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gradle-mvn-push's Issues

signArchives task is always skipped

I'm trying to upload my library to Sonatype. This is my first time doing this, so bear with me if it is something silly. I followed @chrisbanes steps in this blog post.

I was able to create a staging repository on Sonatype, but when I try to close it for promotion, I get this error:
screen shot 2013-12-06 at 3 30 42 pm

So I guess I need to sign the package, however looks like the task is being skipped. I created the signing.properties file and I'm signing with the default debug.keystore:

STORE_FILE=/Users/felipe/.android/debug.keystore
STORE_PASSWORD=android
KEY_ALIAS=androiddebugkey
KEY_PASSWORD=android

Just for reference, the project I'm trying to upload is this one.

Here is the gradle output. This is the offending line: Skipping task ':library:signArchives' as task onlyIf is false.

➜  Android-ImageManager git:(master) ✗ ./gradlew clean build uploadArchives --info
Starting Build
Starting file lock listener thread.
Settings evaluated using settings file '/Users/felipe/Data/Projects/Android-ImageManager/settings.gradle'.
Projects loaded. Root project using build file '/Users/felipe/Data/Projects/Android-ImageManager/build.gradle'.
Included projects: [root project 'Android-ImageManager', project ':library']
Evaluating root project 'Android-ImageManager' using build file '/Users/felipe/Data/Projects/Android-ImageManager/build.gradle'.
Evaluating project ':library' using build file '/Users/felipe/Data/Projects/Android-ImageManager/library/build.gradle'.
RELEASE BUILD
All projects evaluated.
Selected primary tasks 'clean', 'build', 'uploadArchives'
Tasks to be executed: [task ':library:clean', task ':library:androidJavadocsJar', task ':library:androidSourcesJar', task ':library:compileLint', task ':library:copyDebugLint', task ':library:mergeDebugProguardFiles', task ':library:packageDebugAidl', task ':library:preBuild', task ':library:preDebugBuild', task ':library:prepareDebugDependencies', task ':library:compileDebugAidl', task ':library:compileDebugRenderscript', task ':library:generateDebugBuildConfig', task ':library:mergeDebugAssets', task ':library:mergeDebugResources', task ':library:processDebugManifest', task ':library:processDebugResources', task ':library:generateDebugSources', task ':library:compileDebug', task ':library:processDebugJavaRes', task ':library:packageDebugJar', task ':library:packageDebugLocalJar', task ':library:packageDebugRenderscript', task ':library:packageDebugResources', task ':library:bundleDebug', task ':library:assembleDebug', task ':library:copyReleaseLint', task ':library:mergeReleaseProguardFiles', task ':library:packageReleaseAidl', task ':library:preReleaseBuild', task ':library:prepareReleaseDependencies', task ':library:compileReleaseAidl', task ':library:compileReleaseRenderscript', task ':library:generateReleaseBuildConfig', task ':library:mergeReleaseAssets', task ':library:mergeReleaseResources', task ':library:processReleaseManifest', task ':library:processReleaseResources', task ':library:generateReleaseSources', task ':library:compileRelease', task ':library:processReleaseJavaRes', task ':library:packageReleaseJar', task ':library:packageReleaseLocalJar', task ':library:packageReleaseRenderscript', task ':library:packageReleaseResources', task ':library:bundleRelease', task ':library:assembleRelease', task ':library:signArchives', task ':library:assemble', task ':library:check', task ':library:build', task ':library:uploadArchives']
:library:clean (Thread[main,5,main]) started.
:library:clean
Executing task ':library:clean' (up-to-date check took 0.0010 secs) due to:
  Task has not declared any outputs.
:library:clean (Thread[main,5,main]) completed. Took 0.033 secs.
:library:androidJavadocsJar (Thread[main,5,main]) started.
:library:androidJavadocsJar
Executing task ':library:androidJavadocsJar' (up-to-date check took 0.049 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/libs/library-1.0.0-javadoc.jar has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/libs/library-1.0.0-javadoc.jar has been removed.
:library:androidJavadocsJar (Thread[main,5,main]) completed. Took 0.121 secs.
:library:androidSourcesJar (Thread[main,5,main]) started.
:library:androidSourcesJar
Executing task ':library:androidSourcesJar' (up-to-date check took 0.031 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/libs/library-1.0.0-sources.jar has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/libs/library-1.0.0-sources.jar has been removed.
:library:androidSourcesJar (Thread[main,5,main]) completed. Took 0.102 secs.
:library:compileLint (Thread[main,5,main]) started.
:library:compileLint
Executing task ':library:compileLint' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
:library:compileLint (Thread[main,5,main]) completed. Took 0.0020 secs.
:library:copyDebugLint (Thread[main,5,main]) started.
:library:copyDebugLint
Skipping task ':library:copyDebugLint' as it has no source files.
:library:copyDebugLint UP-TO-DATE
:library:copyDebugLint (Thread[main,5,main]) completed. Took 0.0040 secs.
:library:mergeDebugProguardFiles (Thread[main,5,main]) started.
:library:mergeDebugProguardFiles
Skipping task ':library:mergeDebugProguardFiles' as it is up-to-date (took 0.0040 secs).
:library:mergeDebugProguardFiles UP-TO-DATE
:library:mergeDebugProguardFiles (Thread[main,5,main]) completed. Took 0.0080 secs.
:library:packageDebugAidl (Thread[main,5,main]) started.
:library:packageDebugAidl
Skipping task ':library:packageDebugAidl' as it has no source files.
:library:packageDebugAidl UP-TO-DATE
:library:packageDebugAidl (Thread[main,5,main]) completed. Took 0.0030 secs.
:library:preBuild (Thread[main,5,main]) started.
:library:preBuild
Skipping task ':library:preBuild' as it has no actions.
:library:preBuild UP-TO-DATE
:library:preBuild (Thread[main,5,main]) completed. Took 0.0020 secs.
:library:preDebugBuild (Thread[main,5,main]) started.
:library:preDebugBuild
Skipping task ':library:preDebugBuild' as it has no actions.
:library:preDebugBuild UP-TO-DATE
:library:preDebugBuild (Thread[main,5,main]) completed. Took 0.0010 secs.
:library:prepareDebugDependencies (Thread[main,5,main]) started.
:library:prepareDebugDependencies
Executing task ':library:prepareDebugDependencies' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
:library:prepareDebugDependencies (Thread[main,5,main]) completed. Took 0.0020 secs.
:library:compileDebugAidl (Thread[main,5,main]) started.
:library:compileDebugAidl
Executing task ':library:compileDebugAidl' (up-to-date check took 0.0050 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/aidl/debug has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/incremental/aidl/debug has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/incremental/aidl/debug/inputs.data has been removed.
No incremental data: full task run
:library:compileDebugAidl (Thread[main,5,main]) completed. Took 0.442 secs.
:library:compileDebugRenderscript (Thread[main,5,main]) started.
:library:compileDebugRenderscript
Executing task ':library:compileDebugRenderscript' (up-to-date check took 0.0080 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/res/rs/debug has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/rs/debug has changed.
:library:compileDebugRenderscript (Thread[main,5,main]) completed. Took 0.028 secs.
:library:generateDebugBuildConfig (Thread[main,5,main]) started.
:library:generateDebugBuildConfig
Executing task ':library:generateDebugBuildConfig' (up-to-date check took 0.0080 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/buildConfig/debug has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/buildConfig/debug/com/felipecsl/android/BuildConfig.java has been removed.
:library:generateDebugBuildConfig (Thread[main,5,main]) completed. Took 0.041 secs.
:library:mergeDebugAssets (Thread[main,5,main]) started.
:library:mergeDebugAssets
Executing task ':library:mergeDebugAssets' (up-to-date check took 0.0050 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/incremental/mergeAssets/debug has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/debug/assets has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/incremental/mergeAssets/debug/merger.xml has been removed.
No incremental data: full task run
:library:mergeDebugAssets (Thread[main,5,main]) completed. Took 0.066 secs.
:library:mergeDebugResources (Thread[main,5,main]) started.
:library:mergeDebugResources
Executing task ':library:mergeDebugResources' (up-to-date check took 0.014 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/res/all/debug has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/incremental/mergeResources/debug has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/res/all/debug/drawable-xhdpi/ic_launcher.png has been removed.
No incremental data: full task run
:library:mergeDebugResources (Thread[main,5,main]) completed. Took 0.115 secs.
:library:processDebugManifest (Thread[main,5,main]) started.
:library:processDebugManifest
Executing task ':library:processDebugManifest' (up-to-date check took 0.0040 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/debug/AndroidManifest.xml has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/debug/AndroidManifest.xml has been removed.
:library:processDebugManifest (Thread[main,5,main]) completed. Took 0.047 secs.
:library:processDebugResources (Thread[main,5,main]) started.
:library:processDebugResources
Executing task ':library:processDebugResources' (up-to-date check took 0.014 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/r/debug has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/libs/library-debug.ap_ has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/r/debug/com/felipecsl/android/R.java has been removed.
command: /Users/felipe/Data/adt-bundle-mac/sdk/build-tools/19.0.0/aapt package -f --no-crunch -I /Users/felipe/Data/adt-bundle-mac/sdk/platforms/android-19/android.jar -M /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/debug/AndroidManifest.xml -S /Users/felipe/Data/Projects/Android-ImageManager/library/build/res/all/debug -A /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/debug/assets -m -J /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/r/debug -F /Users/felipe/Data/Projects/Android-ImageManager/library/build/libs/library-debug.ap_ --debug-mode --non-constant-id --output-text-symbols /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/debug
:library:processDebugResources (Thread[main,5,main]) completed. Took 0.228 secs.
:library:generateDebugSources (Thread[main,5,main]) started.
:library:generateDebugSources
Skipping task ':library:generateDebugSources' as it has no actions.
:library:generateDebugSources (Thread[main,5,main]) completed. Took 0.0010 secs.
:library:compileDebug (Thread[main,5,main]) started.
:library:compileDebug
Executing task ':library:compileDebug' (up-to-date check took 0.032 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/dependency-cache/debug has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/classes/debug has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/classes/debug/com/felipecsl/android/imaging/ProcessorCallback$1.class has been removed.
Compiling with JDK Java compiler API.
:library:compileDebug (Thread[main,5,main]) completed. Took 1.057 secs.
:library:processDebugJavaRes (Thread[main,5,main]) started.
:library:processDebugJavaRes
Skipping task ':library:processDebugJavaRes' as it has no source files.
:library:processDebugJavaRes UP-TO-DATE
:library:processDebugJavaRes (Thread[main,5,main]) completed. Took 0.0020 secs.
:library:packageDebugJar (Thread[main,5,main]) started.
:library:packageDebugJar
Executing task ':library:packageDebugJar' (up-to-date check took 0.033 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/debug/classes.jar has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/debug/classes.jar has been removed.
:library:packageDebugJar (Thread[main,5,main]) completed. Took 0.113 secs.
:library:packageDebugLocalJar (Thread[main,5,main]) started.
:library:packageDebugLocalJar
Skipping task ':library:packageDebugLocalJar' as it has no source files.
:library:packageDebugLocalJar UP-TO-DATE
:library:packageDebugLocalJar (Thread[main,5,main]) completed. Took 0.0020 secs.
:library:packageDebugRenderscript (Thread[main,5,main]) started.
:library:packageDebugRenderscript
Skipping task ':library:packageDebugRenderscript' as it has no source files.
:library:packageDebugRenderscript UP-TO-DATE
:library:packageDebugRenderscript (Thread[main,5,main]) completed. Took 0.0030 secs.
:library:packageDebugResources (Thread[main,5,main]) started.
:library:packageDebugResources
Executing task ':library:packageDebugResources' (up-to-date check took 0.0050 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/debug/res has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/incremental/packageResources/debug has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/debug/res/drawable-hdpi/ic_launcher.png has been removed.
No incremental data: full task run
:library:packageDebugResources (Thread[main,5,main]) completed. Took 0.06 secs.
:library:bundleDebug (Thread[main,5,main]) started.
:library:bundleDebug
Executing task ':library:bundleDebug' (up-to-date check took 0.01 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/libs/library-1.0.0-debug.aar has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/libs/library-1.0.0-debug.aar has been removed.
:library:bundleDebug (Thread[main,5,main]) completed. Took 0.088 secs.
:library:assembleDebug (Thread[main,5,main]) started.
:library:assembleDebug
Skipping task ':library:assembleDebug' as it has no actions.
:library:assembleDebug (Thread[main,5,main]) completed. Took 0.0020 secs.
:library:copyReleaseLint (Thread[main,5,main]) started.
:library:copyReleaseLint
Skipping task ':library:copyReleaseLint' as it has no source files.
:library:copyReleaseLint UP-TO-DATE
:library:copyReleaseLint (Thread[main,5,main]) completed. Took 0.0020 secs.
:library:mergeReleaseProguardFiles (Thread[main,5,main]) started.
:library:mergeReleaseProguardFiles
Skipping task ':library:mergeReleaseProguardFiles' as it is up-to-date (took 0.0040 secs).
:library:mergeReleaseProguardFiles UP-TO-DATE
:library:mergeReleaseProguardFiles (Thread[main,5,main]) completed. Took 0.0060 secs.
:library:packageReleaseAidl (Thread[main,5,main]) started.
:library:packageReleaseAidl
Skipping task ':library:packageReleaseAidl' as it has no source files.
:library:packageReleaseAidl UP-TO-DATE
:library:packageReleaseAidl (Thread[main,5,main]) completed. Took 0.0020 secs.
:library:preReleaseBuild (Thread[main,5,main]) started.
:library:preReleaseBuild
Skipping task ':library:preReleaseBuild' as it has no actions.
:library:preReleaseBuild UP-TO-DATE
:library:preReleaseBuild (Thread[main,5,main]) completed. Took 0.0010 secs.
:library:prepareReleaseDependencies (Thread[main,5,main]) started.
:library:prepareReleaseDependencies
Executing task ':library:prepareReleaseDependencies' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
:library:prepareReleaseDependencies (Thread[main,5,main]) completed. Took 0.0010 secs.
:library:compileReleaseAidl (Thread[main,5,main]) started.
:library:compileReleaseAidl
Executing task ':library:compileReleaseAidl' (up-to-date check took 0.0050 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/incremental/aidl/release has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/aidl/release has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/incremental/aidl/release/dependency.store has been removed.
No incremental data: full task run
:library:compileReleaseAidl (Thread[main,5,main]) completed. Took 0.02 secs.
:library:compileReleaseRenderscript (Thread[main,5,main]) started.
:library:compileReleaseRenderscript
Executing task ':library:compileReleaseRenderscript' (up-to-date check took 0.0060 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/rs/release has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/res/rs/release has changed.
:library:compileReleaseRenderscript (Thread[main,5,main]) completed. Took 0.015 secs.
:library:generateReleaseBuildConfig (Thread[main,5,main]) started.
:library:generateReleaseBuildConfig
Executing task ':library:generateReleaseBuildConfig' (up-to-date check took 0.011 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/buildConfig/release has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/buildConfig/release/com/felipecsl/android/BuildConfig.java has been removed.
:library:generateReleaseBuildConfig (Thread[main,5,main]) completed. Took 0.025 secs.
:library:mergeReleaseAssets (Thread[main,5,main]) started.
:library:mergeReleaseAssets
Executing task ':library:mergeReleaseAssets' (up-to-date check took 0.0040 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/release/assets has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/incremental/mergeAssets/release has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/incremental/mergeAssets/release/inputs.data has been removed.
No incremental data: full task run
:library:mergeReleaseAssets (Thread[main,5,main]) completed. Took 0.022 secs.
:library:mergeReleaseResources (Thread[main,5,main]) started.
:library:mergeReleaseResources
Executing task ':library:mergeReleaseResources' (up-to-date check took 0.0090 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/incremental/mergeResources/release has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/res/all/release has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/res/all/release/drawable-xxhdpi/ic_launcher.png has been removed.
No incremental data: full task run
:library:mergeReleaseResources (Thread[main,5,main]) completed. Took 0.047 secs.
:library:processReleaseManifest (Thread[main,5,main]) started.
:library:processReleaseManifest
Executing task ':library:processReleaseManifest' (up-to-date check took 0.0070 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/release/AndroidManifest.xml has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/release/AndroidManifest.xml has been removed.
:library:processReleaseManifest (Thread[main,5,main]) completed. Took 0.021 secs.
:library:processReleaseResources (Thread[main,5,main]) started.
:library:processReleaseResources
Executing task ':library:processReleaseResources' (up-to-date check took 0.015 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/r/release has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/libs/library-release.ap_ has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/r/release/com/felipecsl/android/R.java has been removed.
command: /Users/felipe/Data/adt-bundle-mac/sdk/build-tools/19.0.0/aapt package -f --no-crunch -I /Users/felipe/Data/adt-bundle-mac/sdk/platforms/android-19/android.jar -M /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/release/AndroidManifest.xml -S /Users/felipe/Data/Projects/Android-ImageManager/library/build/res/all/release -A /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/release/assets -m -J /Users/felipe/Data/Projects/Android-ImageManager/library/build/source/r/release -F /Users/felipe/Data/Projects/Android-ImageManager/library/build/libs/library-release.ap_ --non-constant-id --output-text-symbols /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/release
:library:processReleaseResources (Thread[main,5,main]) completed. Took 0.14 secs.
:library:generateReleaseSources (Thread[main,5,main]) started.
:library:generateReleaseSources
Skipping task ':library:generateReleaseSources' as it has no actions.
:library:generateReleaseSources (Thread[main,5,main]) completed. Took 0.0010 secs.
:library:compileRelease (Thread[main,5,main]) started.
:library:compileRelease
Executing task ':library:compileRelease' (up-to-date check took 0.02 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/dependency-cache/release has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/classes/release has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/classes/release/com/felipecsl/android/imaging/ImageManager$BitmapCallback.class has been removed.
Compiling with JDK Java compiler API.
:library:compileRelease (Thread[main,5,main]) completed. Took 0.475 secs.
:library:processReleaseJavaRes (Thread[main,5,main]) started.
:library:processReleaseJavaRes
Skipping task ':library:processReleaseJavaRes' as it has no source files.
:library:processReleaseJavaRes UP-TO-DATE
:library:processReleaseJavaRes (Thread[main,5,main]) completed. Took 0.0010 secs.
:library:packageReleaseJar (Thread[main,5,main]) started.
:library:packageReleaseJar
Executing task ':library:packageReleaseJar' (up-to-date check took 0.016 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/release/classes.jar has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/release/classes.jar has been removed.
:library:packageReleaseJar (Thread[main,5,main]) completed. Took 0.059 secs.
:library:packageReleaseLocalJar (Thread[main,5,main]) started.
:library:packageReleaseLocalJar
Skipping task ':library:packageReleaseLocalJar' as it has no source files.
:library:packageReleaseLocalJar UP-TO-DATE
:library:packageReleaseLocalJar (Thread[main,5,main]) completed. Took 0.0020 secs.
:library:packageReleaseRenderscript (Thread[main,5,main]) started.
:library:packageReleaseRenderscript
Skipping task ':library:packageReleaseRenderscript' as it has no source files.
:library:packageReleaseRenderscript UP-TO-DATE
:library:packageReleaseRenderscript (Thread[main,5,main]) completed. Took 0.0020 secs.
:library:packageReleaseResources (Thread[main,5,main]) started.
:library:packageReleaseResources
Executing task ':library:packageReleaseResources' (up-to-date check took 0.0040 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/incremental/packageResources/release has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/release/res has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/bundles/release/res/drawable-hdpi/ic_launcher.png has been removed.
No incremental data: full task run
:library:packageReleaseResources (Thread[main,5,main]) completed. Took 0.033 secs.
:library:bundleRelease (Thread[main,5,main]) started.
:library:bundleRelease
Executing task ':library:bundleRelease' (up-to-date check took 0.0060 secs) due to:
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/libs/library-1.0.0.aar has changed.
  Output file /Users/felipe/Data/Projects/Android-ImageManager/library/build/libs/library-1.0.0.aar has been removed.
:library:bundleRelease (Thread[main,5,main]) completed. Took 0.038 secs.
:library:assembleRelease (Thread[main,5,main]) started.
:library:assembleRelease
Skipping task ':library:assembleRelease' as it has no actions.
:library:assembleRelease (Thread[main,5,main]) completed. Took 0.0 secs.
:library:signArchives (Thread[main,5,main]) started.
:library:signArchives
Skipping task ':library:signArchives' as task onlyIf is false.
:library:signArchives SKIPPED
:library:signArchives (Thread[main,5,main]) completed. Took 0.019 secs.
:library:assemble (Thread[main,5,main]) started.
:library:assemble
Skipping task ':library:assemble' as it has no actions.
:library:assemble (Thread[main,5,main]) completed. Took 0.0020 secs.
:library:check (Thread[main,5,main]) started.
:library:check
Skipping task ':library:check' as it has no actions.
:library:check UP-TO-DATE
:library:check (Thread[main,5,main]) completed. Took 0.0010 secs.
:library:build (Thread[main,5,main]) started.
:library:build
Skipping task ':library:build' as it has no actions.
:library:build (Thread[main,5,main]) completed. Took 0.0010 secs.
:library:uploadArchives (Thread[main,5,main]) started.
:library:uploadArchives
Executing task ':library:uploadArchives' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
Publishing configuration: configuration ':library:archives'
Publishing to repository 'mavenDeployer'
[ant:null] Deploying to https://oss.sonatype.org/service/local/staging/deploy/maven2/
Uploading: com/felipecsl/android/library/1.0.0/library-1.0.0.aar to repository remote at https://oss.sonatype.org/service/local/staging/deploy/maven2/
Transferring 91K from remote
Uploaded 91K
[INFO] Uploading project information for library 1.0.0
[INFO] Retrieving previous metadata from remote
[INFO] Uploading repository metadata for: 'artifact com.felipecsl.android:library'
Uploading: com/felipecsl/android/library/1.0.0/library-1.0.0-javadoc.jar to repository remote at https://oss.sonatype.org/service/local/staging/deploy/maven2/
Transferring 0K from remote
Uploaded 0K
Uploading: com/felipecsl/android/library/1.0.0/library-1.0.0-sources.jar to repository remote at https://oss.sonatype.org/service/local/staging/deploy/maven2/
Transferring 21K from remote
Uploaded 21K
:library:uploadArchives (Thread[main,5,main]) completed. Took 6.068 secs.

BUILD SUCCESSFUL

Total time: 18.776 secs

Support 'java' Plugin

It would be nice for projects that are mixed with both Android and plain 'ol Java modules to use the same configuration for both.

This shouldn't be too hard since you can probably just defer to the normal 'nexus' plugin for most of the heavy lifting.

Given enough time, I might implement this myself. But in case you're feeling generous I figured I'd make the issue for now.

Maven Central's staging server is from oss.sonatype.org to s01.oss.sonatype.org

from Central Repository Changelog,Maven Central's staging server is from oss.sonatype.org to s01.oss.sonatype.org
so in getReleaseRepositoryUrl and getSnapshotRepositoryUrl method default url should update string oss.sonatype.org -> s01.oss.sonatype.org

def getReleaseRepositoryUrl() {
    return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
            : "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}
def getSnapshotRepositoryUrl() {
    return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
            : "https://oss.sonatype.org/content/repositories/snapshots/"
}

Task fails without error message


EDIT: I decided to write my own script and it worked, so this isssue can be deleted

I'm working on this project https://gitlab.com/liquid-soap/firebase-auth-wo-play-services. I try to upload it to snapshots repository, but it fails without any error message.

Here is the output:

$ ./gradlew clean build uploadArchives

> Task :app:processDebugGoogleServices
Parsing json file: C:\Programmirovanie\your dumb school projects\AndroidStudio\FirebaseAuthwoPlayServices\app\google-services.json

> Task :app:processReleaseGoogleServices
Parsing json file: C:\Programmirovanie\your dumb school projects\AndroidStudio\FirebaseAuthwoPlayServices\app\google-services.json

> Task :app:lint
Ran lint on variant debug: 23 issues found
Ran lint on variant release: 23 issues found
Wrote HTML report to file:///C:/Programmirovanie/your%20dumb%20school%20projects/AndroidStudio/FirebaseAuthwoPlayServices/app/build/reports/lint-results.html
Wrote XML report to file:///C:/Programmirovanie/your%20dumb%20school%20projects/AndroidStudio/FirebaseAuthwoPlayServices/app/build/reports/lint-results.xml

> Task :lib:minifyReleaseWithR8
R8: Missing class: kotlin.coroutines.jvm.internal.ContinuationImpl
R8: Missing class: kotlin.jvm.internal.Lambda
R8: Missing class: kotlin.jvm.functions.Function1

> Task :lib:lint
Ran lint on variant release: 0 issues found
Ran lint on variant debug: 0 issues found

BUILD SUCCESSFUL in 26m 30s
123 actionable tasks: 118 executed, 5 up-to-date

As you can see from source code, I have followed all instructions. I issued a ticket from sonatype and now it is resolved.
Any help is appreciated.

Task androidJavadocs seems has a bug...

I made a library project, called Android Image Slider. https://github.com/daimajia/AndroidImageSlider It contains some jars, while, when I tried to upload it to maven center.

run ./gradlew clean build upload uploadArchives

......
demo:mergeReleaseResources UP-TO-DATE
:demo:processReleaseManifest UP-TO-DATE
:demo:processReleaseResources UP-TO-DATE
:demo:generateReleaseSources UP-TO-DATE
:demo:compileReleaseJava UP-TO-DATE
:demo:lintVitalRelease
:demo:compileReleaseNdk UP-TO-DATE
:demo:preDexRelease UP-TO-DATE
:demo:dexRelease UP-TO-DATE
:demo:processReleaseJavaRes UP-TO-DATE
:demo:packageRelease UP-TO-DATE
:demo:assembleRelease
:library:assembleRelease UP-TO-DATE
:demo:uploadArchives
:library:androidJavadocs

/Users/daimajia/Development/GitHub/AndroidImageSlider/library/src/main/java/com/daimajia/slider/library/SliderAdapter.java:4: error: package android.support.v4.view does not exist
import android.support.v4.view.PagerAdapter;
^
/Users/daimajia/Development/GitHub/AndroidImageSlider/library/src/main/java/com/daimajia/slider/library/SliderAdapter.java:15: error: can not find symbol
public class SliderAdapter extends PagerAdapter implements BaseSliderView.ImageLoadListener{
^
symbol : class PagerAdapter
/Users/daimajia/Development/GitHub/AndroidImageSlider/library/src/main/java/com/daimajia/slider/library/SliderTypes/BaseSliderView.java:8: error: can not find symbol
import com.daimajia.slider.library.R;
^
symbol : class R
位置: 程序包 com.daimajia.slider.library
/Users/daimajia/Development/GitHub/AndroidImageSlider/library/src/main/java/com/daimajia/slider/library/SliderTypes/BaseSliderView.java:9: error: package com.squareup.picasso does not exist
import com.squareup.picasso.Callback;
^

......

when I removed the archives androidJavadocsJar, it was ok~

Upload library with module dependencies

Hi there.

I'm trying to upload an updated version of my library MaterialList, and I've successfully uploaded versions 2.0.2 and 2.0.3 (by now only 2.0.2 is available, within a few hours v2.0.3 should be also).

The problem comes when, between 2.0.1 and 2.0.2 a massive refactor was done, and now the library is divided into two modules, let's call them "core" and "implementation".

Before there was only a module, 'materialList'.
Now there are two: 'materialList', which contains the core, and 'sampleCards', which contains the implementation.

The implementation module depends on the core, and this is the module I want to upload (the implementation one).

It contains the line

compile project(':materialList')

So I thought that it would compile it, and be uploaded together. But when I try to use it via mvn, it throws the following error:

Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not resolve com.github.dexafree:materialList:2.0.2.
     Required by:
         com.github.dexafree:app:2.0.3 > com.github.dexafree:materiallist:2.0.2
      > inconsistent module metadata found. Descriptor: com.github.dexafree:materiallist:2.0.2 Errors: bad module name: expected='materialList' found='materiallist'

I don't know if the expected='materialList' found='materiallist' case problem is the main problem here, or if it's just uploading the implementation module and not the core one.

Thank you in advance

Transitive dependencies with Gradle 4.x

The introduction Gradle 4.x has broken resolving transitive dependencies from libraries published with the plugin provided in this repository.

Use-case:

  • have a library with an api dependency
  • publish that library to maven
  • consume that external library

Expected behaviour:

  • dependency is availlalble at compile and runtime

Actual behaviour:

  • dependency is not available

More info in dcendents/android-maven-gradle-plugin#61

cc @chrisbanes

Add provided dependencies to classpath of androidJavadocs

I'm using provided dependencies in my library project, which works fine but for one issue. When the uploadArchives task executes the androidJavadocs task, it gives compiler errors (interpreted by androidJavadocs as warnings) for all references to the provided dependencies. Is there a way in which I can add the provided dependencies to the classpath of androidJavadocs?

Outdated README

The script was recently modified and now uses the maven-publish plugin to create publications and upload them.

This, thus, removes the uploadArchives task making the steps in the documentation not performing any task.

  • Desired output: The uploadArchives task should be replaced with the one compatible with recent changes.

androidJavadocs

when I grade clean build project ,there would be a Error:
Error:Could not get unknown property 'android' for task ':preference_annotation:androidJavadocs' of type org.gradle.api.tasks.javadoc.Javadoc.
I don't know how to deal with this problem

Javadoc charset

When I execute Javadoc,I got exception.

unmappable character for encoding MS950

How to fix it?

signArchives key file path is appended to user.dir regardless of home symbol

I've got a global config pointing to

signing.secretKeyRingFile=~/.gnupg/secring.gpg

gradle uploadArchives exits with failure:

FAILURE: Build failed with an exception.

* What went wrong:
Could not evaluate onlyIf predicate for task ':library:signArchives'.
> Unable to retrieve secret key from key ring file '/home/username/androidstudioprojectspath/myproject/library/~/.gnupg/secring.gpg' as it does not exist

optional dependency when uploading to maven

hey @chrisbanes -- thanks so much for this repo, I really appreciate it. I'm currently working on a project which requires me to include a dependency as optional. I'm able to accomplish this using the plugin nebula.optional-base when building locally, but not when uploading to maven. Does your uploadArchives approach offer any dependency exclusion for uploads to maven?

Thanks for your time, if it's available it's appreciated.

I have a problem to push my lib to sonatype.

i have develop some lib https://github.com/kulik/AndroidJAXBLib/tree/gradle on this branch i have migrate to gradle project structure? and want to push it to mvn. As you can see i made everything by your instructions. but when i try to do
./gradlew uploadArchives

:library:androidJavadocs UP-TO-DATE
:library:androidJavadocsJar UP-TO-DATE
:.......
:library:bundleRelease UP-TO-DATE
:library:signArchives UP-TO-DATE
:library:uploadArchives
Uploading: com/github/kulik/android-jaxb/0.1-SNAPSHOT/android-jaxb-0.1-20140225.200505-1.aar to repository remote at https://oss.sonatype.org/content/repositories/snapshots/
Transferring 69K from remote
:library:uploadArchives FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 44.423 secs
also a have push gradle.properties itto homefolder/.gradle, and right credentials a setuped.(when i put some println(NEXUS_USERNAME) and same for pass it had wrote correct info). also i can login with that credentials to the https://oss.sonatype.org/ and to jira.sonatype.org. but uploading was failed.
Please help me.

secring.gpg

I search for a long time, but I still don't know where the file.

Can you give me a download link Or the methods of generating?

Javadoc generation fails w/ dependency on android support library

I was unable to generate javadocs in a library project that had a gradle dependency on the Android support lib.

Did some googling and found that adding this to my build script resolved the issue. Would be great to add it to the documentation.

afterEvaluate {
    androidJavadocs.classpath += project.android.libraryVariants.toList().first().javaCompile.classpath
}

This is with gradle plugin 0.12.2 and gradle version 1.12

Error:Cannot get property 'main' on null object

I create a android library use Android Stuido, then I ccoy gradle-mvn-push.gradle to my module gradle.build file, but occour a error when I sync gradle project. I try run uploadArchices task in termin, it is occour a same error.

error message:

Error:Cannot get property 'main' on null object

I fount it stoped at task androidJavadocs

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

My gradle file:

apply plugin: 'com.android.library'
apply from: 'config.gradle'
 //apply from: '../gradle-mvn-push.gradle'

   android {
    compileSdkVersion project.ext.android.compileSdkVersion
    buildToolsVersion project.ext.android.buildToolsVersion

    defaultConfig {
        minSdkVersion project.ext.android.minSdkVersion
        targetSdkVersion project.ext.android.targetSdkVersion
        versionCode project.ext.android.versionCode
        versionName project.ext.android.versionName
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }

    buildTypes {

        debug {

            buildConfigField 'boolean', 'LOGGER_ENABLE', 'true';
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }

        release {
            buildConfigField 'boolean', 'LOGGER_ENABLE', 'true';
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    android {
        lintOptions {
            abortOnError false
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile project.ext.dependencies.appcompat
    compile project.ext.dependencies.cardview
    compile project.ext.dependencies.logger
    compile project.ext.dependencies.okhttp
    compile project.ext.dependencies.filedownloader
    //    compile project.ext.dependencies.rxjava
    //    compile project.ext.dependencies.retrofit
    //    compile project.ext.dependencies.rxandroid
    compile project.ext.dependencies.gson
    //    compile project.ext.dependencies.coverter_gson
    //    compile project.ext.dependencies.adapter_rxjava
    compile project.ext.dependencies.fresco
    compile project.ext.dependencies.multidex
//    compile project.ext.dependencies.blurry

    //    compile 'com.jakewharton:butterknife:8.4.0'
    //    apt 'com.jakewharton:butterknife-compiler:8.4.0'
    //    provided project.ext.dependencies.auto_value
    //    annotationProcessor project.ext.apt.auto_value
    //    annotationProcessor project.ext.apt.auto_value_parcel
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    testCompile 'junit:junit:4.12'
    testCompile 'org.mockito:mockito-core:2.2.1'
    //    compile 'com.google.auto.value:auto-value:1.3'
}



apply plugin: 'maven'
//apply plugin: 'signing'

def isReleaseBuild() {
    return VERSION_NAME.contains("SNAPSHOT") == false
}

def getReleaseRepositoryUrl() {
    return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
            : "http://localhost:8081/nexus/content/repositories/android_release/"
}

def getSnapshotRepositoryUrl() {
    return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
            : "http://localhost:8081/nexus/content/repositories/android/"
}

def getRepositoryUsername() {
    return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
}

def getRepositoryPassword() {
    return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
}

afterEvaluate { project ->
    uploadArchives {
        repositories {
            mavenDeployer {
                //                beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

                pom.groupId = GROUP
                pom.artifactId = POM_ARTIFACT_ID
                pom.version = VERSION_NAME

                repository(url: getReleaseRepositoryUrl()) {
                    authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
                }
                snapshotRepository(url: getSnapshotRepositoryUrl()) {
                    authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
                }

                pom.project {
                    name POM_NAME
                    packaging POM_PACKAGING
                    description POM_DESCRIPTION
                    //                    url POM_URL

                    //                    scm {
                    //                        url POM_SCM_URL
                    //                        connection POM_SCM_CONNECTION
                    //                        developerConnection POM_SCM_DEV_CONNECTION
                    //                    }
                    //
                    //                    licenses {
                    //                        license {
                    //                            name POM_LICENCE_NAME
                    //                            url POM_LICENCE_URL
                    //                            distribution POM_LICENCE_DIST
                    //                        }
                    //                    }
                    //
                    //                    developers {
                    //                        developer {
                    //                            id POM_DEVELOPER_ID
                    //                            name POM_DEVELOPER_NAME
                    //                        }
                    //                    }
                }
            }
        }
    }

    //    signing {
    //        required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
    //        sign configurations.archives
    //    }

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

    task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
        classifier = 'javadoc'
        from androidJavadocs.destinationDir
    }

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

    artifacts {
        archives androidSourcesJar
        archives androidJavadocsJar
    }
}

os version windows 10
android studio 2.2.3
gradle version 2.14.1
android gradle plugin 2.2.3

Turn Off Doclint on Javadoc Tasks

Doclint failing the build is stupid. Let's get rid of it.

Should be something like this in the task:

options.addStringOption('Xdoclint:none')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.