Code Monkey home page Code Monkey logo

Comments (4)

AlexanderLS avatar AlexanderLS commented on May 30, 2024

Hi @danielgindi ,

I investigated this issue and couldn't reproduce it.

  1. What Developer IDE did you use (Android Studio (3.3, 3.2, 3.1), Eclipse, IntelliJ IDEA, other)? Try to use Android Studio 3.3 Canary 3
  2. Something wrong in your build.gradle files, can you send them? If it's Open Source project can I look at it?
  3. Maybe it something like android gradle plugin should not conflict w/ java gradle plugin issue. Google won't fix it.
  4. I assigned developer for the small feature that can help you.

Thanks.

from gradlemavenpush.

danielgindi avatar danielgindi commented on May 30, 2024

Thanks for the quick response :-)
You can take a look here: https://github.com/danielgindi/android-helpers
It's a small "general utility" repo that I use in several projects to make life easier.

from gradlemavenpush.

AlexanderLS avatar AlexanderLS commented on May 30, 2024

Hi @danielgindi

Issue confirmed. It's not Kotlin bug. It's Gradle/Other plugins bug. We'll find workaround for it for our plugin someday... :(

You can add POM_PACKAGING (default is "aar" for Gradle Android Artifacts and "jar" for Gradle Java Artifacts and Gradle Kotlin Artifacts) and change it's value. Depends on Gradle/Plugins versions this option:

  1. Changes <packaging> tag in the generated pom file only;
  2. Changes main artifact file extension and <packaging> tag in the generated pom file;
  3. Changes main artifact and it's asc file extensions and changes <packaging> tag in the generated pom file.

IMPORTANT! In your project POM_PACKAGING doesn't generate JAR library, it only changes file extension of AAR library from aar to jar

We added 2 options for you and others:

  • Add ANDROID_JAR_ARTIFACT (default is "false") and set it to "true" to generate Gradle Android Artifact jar. You'll get both POM_PACKAGING value (default is "aar" for Gradle Android Artifacts) and "jar" artifacts in your Android library project.
  • Add FATJAR_ARTIFACT (default is "false") and set it to "true" to generate fatjar. You'll get both POM_PACKAGING value (default is "aar" for Gradle Android Artifacts and "jar" for Gradle Java Artifacts and Gradle Kotlin Artifacts) and "fatjar" artifacts.

I sent Pull Request to your library with updated properties - danielgindi/android-helpers#1

Thanks

from gradlemavenpush.

danielgindi avatar danielgindi commented on May 30, 2024

Thank you very much! You even surprised with a PR :-)

I tried now and it published successfully!

from gradlemavenpush.

Related Issues (2)

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.