Repository navigation
Publish via Central Portal and update dependencies (Java 17, Xtext 2.42, Gradle 8, Tycho 4) - #390
Merged
Conversation
Gradle's Ant integration needs java.util.prefs to be opened on JDK 17+, otherwise jacocoTestReport fails with 'Could not inspect the Groovy system'.
OSSRH (oss.sonatype.org) has been shut down. Snapshots go to the Central Portal snapshot repository; releases are uploaded via the OSSRH Staging API and then transferred to the Central Portal, where they are published manually. Credentials come from the CENTRAL_USERNAME/CENTRAL_PASSWORD secrets (Portal user token).
- Gradle 7.4.2 -> 8.14.6, xtext-gradle-plugin 3.0.2 -> 4.0.0 - Xtext 2.32 -> 2.42 (Java 17 is the minimum now; LSP4J 1.0) - commons-io, commons-lang3, freemarker and JUnit updated; unused Jackson and SnakeYAML dependencies removed - Adjust language server to LSP4J 1.0 (diagnostic message is an Either) - Language server tests: keep the workspace capabilities prepared by Xtext and expect the new tooltip attribute of commands
- Tycho 2.7.5 -> 4.0.13, Maven wrapper 3.8.6 -> 3.9.16 - Target platform: Eclipse 2026-03, Xtext 2.42, MWE2 2.25, Orbit 2026-03 - Bundles require JavaSE-17; the Eclipse 2026-03 platform itself needs Java 21, so the Tycho build (CI jobs using mvnw) runs on JDK 21 - tycho-eclipserun-plugin replaced by tycho-eclipse-plugin (relocated) - xtend-maven-plugin moved to the org.eclipse.xtext groupId - Remove unused Jackson, SnakeYAML, classgraph and slf4j requirements - README: JDK 17 or newer
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #390 +/- ##
========================================
Coverage 91.8% 91.8%
- Complexity 2230 2231 +1
========================================
Files 211 211
Lines 5941 5942 +1
Branches 806 807 +1
========================================
+ Hits 5458 5459 +1
Misses 230 230
Partials 253 253 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
- XmlSlurper moved to groovy.xml (Groovy 4) - Fix deprecations that fail in Gradle 10: single-string dependency notation, sources/javadoc jars via assemble instead of the archives configuration, GenerateMavenPom configured without the model DSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preparation for the next release, to be merged before the feature PRs (#383 ff.).
1. Publishing via the Sonatype Central Portal
OSSRH (
oss.sonatype.org) has been shut down, so snapshot and release publishing failed.master):https://central.sonatype.com/repository/maven-snapshots/v*): uploaded via the OSSRH Staging API (ossrh-staging-api.central.sonatype.com), so the existing Gradlemaven-publishsetup keeps working. A new workflow step then transfers the upload to the Central Portal, where the deployment is published manually under https://central.sonatype.com/publishing/deployments (like closing/releasing the staging repo before).CENTRAL_USERNAME/CENTRAL_PASSWORD(Portal user token).Snapshot publishing can only be tested by the first push to
master(i.e. merging this PR). The release step can only be tested with a real release; nothing goes live without the manual "Publish" in the Portal.2. Dependency updates
Java 17 is the new minimum (Xtext 2.42 is compiled for Java 17).
Gradle build (standalone library, LSP):
Task.projectwarning inside the xtext-gradle-plugin'sgenerateXtexttask)Diagnostic.getMessage()is anEithernow; language server tests adjusted (workspace capabilities, newtooltipattribute)Maven/Tycho build (Eclipse plugin):
No implementation for MavenTargetLocationFactory was bound), and Tycho 5.0.4 fails during dependency resolution (Invalid Collect Request: null). Both work on 3.9.16.tycho-eclipserun-plugin→tycho-eclipse-plugin(relocated in Tycho 4)Verification (local)
./gradlew clean buildon JDK 17: 790 DSL tests + 86 LSP tests green./mvnw clean verifyon JDK 21: green (790 tests)-Prelease-composite -Prelease-snapshot-version) run up toverifyagainst a local dummy update-site repo: p2 composite created and committed (not pushed)Not tested / follow-ups
release-trigger.yml(release:prepare, maven-release-plugin 2.5.3) on Maven 3.9 / JDK 21 can only be tested with a real release.