2

In recent release of our library we decided to add some kotlin-dsl features to our build, though for now we've added buildSrc build.gradle.kts and Dependencies.kts file containing libraries versions for easier use across all modules. The problem is that this version builds successfuly on jitpack, but downloaded jars are empty. How do I fix this? Also all the resource files are present. The build log file also differs much from previous ones.

Problematic build log file

Working build log file

A link to library on jitpack: https://jitpack.io/#netigenkluzowicz/api_android

Github link branch to reproduce these build problems is feature/kotlin, we're working to fix it on fix/jitpack-build branch

To Reproduce

Add this dependency to an Android project, sync and check classes.jars implementation 'com.github.netigenkluzowicz:api_android:2.4.1'

What we did before this problem started to occur: Added buildSrc directory with build.gradle.kts and Dependencies.kts.

We also extracted android { } block from our modules build.gradle files, it is now applied from android.gradle file.

I've already went through jitpack issues on github, all I found so far are build errors with kotlin-dsl from late 2018. Was following this guide to make a use of kotlin-dsl, though due to having issues with android { } block I didn't migrate all of our gradle files.

Micpol
  • 56
  • 4

0 Answers0