jamesfredley opened a new pull request, #15367:
URL: https://github.com/apache/grails-core/pull/15367

   ## Summary
   
   Closes #13752
   
   This PR upgrades JLine from 2.14.6 to 3.27.1 and Jansi from 1.18 to 2.4.1, 
migrating all CLI code to the JLine 3 API.
   
   ## Changes
   
   ### Dependency Updates
   - `jline.version`: `2.14.6` → `3.27.1` (now `org.jline:jline`)
   - `jansi.version`: `1.18` → `2.4.1`
   
   ### JLine 3 Migration
   - Migrated from `jline.console.ConsoleReader` to 
`org.jline.reader.LineReader` / `org.jline.terminal.Terminal`
   - Updated all `Completer` implementations to use new signature: 
`complete(LineReader, ParsedLine, List<Candidate>)`
   - Replaced `CharSequence` candidates with `Candidate` objects
   - Updated terminal creation to use `TerminalBuilder`
   
   ### Groovy 4.x Compatibility
   - Retained JLine 2 (`jline:jline:2.14.6`) as a dependency for 
`groovy-groovysh` compatibility
   - Groovy 4.x's groovysh module still requires JLine 2
   - Added TODO comments marking JLine 2 dependencies for removal when 
upgrading to Groovy 5
   
   ### Files Modified
   - **36 files** across `grails-bootstrap`, `grails-shell-cli`, 
`grails-console`, `grails-gradle/model`, and build configuration
   
   ### Testing
   - Updated `RegexCompletorSpec` tests for JLine 3 API
   - All existing tests pass
   - Build verified: `classes`, `test`, `installDist`, `grails-gradle build`, 
`grails-forge classes`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to