-
-
Notifications
You must be signed in to change notification settings - Fork 305
Changes in 6.2.0
See the Release section of the README for where to find Bnd/Bndtools.
- Updated classpath container to detect changes in file last modified time of elements.
- The Repository view now lists all project (such as test and other classifier) artifacts rather than just main artifact.
- Connection Settings will now match simple names, like host names, for server authentication credentials.
- Improved error message for processing Declarative Services
Reference
annotation on methods. Some build-time weaving actions seem to relocate the constructor to a generated method before Bnd processes the annotations. - New
write
methods onResource
to support writing directly to files. - Fixed handling when using pom-packaging poms as resources for the maven repositories.
- Improve SPI generator warnings of the type
osgi.serviceloader capability found with no 'register:' directive...
:- make it more informative by specifying the descriptor file in question.
- only report the warning when both
register:
directive and the descriptor file are missing.
- Build reproducibility improvements were made by consistently cross-platform sorting files processed from directories.
- Updated locking to use a central ReentrantReadWriteLock in the Workspace object. The lock is now used by Bndtools replacing its ReentrantLock.
- Added
DropWhile
andTakeWhile
support for Java Streams on Java 8. -
-jpms-moduleinfo
instruction now supports multipleaccess
values. -
-export
instruction learns newtargetDir
andtemplate
attributes. - Bnd now supports "external" plugins.
- The
-reproducible
instruction now accepts values for the timestamp of jar entries. It accepts the same values as the Mavenproject.build.outputTimestamp
property.
- New
buildtool
command.
- Fixed documentation for
-include
instruction to properly state the overwrite behavior as implemented in the code.
- New support in
bnd-maven-plugin
to allow it to replace executions ofmaven-jar-plugin
to perform thejar
packaging in projects while handling the Bnd instructions. - The new
jar
packaging goals ofbnd-maven-plugin
support the Mavenproject.build.outputTimestamp
property for reproducible builds. - Defined new properties to configure
diffignores
anddiffpackages
forbnd-baseline-maven-plugin
. -
bnd-baseline-maven-plugin
output for baseline issues has been updated.
-
Baseline
task output for baseline issues has been updated.
- Bndtools is built to run on Eclipse 2020-06 (4.16) or later. So Bndtools may not run on older versions of Eclipse.
- Bndtools m2e is built to run on Eclipse m2e 1.16.0 or later. So Bndtools m2e may not run on older versions of Eclipse m2e.
- The Bnd Maven plugins require a minimum of Maven 3.3.9.
- The Bnd Gradle plugins require a minimum of Gradle 6.7 for Java 8 to Java 15, Gradle 7.0 for Java 16, and Gradle 7.3 for Java 17.
- The Bnd Gradle plugins and tasks underwent a large update in 6.0 to modernize their implementations and prepare for Gradle 7 and newer Gradle idioms. All Bnd Gradle task properties are now Gradle Properties and should generally be set using an assignment in your build script. A number of previously deprecated task properties have been removed. The conventions are now deprecated and replaced by extensions. See above for more details.
-
Bndtools m2e does not decorate packages when using the new
jar
andtest-jar
goals of thebnd-maven-plugin
. This is fixed for the next release by https://github.com/bndtools/bnd/pull/5161/commits/d3ca757bcb3339c60b73eadeaa056ee9bc29f85f. -
Eclipse m2e has a bug which can result in build looping. If you experience this, update Eclipse m2e to 1.18.2 or later which seems to have fixed the issue.
-
Windows 10 users: Windows 10 Defender significantly slows down Eclipse, reason being Windows 10 Defender scanning the JAR files. The problem has been reported to Microsoft here. Until then, a workaround to this problem is to add Eclipse root directory to Windows 10 Defender’s exclusion list, detailed steps are shared here.
Note: This is not just an Eclipse issue on Windows 10.
See also Bnd Tips for Windows users.