Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with release v2.4.13 on Jitpack.io #199

Open
maxieds opened this issue Aug 12, 2022 · 1 comment
Open

Problem with release v2.4.13 on Jitpack.io #199

maxieds opened this issue Aug 12, 2022 · 1 comment

Comments

@maxieds
Copy link

maxieds commented Aug 12, 2022

I was unable to upgrade to the latest release of the number picker widget using Jitpack. My app build.gradle config contains the following:

    dependencies {
        // ...
        implementation 'com.github.shawnlin013:NumberPicker:v2.4.13'
    }
    repositories {

        jcenter()
        google()
        mavenCentral()

        maven {

            url "https://maven.google.com"
            name 'Google'

        }
        maven {

            url 'https://jitpack.io'
            name 'JitPack.IO'

        }

    }

Note that Gradle issues a warning about jcenter() being deprecated and so to use mavenCentral() instead. I believe this was supposed to be addressed by looking at the release notes for v2.4.13.

When I sync Gradle with the updated library requirement, I get an error about the problem:

Execution failed for task ':app:mergeFreeDebugNativeLibs'.
> Could not resolve all files for configuration ':app:freeDebugRuntimeClasspath'.
   > Could not find com.github.shawnlin013:NumberPicker:v2.4.13.
     Searched in the following locations:
       - https://jcenter.bintray.com/com/github/shawnlin013/NumberPicker/v2.4.13/NumberPicker-v2.4.13.pom
       - https://dl.google.com/dl/android/maven2/com/github/shawnlin013/NumberPicker/v2.4.13/NumberPicker-v2.4.13.pom
       - https://repo.maven.apache.org/maven2/com/github/shawnlin013/NumberPicker/v2.4.13/NumberPicker-v2.4.13.pom
       - https://maven.google.com/com/github/shawnlin013/NumberPicker/v2.4.13/NumberPicker-v2.4.13.pom
       - https://jitpack.io/com/github/shawnlin013/NumberPicker/v2.4.13/NumberPicker-v2.4.13.pom
     Required by:
         project :app

The Jitpack.io log file for the new release build contains the following output:

Build starting...
Start: Fri Aug 12 23:22:15 UTC 2022 564d192c8758
Git:
v2.4.13-0-g99c3054
commit 99c3054d4900f6e2f39c6efcbb5fdad4e7aab93e
Author: Shawn 
Date:   Sun May 23 00:44:21 2021 +0800

    :bookmark: Bump v2.4.13


Init SDKMan
Found Android manifest
Android SDK version: 30. Build tools: 
Installing Android platform 30
Found gradle
Gradle build script
Found gradle version: 6.7.1.
Using gradle wrapper
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Downloading https://services.gradle.org/distributions/gradle-6.7.1-all.zip
.
Unzipping /home/jitpack/.gradle/wrapper/dists/gradle-6.7.1-all/2moa8rlfac5eqlcfgk98k0deb/gradle-6.7.1-all.zip to /home/jitpack/.gradle/wrapper/dists/gradle-6.7.1-all/2moa8rlfac5eqlcfgk98k0deb
Set executable permissions for: /home/jitpack/.gradle/wrapper/dists/gradle-6.7.1-all/2moa8rlfac5eqlcfgk98k0deb/gradle-6.7.1/bin/gradle

------------------------------------------------------------
Gradle 6.7.1
------------------------------------------------------------

Build time:   2020-11-16 17:09:24 UTC
Revision:     2972ff02f3210d2ceed2f1ea880f026acfbab5c0

Kotlin:       1.3.72
Groovy:       2.5.12
Ant:          Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM:          1.8.0_292 (Private Build 25.292-b10)
OS:           Linux 4.18.0-25-generic amd64

0m4.381s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~16.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
Getting tasks: ./gradlew tasks --all
Tasks: installArchives,publishToMavenLocal,uploadArchives,
Running: ./gradlew clean -Pgroup=com.github.shawnlin013 -Pversion=v2.4.13 -xtest -xlint installArchives
> Task :clean UP-TO-DATE
> Task :library:clean UP-TO-DATE
> Task :sample:clean UP-TO-DATE
> Task :library:preBuild UP-TO-DATE
> Task :library:preReleaseBuild UP-TO-DATE
> Task :library:compileReleaseAidl NO-SOURCE
> Task :library:compileReleaseRenderscript NO-SOURCE
> Task :library:generateReleaseBuildConfig
> Task :library:generateReleaseResValues
> Task :library:generateReleaseResources
> Task :library:packageReleaseResources
> Task :library:javaPreCompileRelease
> Task :library:parseReleaseLocalResources
> Task :library:processReleaseManifest
> Task :library:androidSourcesJar
> Task :library:mergeReleaseJniLibFolders
> Task :library:mergeReleaseNativeLibs NO-SOURCE
> Task :library:stripReleaseDebugSymbols NO-SOURCE
> Task :library:mergeReleaseShaders
> Task :library:copyReleaseJniLibsProjectAndLocalJars
> Task :library:compileReleaseShaders NO-SOURCE
> Task :library:generateReleaseAssets UP-TO-DATE
> Task :library:packageReleaseAssets
> Task :library:packageReleaseRenderscript NO-SOURCE
> Task :library:processReleaseJavaRes NO-SOURCE
> Task :library:prepareLintJarForPublish
> Task :library:writeReleaseAarMetadata
> Task :library:generatePomFileForMavenPublication
> Task :library:mergeReleaseJavaResource
> Task :library:generateReleaseRFile
> Task :library:compileReleaseJavaWithJavac

> Task :library:androidJavadoc
1 warning

> Task :library:androidJavadocJar
> Task :library:extractReleaseAnnotations
> Task :library:mergeReleaseGeneratedProguardFiles
> Task :library:mergeReleaseConsumerProguardFiles
> Task :library:syncReleaseLibJars
> Task :library:bundleReleaseAar
> Task :library:generateMetadataFileForMavenPublication
> Task :library:signMavenPublication FAILED
29 actionable tasks: 26 executed, 3 up-to-date
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
/home/jitpack/build/library/src/main/java/com/shawnlin/numberpicker/Scroller.java:556: warning - @hide is an unknown tag.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':library:signMavenPublication'.
> Cannot perform signing task ':library:signMavenPublication' because it has no configured signatory

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 16s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Archive: io.github.ShawnLin013:library:2.4.13
Publication: io.github.ShawnLin013:number-picker:2.4.13
Build tool exit code: 0
Looking for artifacts...
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Looking for pom.xml in build directory and ~/.m2
Found artifact: io.github.ShawnLin013:number-picker:2.4.13
Found artifact: io.github.ShawnLin013:number-picker:2.4.13
Found artifact: io.github.ShawnLin013:library:2.4.13
2022-08-12T23:23:24.960473671Z
Exit code: 0

⚠️ ERROR: No build artifacts found
Expected artifacts in: $HOME/.m2/repository/io/github/ShawnLin013/number-picker/2.4.13

The Gradle build does succeed using the previous release with implementation 'com.github.shawnlin013:NumberPicker:v2.4.12'.

@hvaddi9
Copy link

hvaddi9 commented May 30, 2023

Change to the new library hostname. It should work

implementation 'io.github.ShawnLin013:number-picker:2.4.13'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants