Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #11642 > unrolled thread

Updating gradle to 6.4.1

Started by"Raman Sarda" <theloudspeaker@disroot.org>
First post2020-05-27 23:50 +0200
Last post2020-06-04 00:10 +0200
Articles 6 — 2 participants

Back to article view | Back to linux.debian.maint.java


Contents

  Updating gradle to 6.4.1 "Raman Sarda" <theloudspeaker@disroot.org> - 2020-05-27 23:50 +0200
    Re: Updating gradle to 6.4.1 "Raman Sarda" <theloudspeaker@disroot.org> - 2020-05-30 13:10 +0200
      Re: Updating gradle to 6.4.1 Emmanuel Bourg <ebourg@apache.org> - 2020-05-30 14:40 +0200
        Re: Updating gradle to 6.4.1 "Raman Sarda" <theloudspeaker@disroot.org> - 2020-05-30 15:00 +0200
          Re: Updating gradle to 6.4.1 Emmanuel Bourg <ebourg@apache.org> - 2020-05-30 17:00 +0200
            Re: Updating gradle to 6.4.1 "Raman Sarda" <theloudspeaker@disroot.org> - 2020-06-04 00:10 +0200

#11642 — Updating gradle to 6.4.1

From"Raman Sarda" <theloudspeaker@disroot.org>
Date2020-05-27 23:50 +0200
SubjectUpdating gradle to 6.4.1
Message-ID<Abc5Y-3VB-3@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [next] | [standalone]


#11651

From"Raman Sarda" <theloudspeaker@disroot.org>
Date2020-05-30 13:10 +0200
Message-ID<Ac7xg-4YS-5@gated-at.bofh.it>
In reply to#11642

[Multipart message — attachments visible in raw view] — view raw

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" <hans@at.or.at (mailto:hans@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 '/<<sec:[^>]*>>/y/_/ /' 
-e 's/<<sec:([^>]*)>>/the documentation section B<U1E>/g' 
-e '/<<[^>]*>>/y/_/ /' 
-e 's/<<([^>]*)>>/the documentation section B<U1E>/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

[toc] | [prev] | [next] | [standalone]


#11652

FromEmmanuel Bourg <ebourg@apache.org>
Date2020-05-30 14:40 +0200
Message-ID<Ac8Wm-5Hh-7@gated-at.bofh.it>
In reply to#11651
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

[toc] | [prev] | [next] | [standalone]


#11653

From"Raman Sarda" <theloudspeaker@disroot.org>
Date2020-05-30 15:00 +0200
Message-ID<Ac9fI-5Ny-9@gated-at.bofh.it>
In reply to#11652

[Multipart message — attachments visible in raw view] — view raw

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" <ebourg@apache.org (mailto:ebourg@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

[toc] | [prev] | [next] | [standalone]


#11655

FromEmmanuel Bourg <ebourg@apache.org>
Date2020-05-30 17:00 +0200
Message-ID<Acb7Q-6Y0-9@gated-at.bofh.it>
In reply to#11653
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

[toc] | [prev] | [next] | [standalone]


#11670

From"Raman Sarda" <theloudspeaker@disroot.org>
Date2020-06-04 00:10 +0200
Message-ID<AdJKa-6Gb-43@gated-at.bofh.it>
In reply to#11655

[Multipart message — attachments visible in raw view] — view raw

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" <ebourg@apache.org (mailto:ebourg@apache.org?to=%22Emmanuel%20Bourg%22%20<ebourg@apache.org>)> 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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.java


csiph-web