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


Groups > linux.debian.maint.java > #12520

Re: Kotlin and OpenJDK 8 in Bookworm?

Path csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.imp.ch!fu-berlin.de!bofh.it!news.nic.it!robomod
From Emmanuel Bourg <ebourg@apache.org>
Newsgroups linux.debian.maint.java
Subject Re: Kotlin and OpenJDK 8 in Bookworm?
Date Wed, 01 Feb 2023 12:30:01 +0100
Message-ID <FUjtn-2EmF-3@gated-at.bofh.it> (permalink)
References <FSe4O-1kaG-5@gated-at.bofh.it>
X-Mailbox-Line From debian-java-request@lists.debian.org Wed Feb 1 11:24:36 2023
Old-Return-Path <ebourg@apache.org>
X-Amavis-Spam-Status No, score=-6.998 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -3.5
MIME-Version 1.0
User-Agent Roundcube Webmail/1.4.13
X-Sender ebourg@apache.org
X-Originating-IP 78.197.213.85
X-Webmail-Userid ebourg-oss@ariane-software.com
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Ovh-Tracer-ID 5467932898769369270
X-Vr-Spamstate OK
X-Vr-Spamcause gggruggvucftvghtrhhoucdtuddrgedvhedrudefiedgvdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpeggfffhvffujghffgfkgihitgfgsehtkehjtddtreejnecuhfhrohhmpefgmhhmrghnuhgvlhcuuehouhhrghcuoegvsghouhhrghesrghprggthhgvrdhorhhgqeenucggtffrrghtthgvrhhnpedvudelffelgeehieffuddvgfdtleejheeivdetudejtdefhedvfffhieelhedvtdenucffohhmrghinhepjhgvthgsrhgrihhnshdrtghomhenucfkphepuddvjedrtddrtddruddpjeekrdduleejrddvudefrdekhedpudehuddrkedtrddvledrudelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeovggsohhurhhgsegrphgrtghhvgdrohhrgheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepuggvsghirghnqdhjrghvrgeslhhishhtshdruggvsghirghnrdhorhhgpdfovfetjfhoshhtpehmohehkeegpdhmohguvgepshhmthhpohhuth
X-Mailing-List <debian-java@lists.debian.org> archive/latest/23170
List-ID <debian-java.lists.debian.org>
List-URL <https://lists.debian.org/debian-java/>
List-Archive https://lists.debian.org/msgid-search/b05371abbae45d56855f9b28cdad8fa7@apache.org
Approved robomod@news.nic.it
Lines 41
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 01 Feb 2023 12:24:18 +0100
X-Original-Message-ID <b05371abbae45d56855f9b28cdad8fa7@apache.org>
X-Original-References <298c5e7142ad9fc677f2f567242c8ea3@apache.org>
Xref csiph.com linux.debian.maint.java:12520

Show key headers only | View raw


Le 2023-01-26 17:17, Emmanuel Bourg a écrit :

> I've been working on Kotlin lately, trying to make it build with 
> OpenJDK 17
> only, and hopefully have it included in Bookworm.
> 
> Long story short, after days banging my head on this issue, I don't 
> think
> it's possible.

I take that back, kotlin now builds with OpenJDK 17 and is on track to
migrate to testing.

This comes at a price though, besides my sanity I had the sacrifice the
Android support (the Android dependencies still build with OpenJDK 8) 
and
the -Xuse-javac option which hasn't been updated for OpenJDK 17 yet [1].

It isn't extensively tested yet but the resulting package is good enough 
to
rebuild itself.

The next hurdle is to enable the Kotlin DSL in Gradle. I've packaged the
version of gradle-kotlin-dsl that came with Gradle 4.4 but it doesn't 
work.
When Gradle encounters a .kts file an obscure error is thrown
(NoDescriptorForDeclarationException: Descriptor wasn't found for
declaration SCRIPT). I have no idea how to fix this, and I now think 
this
is a dead end anyway. gradle-kotlin-dsl uses internal Gradle APIs that
changed in Gradle 5, so if we use the Kotlin syntax to upgrade Gradle,
it'll break immediately and we'll be unable to rebuild Gradle.

The solution I think is to upgrade Gradle to the first version with the
Kotlin DSL source code merged, which is Gradle 5.3. I leave that to 
someone
else.

Emmanuel Bourg

[1] https://youtrack.jetbrains.com/issue/KT-56235

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Kotlin and OpenJDK 8 in Bookworm? Emmanuel Bourg <ebourg@apache.org> - 2023-01-26 18:20 +0100
  Re: Kotlin and OpenJDK 8 in Bookworm? Markus Koschany <apo@debian.org> - 2023-01-26 19:10 +0100
  Re: Kotlin and OpenJDK 8 in Bookworm? Thorsten Glaser <t.glaser@tarent.de> - 2023-01-26 19:40 +0100
    Re: Kotlin and OpenJDK 8 in Bookworm? Emmanuel Bourg <ebourg@apache.org> - 2023-01-30 00:40 +0100
      Re: Kotlin and OpenJDK 8 in Bookworm? Thorsten Glaser <t.glaser@tarent.de> - 2023-01-30 00:50 +0100
        Re: Kotlin and OpenJDK 8 in Bookworm? Thorsten Glaser <t.glaser@tarent.de> - 2023-02-10 18:10 +0100
          Re: Kotlin and OpenJDK 8 in Bookworm? Emmanuel Bourg <ebourg@apache.org> - 2023-02-11 10:30 +0100
  Re: Kotlin and OpenJDK 8 in Bookworm? Emmanuel Bourg <ebourg@apache.org> - 2023-02-01 12:30 +0100
    Re: Kotlin and OpenJDK 8 in Bookworm? Markus Koschany <apo@debian.org> - 2023-02-01 15:20 +0100
      Re: Kotlin and OpenJDK 8 in Bookworm? Hans-Christoph Steiner <hans@at.or.at> - 2023-02-13 12:40 +0100
        Re: Kotlin and OpenJDK 8 in Bookworm? Thorsten Glaser <t.glaser@tarent.de> - 2023-02-13 15:10 +0100
          Re: Kotlin and OpenJDK 8 in Bookworm? Hans-Christoph Steiner <hans@at.or.at> - 2023-02-13 16:40 +0100
            Re: Kotlin and OpenJDK 8 in Bookworm? Hans-Christoph Steiner <hans@at.or.at> - 2023-02-13 17:00 +0100
            Re: Kotlin and OpenJDK 8 in Bookworm? Emmanuel Bourg <ebourg@apache.org> - 2023-02-13 17:20 +0100
              Re: Kotlin and OpenJDK 8 in Bookworm? Hans-Christoph Steiner <hans@at.or.at> - 2023-02-13 17:40 +0100

csiph-web