jitpack.io icon indicating copy to clipboard operation
jitpack.io copied to clipboard

Automatic maven plugin injection fails when repo has java and android modules

Open ligi opened this issue 4 years ago • 3 comments

see here: https://jitpack.io/com/github/walleth/KHardWareWallet/e28fdc30d7/build.log it only finds:

Files: 
com/github/walleth/KHardWareWallet/keycard/e28fdc30d7
com/github/walleth/KHardWareWallet/keycard/e28fdc30d7/keycard-e28fdc30d7-sources.jar
com/github/walleth/KHardWareWallet/keycard/e28fdc30d7/keycard-e28fdc30d7.aar
com/github/walleth/KHardWareWallet/keycard/e28fdc30d7/keycard-e28fdc30d7.pom
com/github/walleth/KHardWareWallet/keycard/e28fdc30d7/keycard-e28fdc30d7.pom.md5
com/github/walleth/KHardWareWallet/keycard/e28fdc30d7/keycard-e28fdc30d7.pom.sha1

com/github/walleth/KHardWareWallet/trezor/e28fdc30d7
com/github/walleth/KHardWareWallet/trezor/e28fdc30d7/trezor-e28fdc30d7-sources.jar
com/github/walleth/KHardWareWallet/trezor/e28fdc30d7/trezor-e28fdc30d7.aar
com/github/walleth/KHardWareWallet/trezor/e28fdc30d7/trezor-e28fdc30d7.pom
com/github/walleth/KHardWareWallet/trezor/e28fdc30d7/trezor-e28fdc30d7.pom.md5
com/github/walleth/KHardWareWallet/trezor/e28fdc30d7/trezor-e28fdc30d7.pom.sha1

but it should also find ./trezor_wire/build/libs/trezor_wire.jar

otherwise builds using the trezor module will fail as they cannot resolve trezor_wire I need to mix android and java as the wire gradle plugin does not support android modules currently

ligi avatar Mar 27 '20 03:03 ligi

@ligi AFAIK, at its core jitpack runs ./gradlew install with some exclusion of tests and then publishes whatever comes out as artifact.

The install task would be added by a maven or android-maven plugin which I'm not seeing applied to that library. Perhaps try adding one of those plugins to the java library module and re-check.

For reference here's a multi-artifact repo with aar and jar artifacts being built and distributed through jitpack: https://github.com/uport-project/uport-android-sdk

It seems to work just fine even when we apply plugin: "com.github.dcendents.android-maven" on java libraries

mirceanis avatar Mar 27 '20 08:03 mirceanis

thanks @mirceanis - that was really helpful! Got it to work when adding the plugins manually. But still keeping this issue open as it would be great if the automatic injection of the plugins would also work.

ligi avatar Mar 31 '20 22:03 ligi

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

github-actions[bot] avatar Jul 27 '22 02:07 github-actions[bot]

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

github-actions[bot] avatar Aug 11 '22 02:08 github-actions[bot]