Nuts v1.1.0.02026-11-09
Nuts 1.1.0.0
新增分段并行 HTTP 下载:大文件按 Range 分块并发写入预分配的 .part~ 文件,首块兼作能力探测,后续块带条件请求,资源中途变动或服务器不支持分块时自动回退普通下载,断点按块重试。52MB 资产实测从 28.8 秒缩到 10.4 秒,可经 NCp::segmented 及 ---download-connections 等选项按次或按工作区配置。搜索侧新增 `--depends-on
Nuts v1.0.0.02026-10-01
新增:nuts exec --java-version=current 会直接用当前 Java 版本运行程序,不再沿用从 pom.xml 推断的版本;另有 --force(无确认环节时自动带上 --yes)、DEB 打包、Oracle/GraalVM/Corretto/Zulu 运行时供应、mem:// 内存路径、NClasspathBuilder 类路径构建、跨环境搜索与并行处理,语法高亮补齐了 YAML、Markdown、TypeScript、Rust、JavaScript、Python 与 naru,并新增 entity、action 等样式类型。
改进:API 版本匹配放宽到四段,1.0.1 的接口可用 1.0.3 运行时承载;命令行参数 --m2 更名为 --maven-local;NWebCli 改叫 NHttpClient,ExecutionEngine 改叫 RuntimeDistribution;@NApp 不再强制声明,NRetry 等改为 AutoCloseable,需要显式关闭时用 try-with-resources;NTableModel 支持逐格定制,NMsg 新增 SQL 模板与自定义格式化。
修复:settings.xml 在 boot 与 runtime 中的解析、-N 选项、Windows 11 兼容、无 fatjar 的 Spring Boot 启动,以及 --theme 路径识别。同时移除了 NCmdLineRunner、NCmdLineArgProcessor 与 NCmdline::forEachPeek 等旧接口。
Nuts v0.8.9.02026-06-11
- 2025-06-11 : PUBLISH :: version 0.8.9 published
- 2025-06-09 : ADDED :: fixed support for installing postgres
- 2025-05-07 : ADDED :: fixed support for mvn netbeans
- 2025-04-20 : ADDED :: added nuts-compression to support tar/tgz/txz formats
- 2025-03-10 : REFACTOR:: refactor getters/setters to be more consistent with the rest of the API
- 2025-02-13 : ADDED :: better support of path store types
- 2025-02-11 : ADDED :: added better support for expression parsing in NExpr with customizable defaults
- 2025-01-11 : ADDED :: added NFragmentElement : a better way to support documents roots and fluid embeddings
- 2025-01-07 : ADDED :: added NSecureToken : a better way to support external Vaults
- 2025-02-06 : ADDED :: added NSecureString : a better way to support destroyable secrets
- 2025-01-16 : ADDED :: added user documentation for NTF (documentation/specifications/ntf.md)
- 2025-01-16 : ADDED :: implemented TSON v2.0, reimplemented from scratch TSON parser and LEXER, dropped javacc support
- 2025-01-16 : ADDED :: implemented TSON v2.0, added user documentation for TSON (documentation/specifications/tson.md)
- 2025-01-16 : CHANGED :: implemented TSON v2.0, nuts becomes the reference implementation of TSON, the TSON github repo sources are obsolete
- 2025-01-16 : ADDED :: implemented TSON v2.0, removed support for regex (could simply use strings). removed because in introduces conflicts with expressions
- 2025-01-16 : REMOVED :: implemented TSON v2.0, removed support for regex (could simply use strings). removed because in introduces conflicts with expressions
- 2025-01-16 : REMOVED :: implemented TSON v2.0, removed support for Matrices (now matrices are simple arrays of arrays)
- 2025-01-16 : ADDED :: implemented TSON v2.0, added valid support of unsigned numbers (with u format aka 10_u8)
- 2025-01-16 : ADDED :: implemented TSON v2.0, added valid support of signed numbers (with s format aka 10_s8)
- 2025-01-16 : ADDED :: implemented TSON v2.0, added valid support of special numbers like 0NaN
- 2025-01-16 : ADDED :: implemented TSON v2.0, added valid support of ordered list (starts with hash '#')
- 2025-01-16 : ADDED :: implemented TSON v2.0, added valid support of unordered list (starts with dot '.')
- 2025-01-16 : ADDED :: implemented TSON v2.0, added valid support of expressions
- 2025-01-01 : ADDED :: added better support of copy in NReflectMapper
- 2025-12-27 : ADDED :: Added support to download JDK/JRE from nuts ``sh nuts settings add java --download -version=25 --jdk``
- 2025-12-27 : ADDED :: Fixed Progress display (now backed to terminal and not PrintStream)
- 2025-12-27 : ADDED :: Fixed Progress displaying invalid percentile
- 2025-12-26 : ADDED :: Added cache to Exec to store command classpath, no need to rebuild classpath
- 2025-12-26 : FIXED :: Fixed Gradle Dependency Solver
- 2025-12-26 : FIXED :: Better perf : added parallel dependency resolution
- 2025-12-26 : ADDED :: Better perf : added parallel dependency resolution
- 2025-12-25 : ADDED :: Better perf : implemented faster bean factory resolution : no more create instances for scoring
- 2025-12-20 : ADDED :: added NEnv and merge it with older NExecTargetInfo (that is now removed)
- 2025-12-20 : CHANGED :: better support for kubernetes (now auto detected)
- 2025-12-20 : CHANGED :: better support for ssh (now auto detected)
- 2025-12-20 : CHANGED :: better support for docker (now auto detected)
- 2025-12-19 : CHANGED :: renamed NExecCmd to NExec (simpler are more coherent with the rest), same for other *Cmd
- 2025-12-12 : ADDED :: added NSysEditorSupportCmd to support customizing common editor syntax highlighting (including but not limited to : vim, intellij, kate, vscode, gedit, jEdit, notepad++)
- 2025-12-07 : FIXED :: faster ssh connexions with pooling
- 2025-12-01 : CHANGED :: renamed NStableValue to NOnceValue
- 2025-11-30 : ADDED :: added NPath::getInfo, listInfos that return a full NPathInfo for performance
- 2025-11-30 : FIXED :: Better support for ssh for remote Windows machines
- 2025-11-30 : FIXED :: Better support for ssh for remote linux/posix machines
- 2025-11-30 : ADDED :: Added support for binary ssh (ssh://myuser@myserver?use=bin vs ssh://myuser@myserver?use=jcsh vs ssh://myuser@myserver?use=portable)
- 2025-11-30 : ADDED :: added NPath::getTargetType, NPath::getTargetPath to describe the pointed path for a link
- 2025-11-29 : CHANGED :: changed NPath::permissions -> NPath::getPermissions ; NPath::lastAccess -> NPath::getLastAccessInstant ; NPath::lastAccess -> NPath::getLastAccessInstant; NPath::getGroup -> NPath::getGroup; NPath::type -> NPath::getType ; NPath::creationTime -> NPath::getCreationInstant
- 2025-11-28 : CHANGED :: changed NPathSPI::contentLength -> NPathSPI::getContentLength; NPathSPI::type -> NPathSPI::getType ; NPathSPI::contentLength -> NPathSPI::getContentLength
- 2025-11-27 : ADDED :: added NMsgIntent::DISPOSE
- 2025-11-26 : ADDED :: added NExecCmd::get/setRawCommand to enable complex commands
- 2025-11-25 : ADDED :: added NConnectionString::normalize
- 2025-11-24 : ADDED :: added NConnectionStringBuilder::setNormalized, getQueryParam, getQueryParams
- 2025-11-23 : CHANGED :: changed NExecTargetCommandContext.getTarget() -> NExecTargetCommandContext.getConnectionString()
- 2025-11-22 : CHANGED :: changed NWorkspace::getProperty(String) return type from NLiteral to Object
- 2025-11-21 : ADDED :: added NWorkspace::getProperty(Class), getOrComputeProperty(...)
- 2025-11-20 : CHANGED :: renamed NConnexionString to NConnectionString
- 2025-11-19 : Today we started new nuts 0.8.9 version
Nuts v0.8.8.02025-11-19
Nuts Package Manager v0.8.8.0 本次更新以修复和打磨为主:修正了 NMemorySize 创建时抛异常的问题,并清理了 NArg 中 isXYZ 系列方法(如 isLong)的实现缺陷;命令行与代码层面也做了收尾,移除了遗留的 System.out 调试输出和过时注释。
功能方面新增了 NBulkheadCall,用于限制并发数量的调用场景,同时提供 NDuration.parse(String) 解析用户输入的时长。并发相关的类移除了 getBeanContainer() 与 withBeanContainer() 接口;生成 Spring 应用时默认附加 "--sandbox --yes" 参数。
文档新增兼容性矩阵报告并补充了更多 javadoc,官网链接已迁移至 thevpc.github.io 并接入 Google Analytics。
Nuts v0.8.7.02025-11-07
本次更新围绕 API 清理与弹性调用能力展开。修复方面,解决了 NDuration 相关问题,并在所有 API 中统一改为优先使用 NDuration 而非 Duration;重写的 install|require 流程更快也更可靠,纯 Maven 仓库的兼容问题一并修好。新增了一批设计模式支持:NSagaCall 实现带循环与条件的 Saga 模式,NCircuitBreakerCall 对应熔断器模式,NRetryCall 提供重试调用策略,配套还有 NStableValue、NCachedValue、NRateLimitValue,以及用于数据库和文件锁的 NLock;另新增 NScoredCallable,以评分机制决定调用策略(原 NSupport 更名而来)。此外,类包结构做了全局重构,NNamedColor 更名为 NColor 并去掉对 awt 的依赖,NElement 现可挂载多个过滤器,进度输出也精简掉了过长的 URL;文档则全面改版。
Nuts v0.8.6.02025-10-01
- 2025-09-14 added NCachedValue/NStableValue to handle stable and cached values (will be promoted to java's StableValue)
- 2025-09-08 added NScopedValue/NScopedStack to handle scoped values (based on ThreadLocal but will be promoted to java's ScopedValues)
- 2025-09-05 Added better handling for Text Tables
- 2025-09-05 Added better handling for Text Trees
- 2025-09-02 Added handling for TextArt (Banners using figlets and more)
- 2025-08-30 added Scoped Logging
- 2025-08-27 rewritten Logging API to support backends (JUL and SLF4J)
- 2025-07-28 enhance NComplex operations and mark as comparable
- 2025-07-28 enhance NElement operations
- 2025-07-28 NMsg.ofV now retains variable layout
- 2025-07-27 introduce NElementTransform
- 2025-07-27 introduce NElement::snippet
- 2025-07-26 Enhance NOperator operations
- 2025-07-26 introduce NOperatorGroup
- 2025-07-10 added NPath::resolveSiblingWithExtension, NPathNameParts::toNameWithExtension
- 2025-07-06 NArg now has getCmdLine() that returns the CmdLine when processed by NCmdLine. It returns null, if not.
- 2025-07-01 added NColor ANSI Color constants and mappings
- 2025-07-01 support for color names in ntf in tge form of ##:red:something## and ``red something``
- 2025-06-25 added Nuts.require() to help creating an in-memory workspace if none is provided
- 2025-06-25 from now NMsg.ofC/ofV/ofJ support ntf (instead of plain)
- 2025-06-25 Added NIn a general purpose Input Utility (like NOut/NErr/NTrace)
- 2025-06-24 Added --reset-options
- 2025-06-24 Added Nuts.require()
- 2025-06-24 Implemented N?Complex parsing
- 2025-06-24 Added intValue/longValue... in NArg
- 2025-06-24 STARTED
Nuts v0.8.5.02025-06-09
This is a new refactored version with focus on library usability:
Main features:
- TSON support out of the box
- NSession & NWorkspace context (no more passed as parameters
- Enhanced boot wit a new project nuts-boot
Other features include :
- ADDED: added NSession::isLogTermLevel, NSession::isVerboseTerm and equivalent for file log as well
- FIXED: fixed ANSI support for resetLine in Swing Terminal Panel
- ADDED: boot option (--boot-repository) to help considering this repo only to create the workspace (at create time)
- ADDED: NRepository::isTemporary
- ADDED: NPath::writeObject|NPath::writeMsg|NPath::writeText to handle efficient file writing (and or appending)
- ADDED: better support in NRef for primitive type ( NIntRef has an inc method for instance)
- ADDED: better added support for --@filepath format in commandline to embed files ars arguments
- ADDED: better support of windows in nserver
- ADDED: added support for ps and kill on windows, linux and macos
- ADDED: added support of dependency resolution regardless of current OS environment (needed for bundles creation)
- ADDED: added foundations for I18n
- ADDED: added new runtime repository that supports (for now) netbeans and tomcat
- ADDED: added simple Levenstein implementation to detect typos of boot commandline arguments and provide meaningful suggestions
- ADDED: added rememberMe key in NAsk to help remembering user's input to avoid asking the same questions multiple times in same session.
- ADDED: added simple templating (NTemplate) in NExpr to help manage text templating with simple expressions
- ADDED: added new tool ndoc and nsite-lib (the related library) to generate statically html websites...
- FIXED: enhanced NExprs toolkit to support complex expressions, and is now default for ndoc
- DEPRECATED: deprecated for removal nclown (was really never used)
- DEPRECATED: deprecated for removal old docusaurus website and replace with one new based on ndoc (a tool by nuts!!)
- REMOVED: removed NFetch::isDependencies, NFetch::isEffective, NSearch::isDependencies, NSearch::isEffective (now information is loaded in lazy mode)
- CHANGED: When generating preview jar, it will support natively thevpc.net
- ADDED: added option --preview-repo | -U to help simplifying preview mode installation.
- CHANGED: nuts-app now depends only on nuts-boot
- CHANGED: extracted nuts boot that does only load runtime all within its API. This will make simpler api upgrades
- CHANGED: nuts is exploded into nuts-boot (minimal bootstrap app), nuts (api library), nuts-lib (common library), two applications : nuts-app (minimal) and nuts-app-full (including runtime)
- WARNING: The OSS License has changed from APACHE2 to LGPL3
- REMOVED: cleanup and removal of javax.security (and all SecurityManager staff) as It's marked for removal for JDK 24
- CHANGED: simplified NPathSPI interface to help simpler implementation of, let's say, in-memory files for instance
- FIXED: fixed NStringBuilder::lines()
- CHANGED: enhanced and simplified NProgressMonitor API
- ADDED: added support for TSON
- CHANGED: introduced NAppRunOptions to help customize application behaviour when running NApplication (exit on termination, throw error when found, handle error and only show a short message,etc)
- ADDED: added NPath::ensureEmptyDirectory, NPath::ensureEmptyFile to help delete file/folder content is a clean manner
- ADDED: Now you can customize NOptional Message with NOptional::withMessage
- FIXED: fixed several issues related to utility methods that generate NException whereas the workspace is not yet created
- CHANGED: for now on, nuts jar will include information about if it supports automatically preview features. You still can disable them using repo filters.
- CHANGED: refactored nuts to separate nuts-boot, nuts-api (nuts), nus-lib and nuts-runtime
Nuts v0.8.3.12022-02-02
v0.8.3.1 是一个以修复为主的小版本,重点是让 jedit、mucommander 等一批应用重新获得 nuts 的支持。
支持相关的仓库已迁移到 "nuts-public" 和 "nuts-preview"。运行时修复了 Maven 使用 import scope 时依赖解析出错的问题,同时对依赖解析器做了性能优化;CGLIB 场景下的类名解析、recommendation connector API、重装时未调用卸载组件等遗留 bug 也一并处理。
其余修复集中在日常使用体验:帮助文档、URL 路径显示、ncode 的 NAF 支持得到更正,shell 脚本中的 $* 改为 $@ 以正确处理带空格的参数,进度条与日志输出前会先清行,避免内容错位。接口层面在不改动版本号、不破坏兼容的前提下调整了部分 nuts API,相关变更将在后续版本正式落地。另外回滚了 maven-local 相关测试,并升级了 web-toolbox/nclown 中的两个过期依赖。
Nuts v0.8.3.02022-01-05
We are thrilled to announce v0.8.3 release of #nuts, the open source #java package manager intended to be #devops friendly.
This is a major version in Nuts Package Manager as it revisits all of it API's and provided a more solid foundation for multiple platforms including Windows Operating System.
Look at this location (at github repo) for a small intro
``
/documentation/presentations/2021-a/nuts-presentation-2021-a.pdf
`
--------
Features / Changes
- WARNING : {api} API has evolved with incompatibilities with previous versions
- ADDED : {runtime} now search --dry displays the search query plan
- ADDED : {api} added command "settings install-log" to display installation logs
- ADDED : {api} added NutsExpr to help parsing simple expressions (used or will be used in almost all commands)
- CHANGED : {api} Simplified API
- ADDED : {api} added NutsDescriptorFlag to match multiple descriptor info such as app, executable etc.
- ADDED : {api} added NutsIOCopyAction.setSource(byte[]) and NutsIOHashAction.setSource(byte[])
- ADDED : {api} removed NutsId.compatFilter and NutsVersion.compatFilter and replaced by compatNewer/compatOlder
- ADDED : {api} replaced string messages with NutsMessage in NutsLogger
- ADDED : {api} removed 'NutsInput' and 'NutsOutput'
- ADDED : {api} removed 'NutsCommandlineFamily' and replaced by 'NutsShellFamily'
- ADDED : {api} added 'NutsBootTerminal' to help nuts bootstrap using custom stdin/out end err
- CHANGED : {api} added 'NutsHomeLocation' to replace compound key NutsOSFamily and NutsStoreLocation
- ADDED : {api} added 'NutsPath.isDirectory' and 'NutsPath.isRegularFile'
- CHANGED : {api} removed commandline options '-C' and '--no-color', you can use '--!color' instead
- CHANGED : {api} removed commandline options '--no-switch' and '--no-progress', you can use '--!switch' and '--!progress' instead
- CHANGED : {api} NutsResultList renamed to NutsStream and revamped with handy stream features and added ws.util.streamOf(...)
- CHANGED : {api} ws.io.expandPath replaced by NutsPath.builder.setExpanded(true)
- REMOVED : {api} removed deprecated ClassifierMapping
- REMOVED : {api} removed NutsTokenFilter (little to no interest)
- REMOVED : {api} removed deprecated feature inheritedLog
- ADDED : {api} NutsVal, a simple wrapper for strings and objects with helpful converters used in args, env, options and properties.
- CHANGED : {api} changed descriptor to add maven profiles support, mainly added platform for dependency and added os/platform etc to property
- ADDED : {api} added NutsShellFamily to support bash, csh, and other shell families
- ADDED : {pom } add Manifest Entry 'Automatic-Module-Name' in all projects to support j9+ module technology
- FIXED : {impl} NutsFormat now creates any missing parent folder when calling print(Path/File) or println(Path/File)
What's Changed
* [FIX] Fix Nuts installation in different shells by @bacali95 in https://github.com/thevpc/nuts/pull/34
* test by @amine-sakka in https://github.com/thevpc/nuts/pull/33
* Add OS shell to nuts info output by @bacali95 in https://github.com/thevpc/nuts/pull/60
* [FIXED] Question asked without display #62 by @thevpc in https://github.com/thevpc/nuts/pull/83
* [FIXED] Prepare for Better Gradle Integration #86 by @thevpc in https://github.com/thevpc/nuts/pull/87
* [FIXED] "ls -l --table format" #66 by @thevpc in https://github.com/thevpc/nuts/pull/88
* [FIXED] minimal archetype fails to create workspace (closing #84) by @thevpc in https://github.com/thevpc/nuts/pull/90
* [FIXED] cat file with syntax coloring (closing #85) by @thevpc in https://github.com/thevpc/nuts/pull/92
* Throw an error when passing no packages ids to nuts uninstall by @bacali95 in https://github.com/thevpc/nuts/pull/95
* Uncomment throwing exception when updating a non installed package by @bacali95 in https://github.com/thevpc/nuts/pull/96
* Use double quotes instead of simple ones for arguments escaping in Shell by @bacali95 in https://github.com/thevpc/nuts/pull/97
* Fix nuts exec throwing NullPointerException by @bacali95 in https://github.com/thevpc/nuts/pull/100
* Fix license command --json and --xml arguments usage by @bacali95 in https://github.com/thevpc/nuts/pull/99
* Add user confirmation before uninstalling by @bacali95 in https://github.com/thevpc/nuts/pull/101
* Fix exec and which behaviour when the command is unknown by @bacali95 in https://github.com/thevpc/nuts/pull/102
* Fix all commands help argument and reformat help texts by @bacali95 in https://github.com/thevpc/nuts/pull/94
* Refactor simplify api by @thevpc in https://github.com/thevpc/nuts/pull/106
* Fix JSON and XML output formatting for check-updates` command by @bacali95 in https://github.com/thevpc/nuts/pull/104
* Bump jszip from 3.1.5 to 3.7.1 in /toolbox/nclown by @dependabot in https://github.com/thevpc/nuts/pull/110
* Bump path-parse from 1.0.5 to 1.0.7 in /toolbox/nclown by @dependabot in https://github.com/thevpc/nuts/pull/109
* Bump url-parse from 1.4.4 to 1.5.3 in /toolbox/nclown by @dependabot in https://github.com/thevpc/nuts/pull/108
* Bump url-parse from 1.4.7 to 1.5.3 in /website by @dependabot in https://github.com/thevpc/nuts/pull/124
* Bump path-parse from 1.0.6 to 1.0.7 in /website by @dependabot in https://github.com/thevpc/nuts/pull/123
* Bump algoliasearch-helper from 3.2.2 to 3.6.2 in /website by @dependabot in https://github.com/thevpc/nuts/pull/122
* Bump prismjs from 1.21.0 to 1.25.0 in /website by @dependabot in https://github.com/thevpc/nuts/pull/121
New Contributors
* @bacali95 made their first contribution in https://github.com/thevpc/nuts/pull/34
* @amine-sakka made their first contribution in https://github.com/thevpc/nuts/pull/33
* @thevpc made their first contribution in https://github.com/thevpc/nuts/pull/83
* @dependabot made their first contribution in https://github.com/thevpc/nuts/pull/110
Full Changelog: https://github.com/thevpc/nuts/compare/v0.8.2.1...v0.8.3
Nuts v0.8.3-beta-2021-10-132021-10-13
0.8.3 是一个 beta 版本,API 层面存在不兼容变更,升级前需留意。新增 NutsBootTerminal,可通过自定义标准输入输出完成启动引导;NutsVal 提供轻量包装,统一处理参数、环境变量与选项的取值转换;NutsShellFamily 覆盖 bash、csh 等 shell 家族;NutsPath 补充了 isDirectory、isRegularFile 判断。重构方面,NutsResultList 更名为 NutsStream 并重做为流式接口,配套 ws.util.streamOf(...);NutsHomeLocation 取代原先由 NutsOSFamily 与 NutsStoreLocation 组成的复合键;日志改用 NutsMessage,描述文件加入 Maven profiles 支持。旧接口 NutsInput/NutsOutput、ClassifierMapping、NutsTokenFilter 等已移除,命令行选项 -C/--no-color、--no-switch、--no-progress 统一改为 --!color、--!switch、--!progress。另修复 NutsFormat 打印时不会自动创建缺失父目录的问题,并为所有项目补上 Automatic-Module-Name 以支持 Java 9+ 模块机制。
安装命令:
> java -jar nuts.jar -r dev -w beta --switch -ZyS
注意该命令会重置 beta 工作区并把版本提升为全局默认,如非预期请调整相应参数。