Re: Gradle problems when building adql-java package

Pierre Gruet <[email protected]>
Newsgroups gmane.linux.debian.devel.java
Message-ID <[email protected]>
Hi Ole,

Le 08/12/2023 à 13:59, Ole Streicher a écrit :
> Hi Andrius,
> 
> Andrius Merkys <[email protected]> writes:
>> On 2023-12-08 13:03, Ole Streicher wrote:
>>> I am trying to update the adql-java package to the newest upstream
>>> (beta) version. As it is my first project using gradle, I sumbled upon a
>>> number of problems: [...]
>>
>> I guess you could patch 'junit:junit:4.13.1' with 'junit:junit:4.x' to
>> avoid this overly strict dependency version checking.
> 
> Thank you! This worked.
> 
> Now I have the next problem: the original ADQLLib/build.gradle contains the lines
> 
>      // Name of the JAR name (which will be then suffixed by the version number):
>      archivesBaseName = "adql"
>      distributions {
>          main {
>              distributionBaseName = archivesBaseName
>          }
>      }
> 
> When I removed the "distributions" block, the Jar file has the wrong
> name (ADQLLib.jar). But when I include it, I get the error
> 
>      * What went wrong:
>      A problem occurred evaluating project ':ADQLLib'.
>      > Could not set unknown property 'distributionBaseName' for object of type org.gradle.api.distribution.internal.DefaultDistribution.
> 
> However, when looking in the Gradle docs, I find this as a valid
> configuration. Do you have any idea here?

Hmm, unfortunately we have an old Gradle in Debian at the moment. One 
has to look at the docs for version 4.4:
	https://docs.gradle.org/4.4/userguide/distribution_plugin.html
By reading this, I think you could try
	baseName = archivesBaseName
instead of
	distributionBaseName = archivesBaseName

Tell us if it works...

> 
> Cheers
> 
> Ole
> 

Best,

-- 
Pierre
OpenPGP_signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEM8soQxPpC9J9y0UjYAMWptwndHYFAmVzJvwACgkQYAMWptwn
dHbhdxAAiRktAt5MdOJjzd3pJ1ojNFArQr6o6LsKh+GdexxT6POnUJNm7QnkcQAB
nxaLBCo8fNsbzvfEjZWRyVI/iE2udMg22N8FLeROahkdb604MD1g9KhWhJjqj4mJ
M0XoTs8fAW5YHMQB6be+CttPPU+qB7W8d9HOkKYw9Dopr2qJibVYm0rQ0Nj1CmZ7
RlkX5qnRCbmJh3SXO1A0fhyQ/aPqOuZvYNUedAjKjMfrrwfYA1QulVrBtL2fAL1F
VF18ckRuzifRBNe+HQ9jAtCYR+fw9iOmz7CCmSumhLgZ4tIJZjT6tMMZjVj2qE3V
FhgI+LAnesWBg1QELq7RS4l1wq+8wxz5y9JJHLyy3gAYZAGpCbuN3Yb1QZDsufQH
E0gmX+uNiAlrJqeiEjVv2LJRIg5hbqYpTKKDFDw6XFQNxjWo1EnrKosFiEB25vCJ
0dKWo9PuISriJxbzsO3ZruSYiqaIIpdXOKNtuByHGXm9xcF1jSiqOQE4yr8wviiF
0UMlg6U0OmpWaduQwLTOkkHjg5H7vCuG0kG34j1rPNn7+qy5zzISdcpkbdMTsAR0
Cxi7s3/wTKvHC+y7kxYJcu+ItyOHOgY/oMfa07O8o27Va08Xu3N46dIAUOHRV9fa
iD3w0+fQEI/6TeGa9G2CW8f56jf5+YtSnBEwuqFnJ+WpgrtMZmg=
=jb1T
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.