From f500af45f14a90736bb33f868f7b8928ace647bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= <148013+szpak@users.noreply.github.com> Date: Mon, 22 Jan 2024 23:55:04 +0100 Subject: [PATCH] Mention JDK <11 support deprecation in README (#303) Target compatibility is still set to 8, but it might change in the future, if needed. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index c7728bfb..360ac86c 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,10 @@ group = "com.example.library" version = "1.0.0" ``` +#### Java compatibility + +As of version 2.x, support for JDK <11 is [deprecated](https://github.com/gradle-nexus/publish-plugin/issues/171). The JDK taget compatibility is still set to 8, however, it is encouraged to use the latest possible Java version (e.g. 21+). As being deprecated, support for JDK <11 might be dropped in a future minor plugin version (i.e. 2.x). + ### Publishing to Maven Central via Sonatype OSSRH In order to publish to Maven Central (aka the Central Repository or just Central) via Sonatype's OSSRH Nexus, you simply need to add the `sonatype()` repository like in the example below. Its `nexusUrl` and `snapshotRepositoryUrl` values are pre-configured.