Commit Graph

248 Commits

Author SHA1 Message Date
Sebastian Sdorra
65da3cc710 Fix duplicate plugins in the plugin tree after update 2020-08-11 09:46:00 +02:00
Sebastian Sdorra
99815f3845 Add version information to plugin tree output 2020-08-11 08:17:40 +02:00
Sebastian Sdorra
c736149461 Remove explicit default constructor 2020-08-11 08:14:07 +02:00
Sebastian Sdorra
77803d36e1 Use field for context and descriptor to avoid passing them to every method 2020-08-11 08:12:27 +02:00
Sebastian Sdorra
50608b0189 Fix minor review mentions 2020-08-11 08:07:06 +02:00
Sebastian Sdorra
0dc84ed94e First check integrity of download, than check if dependencies are fulfilled
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2020-08-10 13:59:30 +02:00
Sebastian Sdorra
d66f0ef141 Fix broken test and missing license headers 2020-08-07 10:52:20 +02:00
Sebastian Sdorra
8b8ef7f826 Verify pending plugins on startup 2020-08-06 21:35:12 +02:00
Sebastian Sdorra
0287724b97 adds verification if name and version of a downloaded plugin matches plugin center information 2020-08-05 16:54:48 +02:00
Sebastian Sdorra
c946c130eb adds verification of dependency versions on plugin installation 2020-08-05 15:28:39 +02:00
Konstantin Schaper
b6ca84cd6c upgrade optional dependencies on plugin installation/upgrade 2020-07-21 15:17:40 +02:00
Konstantin Schaper
38047a25aa Add optional dependencies to plugin descriptors and plugin center dto 2020-07-21 11:39:08 +02:00
René Pfeuffer
e3eb8a99d0 Update required plugins if available
When plugins are updated, we should update required plugins, too, so
that we do not get errors when new plugins use features not available
in the old versions of required plugins.
2020-07-03 07:22:06 +02:00
Eduard Heimbuch
63e5d2f23d Change the "manage" plugin permission to "write". This way we don't need a migration because the plugin manage permission was already saved as "plugin:read,write" 2020-05-05 10:55:23 +02:00
Sebastian Sdorra
0d4976ecf1 fixed some sonarqube findings 2020-04-16 12:03:12 +02:00
Sebastian Sdorra
81e8dc428c support requires annotation on WebElements 2020-04-16 11:57:38 +02:00
Eduard Heimbuch
347417e247 remove requires value from extension annotation and add new requires annotation instead 2020-04-07 12:49:25 +02:00
Eduard Heimbuch
b369fac1e8 rename PluginCenterEvent 2020-04-02 13:37:05 +02:00
Eduard Heimbuch
405bc392a8 move events to scm-core / move subscriber to landingpage-plugin 2020-04-02 10:43:07 +02:00
Eduard Heimbuch
548bf97c57 make scm-webapp depend optional of scm-landingpage-plugin // add some events for landingpage 2020-04-01 16:01:26 +02:00
René Pfeuffer
7247a81c9d Use exceptions with explicit messages 2020-03-25 15:31:20 +01:00
Sebastian Sdorra
967c802588 merge with develop 2020-03-24 10:17:57 +01:00
Florian Scholdei
f1b34eb502 Changeover to MIT license (#1066)
* prepare license-maven-plugin for license migration
* added license mapping for tsx files and added some more excludes
* Changeover to MIT license
* Fix build problems
* Delete old remaining licenses
* Add more exclude path for license checker
* Rename included netbeans license, add exclude .m2/repository/
* Specify .m2 exclude because not only repository/, also wrapper/ must match
* Add .cache/ exclude for license check
* Modify formatting of license in java classes to comply with convention and IDE
* Add IntelliJ documentation for license configuration
* Update CHANGELOG.md
* Exclude tmp/workspace/ dir for license check
* Edit README.md

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2020-03-23 15:35:58 +01:00
Eduard Heimbuch
04d480684a prevent using same classloader multiple times 2020-03-03 10:39:07 +01:00
Sebastian Sdorra
de3db6252e implemented restarter to move control over the restart process to the core 2020-02-12 14:45:13 +01:00
Rene Pfeuffer
126b24b878 Cleanup code 2020-01-31 12:37:12 +01:00
Rene Pfeuffer
931133353d Add detection of circular dependencies 2020-01-31 12:27:02 +01:00
Rene Pfeuffer
f92ea41ca3 Fix order of plugin nodes 2020-01-31 11:47:32 +01:00
Rene Pfeuffer
868cfb4a0a Fix class name 2020-01-24 12:01:21 +01:00
Rene Pfeuffer
c0fd9b97b4 Cleanup code 2020-01-23 17:05:55 +01:00
Rene Pfeuffer
c80ee02d8a Use plugin name from available plugin 2020-01-23 17:05:02 +01:00
Rene Pfeuffer
97600b26e2 Check plugin dependencies after download 2020-01-23 17:02:53 +01:00
Sebastian Sdorra
3602976ff1 removed unnecessary plugin node wrapper
Removed PluginNodeHashWrapper and moved equals and hashCode logic into PluginNode
2020-01-16 10:27:34 +01:00
Rene Pfeuffer
2d755aae9a Fix plugin load order
The old algorithm failed, because the tree below lead to the issue, that
the scm-branchwp-plugin was loaded before the scm-review-plugin was
ready.

This commit changes the order in the way, that leafs are loaded last.

+- scm-editor-plugin d
   +- scm-branchwp-plugin a
+- scm-mail-plugin c
   +- scm-review-plugin b
      +- scm-branchwp-plugin a
   +- scm-branchwp-plugin a
2020-01-16 08:56:57 +01:00
Sebastian Sdorra
6b62f0aab6 throw more specific PluginLoadException instead of generic RuntimeException 2020-01-09 08:20:47 +01:00
Sebastian Sdorra
c1aa4af6e0 implemented optional dependencies
Plugin authors could now define optional dependencies to other plugins in their pom.
Extensions which are using classes from optional dependencies must specify this
with the "requires" attribute of the extension annotation.
Extensions with "requires" attribute are not installed if one of the specified plugins,
is not installed.
2020-01-08 14:27:11 +01:00
Sebastian Sdorra
3244e552a9 extension binder logs now to debug instead of info 2020-01-08 14:22:14 +01:00
Sebastian Sdorra
fe2370c863 merge with 2.0.0-m3 2019-11-28 08:15:23 +01:00
Sebastian Sdorra
9202e1c77c fixed wrong checksum field 2019-11-27 16:37:00 +01:00
Sebastian Sdorra
854e42a609 merge with default branch 2019-11-27 15:01:09 +01:00
Rene Pfeuffer
6c023f7d56 Fix sonar issue 2019-11-25 14:15:43 +01:00
Rene Pfeuffer
450ed7bd4e Fix unit test 2019-11-25 08:15:13 +01:00
Rene Pfeuffer
aedf34c581 Postpone restart after plugin (de)installation 2019-11-22 15:43:58 +01:00
Rene Pfeuffer
458d2fb4ee Make AvailablePlugin immutable 2019-10-02 10:05:07 +02:00
Rene Pfeuffer
aded308138 Error handling for plugin installation/uninstallaion 2019-10-01 09:33:48 +02:00
Eduard Heimbuch
78b17c17e8 clear queues after abort pending changes / do not restart after update all plugins 2019-09-28 15:28:40 +02:00
Eduard Heimbuch
333579ef2a cancel installation on pending plugins 2019-09-28 11:44:39 +02:00
Eduard Heimbuch
e1dd393cce add collection update link if atleast one plugin is updatable 2019-09-27 16:07:25 +02:00
Eduard Heimbuch
281d812065 add rest api updateAllPlugins 2019-09-27 15:30:21 +02:00
Rene Pfeuffer
3b34cb5278 Rename method and check permission 2019-09-27 11:46:14 +02:00