#1151650 gradle-kotlin-dsl: FTBFS: provider/src/main/kotlin/org/gradle/kotlin/dsl/KotlinSettingsScript.kt:111:9: error: type mismatch: inferred type is URI? but URI was expected

#1151650#5
Date:
2026-10-22 17:03:11 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:gradle-kotlin-dsl, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
warning: classpath entry points to a non-existent location: \

provider/src/main/kotlin/org/gradle/kotlin/dsl/KotlinInitScript.kt:108:9: error: type mismatch: inferred type is URI? but URI was expected
        fileOperations.uri(path)
        ^
provider/src/main/kotlin/org/gradle/kotlin/dsl/KotlinSettingsScript.kt:111:9: error: type mismatch: inferred type is URI? but URI was expected
        fileOperations.uri(path)
        ^
make[1]: *** [debian/rules:21: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1151650#10
Date:
2026-10-22 17:50:03 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
gradle-kotlin-dsl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1151650@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emmanuel Bourg <ebourg@apache.org> (supplier of updated gradle-kotlin-dsl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 22 Oct 2026 19:36:03 +0200
Source: gradle-kotlin-dsl
Architecture: source
Version: 0.16.3-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Emmanuel Bourg <ebourg@apache.org>
Closes: 1151650
Changes:
 gradle-kotlin-dsl (0.16.3-1) unstable; urgency=medium
 .
   * New upstream release
     - Refreshed the patches
     - Fixed the compatibility with Gradle 4.7 (Closes: #1151650)
     - Add gradle-plugins.jar to the classpath of the tooling builders
     - Extend the classpath of the plugins with gradle-plugins.jar,
       gradle-plugin-development.jar and the Kotlin Gradle plugin
     - Set the Kotlin DSL plugins version to debian as well, the accessors of
       the generated extensions reference it
     - Updated the POM files
Checksums-Sha1:
 fe327da33c610c03c529c501d14e7e03d6786bb4 2145 gradle-kotlin-dsl_0.16.3-1.dsc
 b463138ebb9c43c8006c4a4d7f34f0ac8ded4375 121488 gradle-kotlin-dsl_0.16.3.orig.tar.xz
 78da3945c38ae73054a42b755bf96a481463ab96 8996 gradle-kotlin-dsl_0.16.3-1.debian.tar.xz
 9c69d0368289446b160b40492b531129929898fb 17279 gradle-kotlin-dsl_0.16.3-1_source.buildinfo
Checksums-Sha256:
 84588eb6c55e15178146f9bd0b265721508eadfd40cb8bcf89aca84f484511ba 2145 gradle-kotlin-dsl_0.16.3-1.dsc
 aa2109f9b01990110d1de8a0df987d454f7adffc9bf8278d00d6a5c34f096407 121488 gradle-kotlin-dsl_0.16.3.orig.tar.xz
 950a7d035bf8e99cf1f8d50744908a0a783eb4f5d1e00c556345bd9b9168b562 8996 gradle-kotlin-dsl_0.16.3-1.debian.tar.xz
 80a5487b0ccbe121b5a31a8a377c8af9ad751ce051d5b856f5836b2f981a38e8 17279 gradle-kotlin-dsl_0.16.3-1_source.buildinfo
Files:
 7bd31bf22c725e0926bc672bffc8c9da 2145 java optional gradle-kotlin-dsl_0.16.3-1.dsc
 af02d2d1979023f9b4bbf94c1df1af18 121488 java optional gradle-kotlin-dsl_0.16.3.orig.tar.xz
 b789c6ad42a835ed56506733b7c38720 8996 java optional gradle-kotlin-dsl_0.16.3-1.debian.tar.xz
 fe391fca664aafed348b86b7ab2c27a1 17279 java optional gradle-kotlin-dsl_0.16.3-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmraSiESHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCs4OwP/iDuH2+xQHoBIV25cAsr/UyLB9D7/Ine
G7edBI4b88qJfuR2ECXQKBELvHa66kQK2aDIsvRLsqXjGQUE4v9C6GAYC3KUwYtb
SXxDm/jnhDpOFVQzpBxMEkw53/lqH7iNCoL+h3db0cmo63F4nyIXOi2Kfw4WrucJ
E8AcZxYOyqgYyK6/82Rp1HxQzO00TPItc7JdZMX7kHZn7C90YpqlIP7CcDBC+Owa
bfM0X9vVRI9Ripb2vU2+iZjmyDAUPSmYxTZiwCBUcKhVbuRHkqmdboOCYncbuyUy
4ocXQPmWch5cebdhVPVapn139USeta4OrgjbYeeQPFVBU4Afhk3HWJmJETQYDMB6
KRTBwOuGUFKr1KVoDMRnwChROQ1HKldZ4E0xi3psrhemTM41HtSAqBiQMzvZl1Hf
nCGgTgkwSjgTmldUIllLDmPLHzi0xIOVbSQRcUyf/ETzMv0bWK4dQOSliQsnfQaY
k37QA8iealKOeelpYpld+7Mfn4oCVN+fEFm3dmWM79RKylBZX3j39BF1gNXlV+CW
B1Q1qxgv5iTEuhnz8wtQr4Vehawk9IGnxT+VcFnM3by/TUZ/W7QjxlTA5f/sKCNg
z++HHxI1mAb1ecEA3JlM6aJMnDMYpqF/iIliGVH1HH1n+9nTwdiwLzGGS00cw6CR
pEf8jy8FO/Ht
=EI8T
-----END PGP SIGNATURE-----