Commit Graph

117 Commits

Author SHA1 Message Date
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
Tomas Langer
ff8832ee49 Service name not needed when tracing is disabled. (#1086)
* Service name not needed when tracing is disabled.

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

* Better test fail message.

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

* Silence javadoc plugin.
No longer prints a line for each generated file.

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

* Removed accidental paste.

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

* Test fixed.

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

* Test fixed (jaeger).

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

* Checkstyle fix

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-10-10 20:38:00 +02:00
Joe DiPol
3994b8e730 Update version to 1.3.2-SNAPSHOT. Update CHANGELOG.md (#1068) 2019-09-27 17:37:34 -07:00
Daniel Kec
5cfa5dc46f Whitespaces in config file path workaround (#1006)
* Workaround for https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4466485

Signed-off-by: Daniel Kec <daniel@kecovi.cz>
2019-09-25 10:40:07 +02:00
David Král
bfe02f628c RSA encryption changed (#1036)
Fixes #984 - RSA encryption changed

Signed-off-by: David Kral <david.k.kral@oracle.com>
2019-09-24 10:40:28 +02:00
Romain Grecourt
39b4c59e53 Fix UrlConfigSource to work on windows (#1039)
* Add a dirty bandage on UrlConfigSource to work on windows

* Incorporate review feedback
2019-09-18 15:14:31 -07:00
Joe DiPol
de805c92ea Fixes from 1.3.0 release branch and version update (#1027)
* Fix release.sh update-version to work with new parent pom hierarchy

* Update CHANGELOG for 1.3.0 release

* fix release script to deal with maven timestamps

* Update graal tests to work with new parent pom hierarchy

* Update release.sh to set helidon.version correctly

* Move gpg plugin management and execution for the release profile under parent/pom.xml
Move nexus plugin extension for the release profile under parent/pom.xml
Move the staging profile under parent/pom.xml
Added missing snapshot repository under distribution management in parent/pom.xml

* Fixes #1024 - Bad build time subsitution for bare archetypes pom
Fixes #1025 - archetype-packaging plugin needs to be declared as an extension
Reverting dependencies on helidon-metrics2 back helidon-metrics for all SE examples
Removing helidon-metrics2 from the BOM pom to prevent end-user from using it
Update examples/grpc/metrics README to fix test step.

* Update version to 1.3.1-SNAPSHOT
2019-09-13 13:17:44 -07:00
Romain Grecourt
0f6403374f Application poms (#1022)
Create a new parent pom hierarchy to fit new applications-pom
Updated all examples to use the new application-poms
Normalized examples README.md
Updated examples Dockerfile to multi-stage
Remove dependency management for microprofile-metrics-api and leverage the transitive dependencies of helidon-metrics and helidon-metrics2.
2019-09-12 15:48:09 -07:00
Bryan Atsatt
dd4c85103a Fix precedence for explicit sys prop and env var sources. (#1002)
* Fix precedence for explicit sys prop and env var sources.
Fixes #977.

* Introduce explicit types for sys props and env vars config sources.

* Copyright fix.
2019-09-09 08:24:54 -07:00
Bryan Atsatt
ada451300f javadoc clean up (#993)
* Make javadoc tables more readable and remove explicit styles from ThreadPoolSupplier tables.

* Table style/doc tweaks.

* Add missing javadoc modules: grpc-* (fixes #955), access-log, jaeger tracer, open api.
Clean up "Other Packages" tab by adding new groups.
More table style/doc tweaks.

* Copyright fixes.
2019-09-05 19:20:32 -07:00
Tomas Langer
70e49db9f8 Static content for Graal native-image (#962)
* Upgrade GraalVM to 19.2.0

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

* Support security algorithms in Graal native-image.

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

* Static content update to work with any classpath resource.

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

* Integration test for Graal native-image.

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

* Copyright fixes.

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

* Fix directory behavior when classpath based on files.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-08-30 21:42:52 +02:00
Tomas Langer
44b10c1678 MP now returns the original instance of Helidon config. (#941)
* MP now returns the original instance of Helidon config.

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

* Helidon config in MP now contains MP config sources as well.
Also fixed URL config source to handle any URL, not just HTTP.

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

* Correct disconnect in dataStamp

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-08-30 12:24:12 +02:00
Joe DiPol
a152dd5914 Update version to 1.2.2-SNAPSHOT. Update CHANGELOG (#937) 2019-08-21 18:23:50 -07:00
Tomas Langer
ea35684701 Changes for Zipkin and Netty to run with latest Graal VM native-image (#915)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-08-20 11:20:56 +02:00
Jonathan Knight
c8ddc94812 Add module-info.java files to gRPC modules (issue #759) (#789)
* Add module-info.java files to gRPC modules (issue #759)

* Copyright fixes (issue #759)

* Fixing merge conflicts

* Fix missing modules in module-info files

* Fix incorrect indentation in pom.xml

* Fix incorrect indentation in pom file
2019-08-09 16:41:53 -07:00
Jonathan Knight
87c70c9ced Revert back to boring-ssl (#864)
* Revert back to boring-ssl
* Use Netty 4.1.38.Final
2019-08-02 08:18:54 -07:00
Joe DiPol
153ab91cd1 Update version to 1.2.1-SNAPSHOT (#869) 2019-07-30 16:29:07 -07:00
Joe DiPol
856942a256 Change version to 1.2.0-SNAPSHOT (#855) 2019-07-24 09:48:56 -07:00