On 2015-12-10 12:38, gil wrote:
hi
seem there are something of wrong, using the
new macro:
/usr/bin/python3 /usr/share/java-utils/mvn_build.py --gradle
/usr/bin/python3: can't open file '/usr/share/java-utils/mvn_build.py':
[Errno 2] No such file or directory
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=12137114
must be adde as BR also maven-local?
regards
.g
It's a bug in javapackages-tools, I noticed it a while back, but forgot
to fix it or report it. I reported it now at
https://bugzilla.redhat.com/show_bug.cgi?id=1290399
As a workaround, use BR: maven-local
Regards,
Michael Simacek
Il 03/12/2015 08:58, Roman Mohr ha scritto:
On Wed, Dec 2, 2015 at 5:08 PM, Mikolaj Izdebski
<<mailto:mizdebsk@xxxxxxxxxx>mizdebsk@xxxxxxxxxx> wrote:
On 12/01/2015 10:31 AM, Roman Mohr wrote:
> Ok, got it working
>
> On Tue, Dec 1, 2015 at 8:43 AM, Roman Mohr
<<mailto:roman@xxxxxxxxxxxx>roman@xxxxxxxxxxxx> wrote:
>
>> Hi,
>>
>> I am currently trying to package some java projects which use
gradle and I
>> am suck on how to use gradle in offline mode. The Java HOWTO
says that I
>> can use the gradle-local command which should be part of the
gradle-local
>> package[1]. But at least on Fedora 22 there is no such command
inside that
>> package.
>>
>>
> The gradle-local script is still missing, so no idea if it is
needed. I
> guess the intention of it is to add the xmvn() repository
automatically if
> no repositories section is in the build.grade file. Right?
Fedora 22 is old stable distribution. All development (ie. packagging)
should be done in rawhide first, so I'll describe how things are done
there. Gradle packaging automation is constantly improving and I don't
remember which features are in F22 and which are not.
I tried it with rahwhide and F22. So I missed the one distribution
(F23) with the gradle-local script.
Generic steps needed to use Gradle for building packages are described
at: https://fedorahosted.org/released/javapackages/doc/
Currently I would recommended using new %gradle_build macro (which is
not yet documented in Java packaging HOWTO). To do that you need to
replace step 2 in the above description with call to %gradle_build,
which takes the same parameters as %mvn_build.
>> I also tried to build the packages then just with 'gradle -s
--offline' to
>> see if this might already find the jars from other RPMs but
that does not
>> seem to be the case.
>>
>>
> I added the xmvn() repo to the repositories section of the
build.gradle
> file and then it could detect the artifacts.
Adding xmvn() repo should't be necessary if you use gradle-local
command
or %gradle_local macro.
Will give it a try.
--
Mikolaj Izdebski
Software Engineer, Red Hat
IRC: mizdebsk
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
<mailto:java-devel@xxxxxxxxxxxxxxxxxxxxxxx>
https://admin.fedoraproject.org/mailman/listinfo/java-devel
Thanks for the help,
Roman
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel