Re: remove javadoc sections from build.gradle, because of build failures?

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


try adding :     javadoc.options.addStringOption('Xdoclint:none', '-quiet')
@ line 209/210 of build.gradle
and chage spec file in this way
Il 23/07/2016 23:22, toogley ha scritto:
%global gmajver 2.3

Name:          gant
Version:       1.9.11
Release:       1%{?dist}
Summary:       Groovy-based build system that uses Ant tasks

License:       ASL 2.0
Source2:       %{name}-script

BuildArch:     noarch
BuildRequires: gradle-local
BuildRequires: java-devel
BuildRequires: antlr-tool
BuildRequires: objectweb-asm
# main deps
BuildRequires: ant
BuildRequires: apache-commons-cli
BuildRequires: groovy

# test deps
BuildRequires: apache-ivy
BuildRequires: junit

Requires:      ant
Requires:      antlr-tool
Requires:      apache-commons-cli
Requires:      groovy
Requires:      objectweb-asm

Requires:      java-devel

Gant is a tool for scripting Ant tasks using Groovy instead of XML
to specify the logic. A Gant specification is a Groovy script and so can bring
all the power of Groovy to bear directly, something not possible with Ant
scripts. Whilst it might be seen as a competitor to Ant, Gant uses Ant tasks for
many of the actions, so Gant is really an alternative way of doing things using
Ant, but using a programming language rather than XML to specify the rules.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%autosetup -n Gant-%{version}
find . -name "*.bat" -delete
find . -name "*.class" -delete
find . -name "*.jar" -delete


# build fails when metaInf is set.
# ---> "Could not find property 'metaInf' on project ':gant'."
# therefore remove that line.
sed -i '/metaInf/d' $PWD/build.gradle

# automatic javadoc generation for gradle is not yet implemented in XMvn.
%gradle_build --skip-javadoc  --xmvn-debug 



%files -f .mfiles
#%files javadoc -f .mfiles-javadoc

* Thu Oct 04 2012 gil cattaneo <puntogil@xxxxxxxxx> 1.9.8-1
- update to 1.9.8
- built with groovy 1.8.x support
- added maven pom
- adapted to current guideline
- added new sub package: javadoc

java-devel mailing list

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux