Bug 1247385 - Need documentation for gradle builds
Summary: Need documentation for gradle builds
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: javapackages-tools
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-27 20:59 UTC by Orion Poplawski
Modified: 2017-08-08 12:03 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 12:03:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2015-07-27 20:59:53 UTC
Description of problem:

No description of how to build Fedora packages with gradle in https://fedorahosted.org/released/javapackages/doc as promised by https://fedoraproject.org/wiki/Changes/Gradle

Comment 1 Orion Poplawski 2015-07-27 21:28:01 UTC
I working with jabref (https://github.com/JabRef/jabref).  I'll post my issues here in case they make good items for the HowTo.

First issue seems to be that it wants to package up a jar with all deps using "fatjar":

// enables fatjar, the creation of a jar with all dependencies bundled inside
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'eu.appsatori:gradle-fatjar-plugin:0.2'
    }
}
apply plugin: 'fatjar'
fatJar {
    classifier 'fat'
    manifest {
        attributes 'Main-Class': "net.sf.jabref.JabRefMain"
    }
}


So presumably we want to change this to a standard jar mechanism?  For now I've simply removed this whole section.


Next issue:

+ gradle-local

FAILURE: Build failed with an exception.

* Where:
Build file '/builddir/build/BUILD/jabref-v_2.11b3/build.gradle' line: 81

* What went wrong:
A problem occurred evaluating root project 'JabRef'.
> Could not import Ant build file '/builddir/build/BUILD/jabref-v_2.11b3/build-wrapper.xml'.


Using the --stacktrace option showed that the issue was a missing jarbundler:

/builddir/build/BUILD/jabref-v_2.11b3/build.xml:522: taskdef class net.sourceforge.jarbundler.JarBundler cannot be found

However, adding BR jarbundler doesn't appear to help.

Comment 2 Orion Poplawski 2015-07-27 21:50:20 UTC
jarbundler was only used for building OSX packages it seems, to I removed that from build.xml.

Comment 3 Mikolaj Izdebski 2015-07-28 05:34:05 UTC
I've just added initial section about Gradle and I will look into expanding it in future. https://fedorahosted.org/released/javapackages/doc/#gradle

Comment 4 Orion Poplawski 2015-07-28 23:03:08 UTC
Great.  What does the -s flag do?

Comment 5 Mikolaj Izdebski 2015-07-29 12:05:03 UTC
(In reply to Orion Poplawski from comment #4)
> Great.  What does the -s flag do?

-s, --stacktrace
Print out the stacktrace for all exceptions.

When your build fails for some reason, you'll get stack trace instead of vague error message.

Comment 6 Jan Kurik 2016-02-24 13:28:58 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 7 Fedora End Of Life 2017-07-25 19:03:05 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2017-08-08 12:03:03 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.