Re: Updating gradle to 6.4.1

2020-06-03 Thread Raman Sarda
The task actually exists, I found out that the cause of the error was the 
version of gradle which we have(4.4.1) It can't build or detect tasks in 
build.gradle.kts files. I have explained the issue in detail here : 
https://salsa.debian.org/android-tools-team/admin/-/issues/16  
(https://salsa.debian.org/android-tools-team/admin/-/issues/16)

Me and my teammates Samyak and Manas would like to have a discussion 
with you on this and kotlin. Will it be possible for you to join 
#debian-android-tools this thursday at 14:30 UTC for our weekly meeting ? 
Please let us know.
Thanks!

Raman Sarda
theloudspeaker.home.blog

May 30, 2020 8:27 PM, "Emmanuel Bourg" mailto:ebo...@apache.org?to=%22Emmanuel%20Bourg%22%20)> 
wrote:
Le 30/05/2020 à 14:54, Raman Sarda a écrit : Now I get the following 
error:
https://paste.ubuntu.com/p/PtnrqDWrS8 (https://paste.ubuntu.com/p/PtnrqDWrS8)
The 'assemble' task is invoked in debian/rules but no longer exist:

https://salsa.debian.org/java-team/gradle/-/blob/master/debian/rules#L3 
(https://salsa.debian.org/java-team/gradle/-/blob/master/debian/rules#L3)

Emmanuel Bourg


Re: Updating gradle to 6.4.1

2020-05-30 Thread Emmanuel Bourg
Le 30/05/2020 à 14:54, Raman Sarda a écrit :

> Now I get the following error:
> https://paste.ubuntu.com/p/PtnrqDWrS8

The 'assemble' task is invoked in debian/rules but no longer exist:

https://salsa.debian.org/java-team/gradle/-/blob/master/debian/rules#L3

Emmanuel Bourg



Re: Updating gradle to 6.4.1

2020-05-30 Thread Raman Sarda
Hey Ebourg!
Thanks for the reply. I did find that out that distributions was removed.(after 
sending the last
mail) Hence I removed it from GRADLE_EXCLUDED_PROJECTS in debian/rules. 
simillarly I think others
were also removed.(got same errors for internaltesting, performance, soak, 
etc). I removed them too. so that the GRADLE_EXCLUDED_PROJECTS is empty now. 
Now I get the following error: https://paste.ubuntu.com/p/PtnrqDWrS8 
(https://paste.ubuntu.com/p/PtnrqDWrS8/)

Raman Sarda
theloudspeaker.home.blog

May 30, 2020 6:04 PM, "Emmanuel Bourg" mailto:ebo...@apache.org)> wrote:
 Le 30/05/2020 à 13:08, Raman Sarda a écrit :
 So I reverted it for the rules file and also removed the section that
built gradle 4 using gradle 3. I tried it to build it again. This time I
am getting the following error: https://paste.ubuntu.com/p/kmQKG6rmc5 
(https://paste.ubuntu.com/p/kmQKG6rmc5)

The 'distributions' module was excluded from the build but it no longer
exists, you have to update the build parameters in debian/rules.

Emmanuel Bourg


Re: Updating gradle to 6.4.1

2020-05-30 Thread Emmanuel Bourg
Le 30/05/2020 à 13:08, Raman Sarda a écrit :

> So I reverted it for the rules file and also removed the section that
> built gradle 4 using gradle 3. I tried it to build it again. This time I
> am getting the following error: https://paste.ubuntu.com/p/kmQKG6rmc5/

The 'distributions' module was excluded from the build but it no longer
exists, you have to update the build parameters in debian/rules.

Emmanuel Bourg



Re: Updating gradle to 6.4.1

2020-05-30 Thread Raman Sarda
Hey Everyone!

Update: I found that the sed section was just a way to create a manpage 
in POD format.

So I reverted it for the rules file and also removed the section that 
built gradle 4 using gradle 3. I tried it to build it again. This time I am 
getting the following error: https://paste.ubuntu.com/p/kmQKG6rmc5/ 
(https://paste.ubuntu.com/p/kmQKG6rmc5/)
Raman Sarda
theloudspeaker.home.blog

May 28, 2020 2:33 PM, "Hans-Christoph Steiner" mailto:h...@at.or.at)> wrote:
 Hey Raman,

Here's the error in question:
sed 
-e 's/(.*):: *$/n=item 1n/' 
-e 's/`([^`]*)`/B<1>/g' 
-e 's/^+$//g' 
-e 's/(https:[^[]*)[[][^]]*]/L<1>/g' 
-e '/<]*>>/y/_/ /' 
-e 's/<]*)>>/the documentation section B/g' 
-e '/<<[^>]*>>/y/_/ /' 
-e 's/<<([^>]*)>>/the documentation section B/g' 
-e 's/ (([^)]*))>/> (1)/g' 
-e '/daemon_cli]]/,$d' 
-e '0,/The command-line options available/d' 
subprojects/docs/src/docs/userguide/commandLine.adoc >> debian/gradle.pod
sed: can't read subprojects/docs/src/docs/userguide/commandLine.adoc: No
such file or directory

Looks like that file no longer exists in the latest gradle. It could
have moved somewhere else in the upstream repo, or they removed it and
generate the docs in a different way.

.hc

Raman Sarda:
 Hey everyone!
I have updated gradle to 6.4.1 as a part of the Debian Android SDK tools 
project for GSoC 2020. I
have pushed the work here. 
(https://salsa.debian.org/theloudspeaker-guest/gradle 
(https://salsa.debian.org/theloudspeaker-guest/gradle)) [1]
Since this version of gradle depends heavily on kotlin instead of groovy, It 
needed quite a bit of
edits in patches that were applied before. I have tried to manually edit every 
patch and make sure
simillar changes are made in the .gradle.kts files whenever needed.
I have also discarded a few patches for following reasons:

a. The patch is specific to groovy and isn't required in the current version.
b. The patch is already applied upstream (eg: CVE fixes, asm7 compatiblity, etc)
c. Things that the patch modifies aren't available in current version.

I urge the java team members to review my work and provide suggestions for the 
same. The package
currently builds fine with a source build (debuild -S) with some minor lintian 
warnings. But it
fails to on a binary build (debuild -b). Here are the build errors
(https://paste.ubuntu.com/p/FnZ8WfSKgj 
(https://paste.ubuntu.com/p/FnZ8WfSKgj)). [2] It is still a work in progress. I 
will try to debug
the errors and make changes as required. I am available in #debian-java on OFTC 
for discussion.

Links:

[1] https://salsa.debian.org/theloudspeaker-guest/gradle 
(https://salsa.debian.org/theloudspeaker-guest/gradle)
(https://salsa.debian.org/theloudspeaker-guest/gradle 
(https://salsa.debian.org/theloudspeaker-guest/gradle))

[2] 
(https://salsa.debian.org/theloudspeaker-guest/gradle)https://paste.ubuntu.com/p/FnZ8WfSKgj
 
(https://salsa.debian.org/theloudspeaker-guest/gradle)https://paste.ubuntu.com/p/FnZ8WfSKgj)
(https://paste.ubuntu.com/p/FnZ8WfSKgj (https://paste.ubuntu.com/p/FnZ8WfSKgj))

Thank you.

Raman Sarda
theloudspeaker.home.blog


Re: Updating gradle to 6.4.1

2020-05-28 Thread Hans-Christoph Steiner


Hey Raman,

Here's the error in question:
sed \
-e 's/\(.*\):: *$/\n=item \1\n/' \
-e 's/`\([^`]*\)`/B<\1>/g' \
-e 's/^+$//g' \
-e 's/\(https:[^[]*\)[[][^]]*\]/L<\1>/g' \
-e '/<]*>>/y/_/ /' \
-e 's/<]*\)>>/the documentation section B<\U\1\E>/g' \
-e '/<<[^>]*>>/y/_/ /' \
-e 's/<<\([^>]*\)>>/the documentation section B<\U\1\E>/g' \
-e 's/ (\([^)]*\))>/> (\1)/g' \
-e '/daemon_cli]]/,$d' \
-e '0,/The command-line options available/d' \
subprojects/docs/src/docs/userguide/commandLine.adoc >> 
debian/gradle.pod
sed: can't read subprojects/docs/src/docs/userguide/commandLine.adoc: No
such file or directory

Looks like that file no longer exists in the latest gradle.  It could
have moved somewhere else in the upstream repo, or they removed it and
generate the docs in a different way.

.hc

Raman Sarda:
> Hey everyone!
> I have updated gradle to 6.4.1 as a part of the Debian Android SDK tools 
> project for GSoC 2020. I have pushed the work here. 
> (https://salsa.debian.org/theloudspeaker-guest/gradle) [1]
> Since this version of gradle depends heavily on kotlin instead of groovy, It 
> needed quite a bit of edits in patches that were applied before. I have tried 
> to manually edit every patch and make sure simillar changes are made in the 
> .gradle.kts files whenever needed.
> I have also discarded a few patches for following reasons:
> 
>   a. The patch is specific to groovy and isn't required in the current 
> version.
> b. The patch is already applied upstream (eg: CVE fixes, asm7 compatiblity, 
> etc)
> c. Things that the patch modifies aren't available in current version.
> 
> I urge the java team members to review my work and provide suggestions for 
> the same. The package currently builds fine with a source build (debuild -S) 
> with some minor lintian warnings. But it fails to on a binary build (debuild 
> -b). Here are the build errors (https://paste.ubuntu.com/p/FnZ8WfSKgj/). [2] 
> It is still a work in progress. I will try to debug the errors and make 
> changes as required. I am available in #debian-java on OFTC for discussion.
> 
> Links:
> 
>   [1] https://salsa.debian.org/theloudspeaker-guest/gradle 
> (https://salsa.debian.org/theloudspeaker-guest/gradle)
> 
>   [2]  
> (https://salsa.debian.org/theloudspeaker-guest/gradle)https://paste.ubuntu.com/p/FnZ8WfSKgj/
>  (https://paste.ubuntu.com/p/FnZ8WfSKgj/)
> 
> Thank you.
> 
> Raman Sarda
> theloudspeaker.home.blog
>