jitpack / jitpack.io

Documentation and issues of https://jitpack.io
MIT License
2.54k stars 185 forks source link

ERROR: No build artifacts found #4765

Closed MohammedAbidNafi closed 2 years ago

MohammedAbidNafi commented 3 years ago

https://jitpack.io/com/github/MohammedAbidNafi/iOS-Dialog/1.9.5/build.log

Thank you!

Vipinbalakrishnan commented 3 years ago

@MohammedAbidNafi

Please check and following below steps.

1.Update gradle plugin version to the latest in build.gradle file -of the project root in the dependencies section as below.

dependencies { classpath "com.android.tools.build:gradle:7.0.2" }

2.Add jitpack.io repository to build.gradle file of the root as well as the library module of the project as below.


repositories { google() mavenCentral() maven { url "https://jitpack.io" } }


3.Add plugin maven-publish in the build.gradle file of the module as below along with library plugin.

plugins { id 'com.android.library' id 'maven-publish' }

4.Added jitpack.yml in the root of the project for JAVA 11 support. Create a file with name as 'jitpack.yml' with the following content

jdk: -openjdk11

5.Changed java version to 11 in build.gradle file of the app module and library module inside android {} as below. New gradle plugin builds on java 11.

compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 }

6.Added maven publication settings as below in the build.gradle of module.

afterEvaluate { publishing { publications { // Creates a Maven publication called "release". release(MavenPublication) { from components.release groupId = 'com.github.Vipinbalakrishnan' artifactId = 'ribbonlayout' version = '1.1' } } } }

Note:-
Sixth step is necessary.

MohammedAbidNafi commented 2 years ago

Thank you will try this and let you know

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 years ago

This issue was closed because it has been inactive for 14 days since being marked as stale.