You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CHANGELOG.md 17KB

8 years ago
5 years ago
8 years ago
8 years ago
8 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. ## Change Log
  2. All notable changes to this project will be documented in this file.
  3. This project adheres to [Semantic Versioning](http://semver.org/).
  4. ### [Unreleased][unreleased]
  5. #### Fixed
  6. - Fix flaky test `DefaultPluginRepositoryTest.testGetPluginArchive`
  7. - [#349]: Fix Gradle demo
  8. #### Changed
  9. - Add more defense in `ExtensionAnnotationProcessor` (error message if something is wrong)
  10. - Add more tests in `ExtensionAnnotationProcessorTest`
  11. #### Added
  12. - [#348]: Found extensions when using decorated annotations
  13. - [#350]: Support any interface as an `ExtensionPoint`
  14. #### Removed
  15. ### [3.1.0] - 2019-09-08
  16. #### Fixed
  17. - [#335]: `DefaultPluginStatusProvider.enablePlugin` function seems to be wrong
  18. #### Changed
  19. - [#328]: Modified `PluginState` to an enum
  20. - [#330]: Make `AbstractPluginManager` fields protected
  21. #### Added
  22. - [#323]: Add IDEA classpath for Development mode
  23. - [#337]: Implement `PluginClassLoader.getResources`
  24. #### Removed
  25. ### [3.0.0] - 2019-06-12
  26. #### Fixed
  27. - [#297]: Loading extensions may shutdown the application
  28. - Fix the plugin directory will be deleted anyway in unzip `extract` method
  29. - [#309]: Can't delete/remove unloaded plugin
  30. - [#311]: Wrong file delete on `JarPluginRepository.deletePluginPath`
  31. - [#322]: Fix `FileSystemException` in Windows on plugin delete
  32. #### Changed
  33. - Improve `run-demo` scripts
  34. - [#294]: Configure compound classes to use JAR plugins first
  35. - [#296]: Return extension classes with wildcard type arguments
  36. - [#298]: update ASM library to version 7.1
  37. - Migrate to JUnit 5
  38. - Improve `PluginZip` (used in tests)
  39. - Improve readability of `PropertiesPluginDescriptorFinderTest`
  40. - Convert `PluginException` in `PluginRuntimeException` and use unchecked exceptions in PF4J
  41. #### Added
  42. - [#278]: Make the project build on Java 11
  43. - [#287]: Check no plugin with same `pluginId` is loaded
  44. - [#288]: Document thread safety of `PluginManager`s
  45. - [#292]: Communicate errors with Exceptions where appropriate
  46. - [#306]: Provide an Archetype for new PF4J based projects
  47. - [#307]: Add `JarPluginManager` and `ZipPluginManager`
  48. - Add constants for manifest's attributes names
  49. - Add constants for properties names
  50. - Add `PluginJar` (used in tests)
  51. - Add `AbstractPluginManagerTest`
  52. - Add `DirectedGraphTest`
  53. - Add `JarPluginManagerTest`
  54. - Extract constants for some system property names
  55. #### Removed
  56. - Remove deprecated constructor in `DefaultPluginManager`
  57. ### [2.6.0] - 2019-02-01
  58. #### Fixed
  59. - [#273]: `ServiceProviderExtensionFinder` should scan the whole classpath
  60. - [#276]: The plugins in the demo did not load successfully
  61. - [#277]: Configures plugin manager to load "HowdyGreeting" using the services
  62. #### Changed
  63. - Improve run demo scripts
  64. - [#248]: Load extensions from plugin libraries
  65. - [#271]: Update `slf4j` dependency to version 1.7.25
  66. #### Added
  67. - [#265]: Explicitly configure extension points for an extension
  68. - [#270]: Optional plugin dependencies
  69. - [#275]: Add automatic module name to `pf4j.jar`
  70. #### Removed
  71. ### [2.5.0] - 2018-12-12
  72. #### Fixed
  73. - [#248]: Plugin upgrade version order not guaranteed
  74. - [#250]: Method `DependencyResolver.resolve` removes dependents in check version block
  75. - [#252]: `java.nio.file.FileSystemNotFoundException`
  76. #### Changed
  77. - [#209]: Why "plugin.properties" is required?
  78. #### Added
  79. - [#242]: Add delete hook method in `Plugin`
  80. - [#256]: Adds ability to configure plugin directory
  81. #### Removed
  82. ### [2.4.0] - 2018-08-01
  83. #### Fixed
  84. - [#222]: Correct the class passed to `DefaultPluginFactory's` logger
  85. - [#223]: A disabled plugin is automatically started by `pluginManager.startPlugins()`
  86. - [#229]: Can't find `plugin.properties` file inside `.jar`
  87. - Fix error in `FileUtils.getFileSystem`
  88. #### Changed
  89. #### Added
  90. - [#229]: Add `SingletonExtensionFactory`
  91. - [#229]: Allow a way to query all extension classes for a given plugin
  92. #### Removed
  93. ### [2.3.0] - 2018-06-04
  94. #### Fixed
  95. - [#202]: Spaces in name produce 'Illegal character in opaque part at index'
  96. - [#203]: File lock on plugin jar not released
  97. #### Changed
  98. - [#171]: Change the copyright text from the head of files
  99. - [#218]: It should not return null after it detects that the plugin has been loaded
  100. - [#219]: Improve support for Gradle and Kotlin
  101. #### Added
  102. - [#199]: Make optional the plugin class attribute of plugin manifest
  103. - [#206]: Support multiple plugin directories
  104. - Add aliases to the runtime modes (`dev` for `development` and `prod` for `deployment`)
  105. #### Removed
  106. ### [2.2.0] - 2018-02-11
  107. #### Fixed
  108. - [#197]: Close `JarFile` stream after `getManifest` in `ManifestPluginDescriptorFinder.find(Path pluginPath)`
  109. - Before start a plugin check if the plugin is resolved
  110. - [#200]: Compiling with Maven under Java9 breaks project
  111. #### Changed
  112. - [#194]: Changing packaging from ZIP to JAR for demo
  113. - Improve `VersionManager` (prepare a new `pf4j-update` release)
  114. #### Added
  115. - [#166]: Simplify main `README` (move the content to http://www.pf4j.org)
  116. - [#190]: Add methods to just get extension classes
  117. - Add `LoggingPluginStateListener` as listener in `DefaultPluginManager` (only for `development` mode)
  118. - Add new `RESOLVED` as plugin state
  119. - Add support for PARENT FIRST loading strategy
  120. #### Removed
  121. ### [2.1.0] - 2018-01-10
  122. #### Fixed
  123. - [#177]: Fix Gradle demo
  124. - [#178]: `@Override` should not change method signature
  125. - [#184]: Bug in FileUtils while creating URI on Windows
  126. #### Changed
  127. - [#180]: Refactoring to make `PluginDescriptor` more usable
  128. #### Added
  129. #### Removed
  130. ### [2.0.0] - 2017-10-17
  131. #### Fixed
  132. - [#156]: `FileSystemException` when I call `deletePlugin` after `getExtensions`
  133. - Fix Maven warnings
  134. #### Changed
  135. - [#149]: Updated gradle demo dependencies and switched from System.out.println to slf4j log
  136. - Update some code to Java 7
  137. - [#168]: Change root package from `ro.fortsoft.pf4j` to `org.pf4j`
  138. - Open a new extension (protected method) point in `PropertiesPluginDescriptorFinder`
  139. #### Added
  140. - [#146]: Kotlin plugin example added and README updated for Kotlin
  141. - [#150]: Enforce dependencies versions
  142. - [#155]: Add VersionManager abstractization (breaking change)
  143. - [#172]: Add `CompoundPluginDescriptorFinder`
  144. - Add `CompoundPluginLoader`
  145. #### Removed
  146. - Remove `JarPluginManager` (the logic is included in `DefaultPluginManager` via `CompoundXYZ` concept)
  147. ### [1.3.0] - 2017-05-03
  148. #### Fixed
  149. - [#129]: Properties Descriptor finder bug fixes and a test
  150. - [#131]: Fix bug in `loadJars()`, did not add `/lib` to classloader
  151. - [#134]: `getVersion()` use wrong class for calculating PF4J version
  152. - [#135]: `deletePlugin()` failed to delete plugin folder with contents
  153. - [#137]: The requires Expression does not print well
  154. - [#140]: Unzip plugin zip file in `loadPluginFromPath()`
  155. #### Changed
  156. - [#130]: Refactor validation of PluginDescriptors
  157. - [#138]: Refactor of requires in PluginDescriptor (breaking change)
  158. #### Added
  159. - [#133]: Support for adding license information to the plugins
  160. - [#136]: Delete plugin zip on uninstall
  161. - [#139]: Ability to get `pluginsRoot` from PluginManager
  162. - Add constructors with varargs in PluginException
  163. #### Removed
  164. ### [1.2.0] - 2017-03-03
  165. #### Fixed
  166. - [#125]: Fix possible NPE
  167. #### Changed
  168. - [#116]: Updated PF4J to newest version in Gradle demo
  169. - Reactivate protection against the issues similar with [#97]
  170. #### Added
  171. - [#128]: Add `JarPluginManager`, `PluginLoader`, `AbstractPluginManager`
  172. #### Removed
  173. ### [1.1.1] - 2016-11-17
  174. #### Fixed
  175. - [#116]: Default/System extensions are duplicated
  176. #### Changed
  177. #### Added
  178. - [#111]: Add inheritance support on Extension annotation
  179. #### Removed
  180. ### [1.1.0] - 2016-08-22
  181. #### Fixed
  182. #### Changed
  183. - [#107]: PluginDescriptor can't be extended
  184. #### Added
  185. - [#108]: Return a list of all extensions from a plugin and optional for an extension point
  186. #### Removed
  187. ### [1.0.0] - 2016-07-07
  188. #### Fixed
  189. - [#99]: NPE in `DefaultPluginManager.stopPlugin()`
  190. - [#100]: Gradle build in demo_gradle is broken
  191. - [#103]: Gradle demos don't build zip with libs
  192. - Fix logging issue in demo
  193. #### Changed
  194. - Rework defense against [#97]
  195. - Eliminate duplicate log messages from demo
  196. - Improve debugging for "no extensions found"
  197. #### Added
  198. #### Removed
  199. ### [0.13.1] - 2016-04-01
  200. #### Fixed
  201. - [#98]: WARN ro.fortsoft.pf4j.AbstractExtensionFinder (too many log lines)
  202. ### [0.13.0] - 2016-03-28
  203. #### Fixed
  204. - Fix issue with listing files from the jar file in `readPluginsStorages()`
  205. - [#89]: Fix "URI is not hierarchical" issue
  206. - [#91]: Using project lombok with pf4j causes javax.annotation.processing.FilerException
  207. #### Changed
  208. - Log with trace level on PluginClassLoader
  209. #### Added
  210. - Add `distributionManagement` section in `pom.xml`
  211. - Add defense to [#97]
  212. - Add helper `DefaultExtensionFinder.addServiceProviderExtensionFinder()`
  213. #### Removed
  214. - Disable `ServiceProviderExtensionFinder` from `DefaultExtensionFinder`
  215. ### [0.12.0] - 2016-01-29
  216. #### Fixed
  217. - [#83]: `stopPlugin()` throws NPE for dependents check
  218. - In development mode hide `plugins/target` folder (it' is not a plugin)
  219. #### Changed
  220. - Add constructor with vararg and make `addFileFilter()` fluent in `AndFileFilter`
  221. - [#84]: remove warn from `DefaultPluginManager.whichPlugin()`
  222. - Pull method `DefaultPluginManager.whichPlugin()` to PluginManager
  223. - Add `getExtensionFactory()` in PluginManager interface
  224. #### Added
  225. - Add constructor with vararg and make addFileFilter method fluent in `AndFileFilter`
  226. - Add `NameFileFilter` and `OrFileFilter`
  227. - [#85]: ExtensionStorage based on Java Service Provider (META-INf/services)
  228. #### Removed
  229. ### [0.11.0] - 2015-11-19
  230. #### Fixed
  231. - [#78]: `PluginManager.disablePlugin()` throws UnsupportedOperationExeption
  232. #### Changed
  233. - Make more fields protected in DefaultPluginManager
  234. - [#70]: Improve PluginDescriptorFinder implementations
  235. - Make PluginManager available in Plugin via PluginWrapper
  236. #### Added
  237. - [#66]: Add possibility to overwrite DefaultPluginManager (to create a JarPluginManager)
  238. - Added one more fail test to DefaultPluginFactory
  239. - Added one more fail test to DefaultExtensionFactory
  240. - Added ManifestPluginDescriptorFinder tests
  241. #### Removed
  242. ### [0.10.0] - 2015-08-11
  243. #### Fixed
  244. - [#39]: Fix build on JDK 1.8
  245. - [42]: Stop Plugin issue
  246. - [60]: Failed tests
  247. #### Changed
  248. - Improve logging for DefaultExtensionFinder
  249. - Add defense for [#21]: (not find META-INF/extensions.idx)
  250. - [#44]: Replace `Version` class with `semver` lib
  251. - [#55]: Stop plugin leafs first
  252. - [63]: Extended pf4j to allow custom class loaders to be created
  253. #### Added
  254. - [#33]: Add demo build configuration with Gradle
  255. - [#40]: Add Plugin status provider
  256. - [#41]: Added plugin archive source abstraction
  257. - Added test for DefaultPluginRepository
  258. #### Removed
  259. [unreleased]: https://github.com/decebals/pf4j/compare/release-3.1.0...HEAD
  260. [3.1.0]: https://github.com/decebals/pf4j/compare/release-3.0.0...release-3.1.0
  261. [3.0.0]: https://github.com/decebals/pf4j/compare/release-2.6.0...release-3.0.0
  262. [2.6.0]: https://github.com/decebals/pf4j/compare/release-2.5.0...release-2.6.0
  263. [2.5.0]: https://github.com/decebals/pf4j/compare/release-2.4.0...release-2.5.0
  264. [2.4.0]: https://github.com/decebals/pf4j/compare/release-2.3.0...release-2.4.0
  265. [2.3.0]: https://github.com/decebals/pf4j/compare/release-2.2.0...release-2.3.0
  266. [2.2.0]: https://github.com/decebals/pf4j/compare/release-2.1.0...release-2.2.0
  267. [2.1.0]: https://github.com/decebals/pf4j/compare/release-2.0.0...release-2.1.0
  268. [2.0.0]: https://github.com/decebals/pf4j/compare/release-1.3.0...release-2.0.0
  269. [1.3.0]: https://github.com/decebals/pf4j/compare/release-1.2.0...release-1.3.0
  270. [1.2.0]: https://github.com/decebals/pf4j/compare/release-1.1.1...release-1.2.0
  271. [1.1.1]: https://github.com/decebals/pf4j/compare/release-1.1.0...release-1.1.1
  272. [1.1.0]: https://github.com/decebals/pf4j/compare/release-1.0.0...release-1.1.0
  273. [1.0.0]: https://github.com/decebals/pf4j/compare/release-0.13.1...release-1.0.0
  274. [0.13.1]: https://github.com/decebals/pf4j/compare/release-0.13.0...release-0.13.1
  275. [0.13.0]: https://github.com/decebals/pf4j/compare/release-0.12.0...release-0.13.0
  276. [0.12.0]: https://github.com/decebals/pf4j/compare/release-0.11.0...release-0.12.0
  277. [0.11.0]: https://github.com/decebals/pf4j/compare/release-0.10.0...release-0.11.0
  278. [0.10.0]: https://github.com/decebals/pf4j/compare/release-0.9.0...release-0.10.0
  279. [#350]: https://github.com/pf4j/pf4j/pull/350
  280. [#349]: https://github.com/pf4j/pf4j/pull/349
  281. [#348]: https://github.com/pf4j/pf4j/pull/348
  282. [#337]: https://github.com/pf4j/pf4j/pull/337
  283. [#335]: https://github.com/pf4j/pf4j/issues/335
  284. [#330]: https://github.com/pf4j/pf4j/pull/330
  285. [#328]: https://github.com/pf4j/pf4j/pull/328
  286. [#323]: https://github.com/pf4j/pf4j/pull/323
  287. [#322]: https://github.com/pf4j/pf4j/pull/322
  288. [#311]: https://github.com/pf4j/pf4j/issues/311
  289. [#309]: https://github.com/pf4j/pf4j/issues/309
  290. [#307]: https://github.com/pf4j/pf4j/issues/307
  291. [#306]: https://github.com/pf4j/pf4j/issues/306
  292. [#298]: https://github.com/pf4j/pf4j/pull/298
  293. [#297]: https://github.com/pf4j/pf4j/issues/297
  294. [#296]: https://github.com/pf4j/pf4j/issues/296
  295. [#294]: https://github.com/pf4j/pf4j/issues/294
  296. [#292]: https://github.com/pf4j/pf4j/issues/292
  297. [#288]: https://github.com/pf4j/pf4j/pull/288
  298. [#287]: https://github.com/pf4j/pf4j/pull/287
  299. [#278]: https://github.com/pf4j/pf4j/pull/278
  300. [#277]: https://github.com/pf4j/pf4j/pull/277
  301. [#276]: https://github.com/pf4j/pf4j/pull/276
  302. [#275]: https://github.com/pf4j/pf4j/pull/275
  303. [#273]: https://github.com/pf4j/pf4j/pull/273
  304. [#271]: https://github.com/pf4j/pf4j/pull/271
  305. [#270]: https://github.com/pf4j/pf4j/pull/270
  306. [#265]: https://github.com/pf4j/pf4j/pull/265
  307. [#262]: https://github.com/pf4j/pf4j/pull/262
  308. [#256]: https://github.com/pf4j/pf4j/pull/256
  309. [#252]: https://github.com/pf4j/pf4j/issues/252
  310. [#250]: https://github.com/pf4j/pf4j/issues/250
  311. [#248]: https://github.com/pf4j/pf4j/issues/248
  312. [#242]: https://github.com/pf4j/pf4j/issues/242
  313. [#233]: https://github.com/pf4j/pf4j/pull/233
  314. [#232]: https://github.com/pf4j/pf4j/issues/232
  315. [#229]: https://github.com/pf4j/pf4j/issues/229
  316. [#223]: https://github.com/pf4j/pf4j/issues/223
  317. [#222]: https://github.com/pf4j/pf4j/pull/222
  318. [#219]: https://github.com/pf4j/pf4j/pull/219
  319. [#218]: https://github.com/pf4j/pf4j/issues/218
  320. [#209]: https://github.com/pf4j/pf4j/issues/209
  321. [#206]: https://github.com/pf4j/pf4j/issues/206
  322. [#203]: https://github.com/pf4j/pf4j/issues/203
  323. [#202]: https://github.com/pf4j/pf4j/issues/202
  324. [#200]: https://github.com/decebals/pf4j/issues/200
  325. [#199]: https://github.com/pf4j/pf4j/issues/199
  326. [#197]: https://github.com/decebals/pf4j/pull/197
  327. [#194]: https://github.com/decebals/pf4j/pull/194
  328. [#190]: https://github.com/decebals/pf4j/issues/190
  329. [#184]: https://github.com/decebals/pf4j/issues/184
  330. [#180]: https://github.com/decebals/pf4j/pull/180
  331. [#178]: https://github.com/decebals/pf4j/pull/178
  332. [#177]: https://github.com/decebals/pf4j/pull/177
  333. [#172]: https://github.com/decebals/pf4j/pull/172
  334. [#171]: https://github.com/pf4j/pf4j/issues/171
  335. [#168]: https://github.com/decebals/pf4j/pull/168
  336. [#166]: https://github.com/decebals/pf4j/issues/166
  337. [#156]: https://github.com/decebals/pf4j/issues/156
  338. [#155]: https://github.com/decebals/pf4j/pull/155
  339. [#150]: https://github.com/decebals/pf4j/pull/150
  340. [#149]: https://github.com/decebals/pf4j/pull/149
  341. [#146]: https://github.com/decebals/pf4j/pull/146
  342. [#140]: https://github.com/decebals/pf4j/pull/140
  343. [#139]: https://github.com/decebals/pf4j/pull/139
  344. [#138]: https://github.com/decebals/pf4j/pull/138
  345. [#137]: https://github.com/decebals/pf4j/pull/137
  346. [#136]: https://github.com/decebals/pf4j/pull/136
  347. [#135]: https://github.com/decebals/pf4j/pull/135
  348. [#134]: https://github.com/decebals/pf4j/pull/134
  349. [#133]: https://github.com/decebals/pf4j/pull/133
  350. [#131]: https://github.com/decebals/pf4j/pull/131
  351. [#130]: https://github.com/decebals/pf4j/pull/130
  352. [#129]: https://github.com/decebals/pf4j/pull/129
  353. [#128]: https://github.com/decebals/pf4j/pull/128
  354. [#125]: https://github.com/decebals/pf4j/pull/125
  355. [#122]: https://github.com/decebals/pf4j/pull/122
  356. [#116]: https://github.com/decebals/pf4j/issues/116
  357. [#111]: https://github.com/decebals/pf4j/pull/111
  358. [#108]: https://github.com/decebals/pf4j/pull/108
  359. [#107]: https://github.com/decebals/pf4j/issues/107
  360. [#103]: https://github.com/decebals/pf4j/issues/103
  361. [#100]: https://github.com/decebals/pf4j/issues/100
  362. [#99]: https://github.com/decebals/pf4j/issues/99
  363. [#98]: https://github.com/decebals/pf4j/issues/98
  364. [#97]: https://github.com/decebals/pf4j/issues/97
  365. [#91]: https://github.com/decebals/pf4j/issues/91
  366. [#89]: https://github.com/decebals/pf4j/pull/89
  367. [#85]: https://github.com/decebals/pf4j/issues/85
  368. [#84]: https://github.com/decebals/pf4j/issues/84
  369. [#83]: https://github.com/decebals/pf4j/issues/83
  370. [#78]: https://github.com/decebals/pf4j/issues/78
  371. [#70]: https://github.com/decebals/pf4j/issues/70
  372. [#66]: https://github.com/decebals/pf4j/issues/66
  373. [#63]: https://github.com/decebals/pf4j/issues/63
  374. [#60]: https://github.com/decebals/pf4j/issues/60
  375. [#55]: https://github.com/decebals/pf4j/pull/55
  376. [#44]: https://github.com/decebals/pf4j/pull/44
  377. [#42]: https://github.com/decebals/pf4j/pull/42
  378. [#41]: https://github.com/decebals/pf4j/pull/41
  379. [#40]: https://github.com/decebals/pf4j/pull/40
  380. [#39]: https://github.com/decebals/pf4j/pull/39
  381. [#33]: https://github.com/decebals/pf4j/pull/33
  382. [#21]: https://github.com/decebals/pf4j/issues/21