[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Packaging issue on gradle's library dependency



Dear Java Team,

I'm in the progress of packaging a java program, smali. [0]
I met some problems, usually these should go to mentors list for help.
But it's quite java related, so here it is.

I cloned original repo from github, added the debian/ folder, and used
it's original gradle configuration to build. But it failed.
I already push it to my github in "pkg-smali" branch. [1]

the log looked like this:
==========================
Compiling build file '/home/roger/smali/baksmali/build.gradle' using
SubsetScriptTransformer.
    Replacing proguard:gradle:jar:5.2.1  ->  proguard:gradle:jar:debian

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':baksmali'.
> Could not resolve all dependencies for configuration ':baksmali:classpath'.
==========================
(full log is also enclosed)

I already installed proguard package by apt, also confirmed there's jar file:
- /usr/share/java/proguard.jar
inside this jar, there's "proguard/gradle/" folder.

So I don't know what's the problem.
I guess that maybe gradle need the "pom" file for the library, which
is lack of for proguard package.

Am I right? If so, do I need to submit a bugreport to proguard?

Sorry I'm a newbie of java packaging.
Please keep me in CC list when reply. Thank you!

BTW. Here's the command I tried to build:
  git clone https://github.com/rogers0/smali
  git checkout -b pkg-smali origin/pkg-smali
  gbp buildpackage -us -uc --git-verbose --git-ignore-branch 2>&1 |
tee ../log.txt

[0]: https://bugs.debian.org/808397
[1]: https://github.com/rogers0/smali/tree/pkg-smali

Cheers,
Roger

Attachment: log.txt.gz
Description: GNU Zip compressed data


Reply to: