134 Commits

Author SHA1 Message Date
Joe DiPol
62b4b562d5 Add owasp dependency-check-maven plugin (#2472)
* Add owasp dependency-check-maven plugin and script
2020-10-21 13:47:02 -07:00
Joe DiPol
437fbd730d Update version to 2.1.1-SNAPSHOT (#2462) 2020-10-16 15:37:23 -07:00
David Král
80909a0926 Config now supports merging of objects and lists (#2448)
Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-10-15 17:40:36 +02:00
Tomas Langer
6a9ece1b0e Fix test that caused NPE in other tests. (#2440)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-10-12 19:39:18 +02:00
David Král
84b97ef3e6 Git config native-image support (#2400)
Git config native-image support

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-10-01 18:12:41 +02:00
Romain Grecourt
2a23a68e20 Update surefire and failsafe to 3.0.0-M5 (#2307)
* Update surefire and failsafe to 3.0.0-M5
Remove dependencies on jupiter-engine, and junit-platform-surefire-provider

* disable module path for surefire and failsafe

* version.lib.surefire.testng to 3.0.0-M5
remove duplicates dependencies in tests/integration/mp-grpc/pom.xml
suppress warnings in top level pom

* add back junit-jupiter-engine

* add junit:junit in config/jgit as jgit.junit requires junit4

* add junit-jupiter-api to database-se archetype
2020-09-10 10:42:01 -07:00
David Král
18d4c7c866 Windows native-image fix (#2336)
Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-09-09 16:49:12 +02:00
Joe DiPol
78eddfe47a Update version to 2.0.3-SNAPSHOT (#2323) 2020-09-04 11:18:57 -07:00
Joe DiPol
0bb8d792da Bump version to 2.0.2-SNAPSHOT. Update CHANGELOG (#2111)
* Bump version to 2.0.2-SNAPSHOT Update CHANGELOG
2020-06-30 14:47:34 -07:00
Tomas Langer
12cfae97d6 Support for SE mappers in MP. (#2091)
* Support for SE mappers in MP.
* Removed mandatory use of object mapping from security providers.
* Use direct APIs to retrieve booleans.
* Fixes to object mapping support in MP.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-26 10:09:06 +02:00
Joe DiPol
8bbe29ecc8 2.0: Update version to 2.0.1-SNAPSHOT. Update CHANGELOG (#2082)
* Update CHANGELOG.md after 2.0.0 release

* Update version to 2.0.1-SNAPSHOT
2020-06-23 11:32:04 -07:00
Tomas Langer
af949542c8 SE Config can be created from MP Config (#2060)
* MP to SE config now works including environment variables.
* Empty config now does not create an executor service.
* Using the same classloader when null is sent in MP config.
* Added env var test.
* Ensure the reference config uses its own configuration (intermitent failure fix)

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Co-authored-by: Romain Grecourt <romain.grecourt@oracle.com>
2020-06-19 16:07:20 +02:00
Tomas Langer
86d0708466 Using SafeConstructor with YAML parsing. (#2019)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-17 13:14:43 +02:00
Tomas Langer
4abd0a3cd6 Feature refactoring (#1944)
* Features simplification.
* Added  excludes
* Moved initialization of log to native image extension
* Log statements for unsupported features in native image

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-16 18:21:24 +02:00
David Král
c803494779 Decrypt AES method made visible (#2003)
Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-06-15 11:37:07 +02:00
David Král
4e55096c71 Service loader added to MediaContext (#1861)
Media support now loadable via service loader

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-05-27 12:54:09 +02:00
Tomas Langer
8cfabc8cca Log warning if a known configuration file exists and we have no parser for it. (#1853)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-05-25 14:02:50 +02:00
Tomas Langer
1b0de74c2a Fix merge issue with MP config.
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-05-15 17:22:22 +02:00
Ryan Lubke
9be1f1c57f Fix #1802 - Allow use of filters and mappers when converting MP to Helidon config (#1803) 2020-05-15 10:46:52 +02:00
Tomas Langer
0b95aea917 WebServer configuration changes (#1766)
* WebServer configuration.
* Quickstart update
* TLS configuration
* Using new Deprecated config to warn in KeyConfig.
* Deprecated ServerConfiguration and remove its use from Helidon production code.
* Deprecated ServerConfiguration and remove its use from Helidon test and example code.
* Archetype updated. Copyright fixes.
2020-05-14 01:43:51 +02:00
Tomas Langer
7d2f70897f MP Config fixes (#1721)
MP Config implementation to correctly support mutable config sources.
2020-05-06 11:44:31 +02:00
Tomas Langer
844c17cffe Support for mutable config sources to remove regression (even though … (#1667)
* Support for mutable MP config sources to remove regression (even though the original behavior was not intended). 
* Fixed unit test to be independent on ordering.
2020-04-24 14:18:29 +02:00
Tomas Langer
0c94ec317a Dependency convergence + jakarta libraries. (#1600)
* Dependency convergence + jakarta libraries.
* Tests for jar and module path fro MP.
* Dependency fixes to resolve javadoc issues.
* Fixed the command line scripts that validate classpath and module path.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-04-14 20:14:44 +02:00
Tomas Langer
bc8fb2b721 Upgrade grpc to follow Netty version used by Helidon. (#1614)
* Upgrade grpc to follow Netty version used by Helidon.
2020-04-03 19:31:23 +02:00
Tomas Langer
e9774cdb9f Fixes for MP quickstart in native image. (#1564)
* Fixes for MP quickstart in native image.
* Mp Quicstart update - fix injection and documentation.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-03-24 12:54:13 +01:00
Joe DiPol
9b10b52b9e More javadoc tweaks to avoid deployment problems (need javadoc.jar, sources.jar) (#1536) 2020-03-18 17:22:42 -07:00
Joe DiPol
7d500a2784 Java 11 javadoc fixes. Turn on failOnError (#1386)
* Java 11 javadoc fixes. Turn on failOnError
* Switch to javadoc aggregate goal. Docs are generated as part of site lifecycle
* Update build.sh to build aggregated javadocs after build
* Cleanup based on PR feedback
* Removed requires java.activation
* Update jpa-cdi module-info
* Javadoc: update webclient module-info. Restore webserver dep in native-image-extension
* Update build.sh to use tagged release of javadoc-pluing
2020-03-13 13:03:58 -07:00
Tomas Langer
425d6ab7cf Stopped executor service will not cause an error in polling strategy.
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-03-12 00:29:12 +01:00
Tomas Langer
dfe2fcd29d Config cache is not using SoftReference anymore.
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-03-12 00:28:33 +01:00
Tomas Langer
e9ea6819ed Fix merging of value nodes in config 2.0 (#1488)
* #1182 issue unit test and fix.
* MP Reference test.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-03-11 14:20:26 +01:00
Tomas Langer
c38554957d Config change support refactoring (#1417)
* Removal of project Reactor.

* Change support refactoring.

* Big change polling + changes + lazy etc.

* Documentation + javadoc fixes.

* Intermittent failure fix

* Changelog update.

* Fixed intermittent test failure - race condition.
2020-03-09 10:48:19 +01:00
Tomas Langer
ab1e27191b Jersey upgrade (#1438)
* this not work does

* Upgrade to Jersey 2.30.1

* Increased timeout for failing test (intermittent)

* Disabled offending test, related to config changes.
2020-02-26 19:01:44 +01:00
Tomas Langer
206206a5c8 Configuration changes (#1357)
* Removal of project Reactor.
* Change support refactoring - in progress.
* Fixed value resolving, MP uses latest config.
* Longer timeouts for slow tests.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-02-20 11:41:09 +01:00
Tomas Langer
1efb68c566 Default config now loads without duplicates for MP 2020-02-11 10:38:04 +01:00
Tomas Langer
88f798c506 Removed null params and return types from Config API. 2020-02-06 12:13:22 +01:00
Tomas Langer
bdcc64eb77 Checkstyle upgrade (#1340)
* Missing files from mp1 integration test.

* Upgrade checkstyle to 8.29 and update plugin + fix issues.
2020-02-04 11:40:16 +01:00
Joe DiPol
e25fdd4774 Update version to 2.0.0-SNAPSHOT. update-version now edits build.grad… (#1348)
* Update version to 2.0.0-SNAPSHOT. update-version now edits build.gradle file
2020-02-03 22:23:42 -08:00
Tomas Langer
5752712514 Use Helidon service loader.
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-01-31 16:34:52 +01:00
Tomas Langer
6c2ab5d326 Config now uses common media type module instead of FileTypeDetector. 2020-01-29 23:47:49 +01:00
Tomas Langer
c1e87abc62 Helidon DB Client (#657)
* Helidon DB API and implementation for JDBC and MongoDB.

Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Hikari CP metrics

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-01-23 18:42:21 +01:00
Tomas Langer
6375428deb Helidon Features.
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-01-16 11:35:49 +01:00
Tomas Langer
76b8fbee89 Helidon MP revamped for native-image
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

Work around issues with the reduced pom created by maven-shade-plugin.
See https://issues.apache.org/jira/browse/MNG-5899

Inline the reduced dependencies in the original pom.
Turn-off reduced pom generation.

Update microprofile/weld/pom.xml

Build fixes after repackaging weld.

Build fix - spotbugs exclude missing.

Simplify build and runtime events.

Using predefined priorities.

Validations for all modules in test.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-01-13 23:40:30 +01:00
Santiago Pericasgeertsen
e904174a27 Dependency com.typesafe:config should not be downgraded to test scope in pom. (#1276)
Signed-off-by: Santiago Pericas-Geertsen <santiago.pericasgeertsen@oracle.com>
2020-01-08 08:48:12 -05:00
Bryan Atsatt
6b81f4a3a7 Upgrade config libraries (#1159)
* Removed com.google.protobuf:protobuf-java dependency; it becomes 4th party as it is used by io.grpc:grpc-protobuf.

* Updated com.typesafe:config version from 1.3.3 to 1.4.0.

* Removed unnecessary junit dependency.

* Updated jgit from 4.9.0.201710071750-r to 5.5.1.201910021850-r.

* Updated etcd4j from 2.16.0 to 2.17.0.

* Change jgit version to v4.11.9.201909030838-r.

* Change jgit version to 4.11.9.201909030838-r.

* Change jgit version to 4.9.9.201903122025-r.

* Add com:jcraft.jsch:0.1.55 dependency to update version used by jgit.

* Update automatic module "protobuf.java" name to "com.google.protobuf".
2019-12-17 13:15:52 -08:00
Tomas Langer
8ae046ecf9 Update to Java 11 APIs (#1232)
* Remove OptionalHelper and replace with Optional methods.
* Remove CollectionsHelper and replace with Set, Map and List methods.
* Replaced `InputStreamHelper` with method of `InputStream`
* Replaced Helidon `StackWalker` with the one from Java
* Updated CHANGELOG.md
* Added an exclude for spotbugs to work around
    https://github.com/spotbugs/spotbugs/issues/756

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-12-17 20:33:51 +01:00
Tomas Langer
31365ec5d9 Using Flow API from Java, removed Flow from reactive module.
See #1220

Javadoc no longer fails the build. See #1223 as a follow up issue.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-12-13 21:48:06 +01:00
Tomas Langer
5bfcff2b68 Java 11 as the minimal version (#1187)
* Java 11 as the minimal version

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Use release 8 for javadoc.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-12-10 10:02:05 +01:00
Tomas Langer
1893efc5e4 Config for Helidon 2.0 (#1102)
* Meta configuration refactoring.
* Using meta configuration in MicroProfile Server
* Refactored config sources to use proper builder pattern.
* Native image substitution removed as no longer needed.
* Documentation update for Meta configuration.
* MP config in SE
* Order system properties and environment variables as in MP
2019-12-05 11:23:29 +00:00
Joe DiPol
eb999f5c56 Update version to 2.0-SNAPSHOT (#1167) 2019-11-23 13:44:00 +01:00
Jonathan Knight
70d434d52d gRPC microprofile support (#910)
* gRPC microprofile support (#107)

Adding gRPC microprofile support

* Resolve review comments, checkstyle and spot-bugs issues

* Fixing copyright

* Rebasing on Oracle/Helidon master

* Add support for CDI discovery of MarshallerSuppliers

* Improve error logging

* Rebasing on Oracle/Helidon master

* Changes based on pull request feedback

* Use Resource class for resources loaded from configuration

* Refactoring based on pull request feedback

* Use the standard protobuf Empty message type instead of a custom Empty message

* Support CompletionStage as a return type in MP annotated gRPC service methods
2019-10-21 17:12:17 +02:00