764 Commits

Author SHA1 Message Date
SR-Lut3t1um
9a8efdad51 updated gradle to 6.2
fixed missing change of gradle version on pom.xml

fixed evertything

fixed evertything
2020-02-20 23:43:10 +01:00
Martin Kouba
3ee52f2df1 Introduce basic-test-suite profile
- to skip some parts of the test suite during the full build
- integration tests: maven tooling, kotlin, scala, kubernetes, gradle
2020-02-19 16:12:41 +01:00
George Gastaldi
9df37a6c4c Merge pull request #7237 from gastaldi/jar_resolver
Ignore resolved dependencies that are not JARs or directories
2020-02-18 06:11:58 -03:00
George Gastaldi
0649ed54ab Ignore resolved dependencies that are not JARs or directories
Fixes #7234
2020-02-17 17:12:54 -03:00
George Gastaldi
7365420033 Artifacts may not contain the version
Fixes #7217
2020-02-17 15:30:50 -03:00
Clement Escoffier
f4270f80df Merge pull request #7064 from haraldatbmw/master
Dockerfile.native - run with non-root user 1001
2020-02-17 08:10:34 +01:00
George Gastaldi
ec5bccf43c Remove test-related entries in maven-compiler-plugin
Some properties (like `testSource` and `testTarget`) are valid only for the `testCompile` mojo, however they are allowed to be declared as part of the maven-compiler-plugin configuration

Co-authored-by: Justin Lee <julee@redhat.com>
2020-02-14 12:47:07 -03:00
George Gastaldi
e3a1545c77 Merge pull request #7178 from gwenneg/sonarqube-criticals
Fix critical issues detected with SonarCloud
2020-02-13 19:04:45 -03:00
Stuart Douglas
47573d639b Merge pull request #7162 from aloubyansky/bootstrap-maven-resolver-cleanup
Cleanup in the bootstrap code around maven resolver and workspace discovery
2020-02-14 07:53:26 +11:00
Gwenneg Lepage
b83b2f2537 Fix critical issues detected with SonarCloud 2020-02-13 15:25:56 +01:00
Guillaume Smet
9f47cc5c6b Merge pull request #7170 from gwenneg/sonarqube-blockers
Fix blocker issues detected with SonarCloud
2020-02-13 11:03:58 +01:00
Alexey Loubyansky
e96f91cb59 A bit of a cleanup in the bootstrap code around maven resolver and workspace discovery:
* a fallback to resolving an application model from the classpath was removed, if the execution flow reaches that point something is definitely wrong and most probably will end up failing later;
    * resolved workspace discovery in BootstrapAppModelFactory is cached now to avoid loading it multiple times for the same factory (helps optimize launching apps in dev mode).
2020-02-13 11:01:08 +01:00
Gwenneg Lepage
8951e30fe0 Fix blocker issues detected with SonarCloud 2020-02-13 00:43:01 +01:00
Jesper Skov
d76978ad9e Configure all Test tasks properly (#3552)
Also configure test tasks that are created (in the build file, or
in other plugins) after the quarkus plugin is applied.
2020-02-11 17:53:42 +01:00
George Gastaldi
d7957dfc00 Merge pull request #7071 from aloubyansky/7038
QuarkusDev should be serializing the AppModel in the same manner as QuarkusTestConfig
2020-02-07 23:59:44 -03:00
George Gastaldi
b4e5483c48 Set the AppArtifact in the Gradle plugin
Fixes #7077
2020-02-07 12:22:41 -03:00
Alexey Loubyansky
db03f4c06a QuarkusDev should be serializing the AppModel in the same manner as the QuarkusTestConfig, i.e. in a temp file and passing its path using quarkus-internal.serialized-app-model.path 2020-02-07 14:24:38 +01:00
Harald Reinmueller (FG-4-I-1)
efa9a63656 run with non-root user 1001 2020-02-07 10:46:08 +01:00
Manyanda Chitimbo
b3f121f11c Merge pull request #7011 from andreas-eberle/native-builder-image-gradle-parameter
Allow specifying quarkus.native.builder-image via gradle plugin parameter native-builder-image.
2020-02-05 20:45:37 +01:00
Andreas Eberle
17a161d081 Allow specifying quarkus.native.builder-image via gradle plugin parameter native-builder-image. 2020-02-05 17:01:13 +01:00
Alexey Loubyansky
e83e6ab980 Gradle plugin: include the test dependencies into the resolved application model when launching in test mode 2020-02-05 12:10:43 +01:00
Alexey Loubyansky
5f14689194 Gradle plugin: move serialized app model out of the test classes dir to avoid it being removed as 'stale content' before the tests are executed 2020-02-05 12:10:42 +01:00
Guillaume Smet
0330735059 Merge pull request #6973 from gsmet/prepare-for-jakarta
Also ignore the upcoming Jakarta classes
2020-02-05 11:17:18 +01:00
Guillaume Smet
4860f7fc4a Also ignore the upcoming Jakarta classes
I was working on moving Bean Validation to a "jakarta." package and
stumbled upon this one. Let's prepare for it because there's a good
chance we will miss that one.
2020-02-03 16:47:34 +01:00
Stuart Douglas
c146b7e536 Always compile quarkus:dev 2020-02-03 13:15:53 +02:00
Georgios Andrianakis
79f169aae5 Ensure that quarkus:dev works with yet to be compiled Kotlin project
Fixes: #6931
2020-02-03 11:02:01 +02:00
Rostislav Svoboda
7cfb0d9ef1 CreateProjectMojo - validate className 2020-02-01 18:10:46 +01:00
George Gastaldi
06903705c5 Merge pull request #6894 from gastaldi/plugin
Reuse compiler configuration in quarkus:dev
2020-01-30 18:44:53 -03:00
George Gastaldi
3d11cbd00e Reuse compiler configuration in quarkus:dev
Fixes #6881
2020-01-30 17:02:34 -03:00
Alexey Loubyansky
4d99b2e523 Make sure the generated extension project can be actually be built, support creating an extension project in an empty dir with a single command, e.g. mvn io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:create-extension -DgroupId=org.acme -DartifactId=my-ext -Dversion=1.0-SNAPSHOT 2020-01-30 10:14:00 +01:00
Guillaume Smet
b61f69d27b Merge pull request #6792 from gwenneg/issue-6709-drop-graalvm-19.2.1-compatibility
Drop GraalVM 19.2.1 support and deprecate enableJni option
2020-01-29 11:53:32 +01:00
Stuart Douglas
41a238ba12 Limit memory usage in tests
Tests can have lots of processes running at once,
if they all default to 75% of physical memory
we can run out, as processes can continue to allocate
instead of running GC
2020-01-29 14:03:15 +11:00
Stuart Douglas
b289d2655e Handle multiple output directories in Kotlin projects
Fixes #6561
2020-01-28 16:45:31 +11:00
Gwenneg Lepage
4c193ae8d3 Drop GraalVM 19.2.1 support and deprecate enableJni option 2020-01-27 18:27:11 +01:00
Stuart Douglas
b67491c1ff The big ClassLoader change
This changes the way Quarkus ClassLoading works,
to allow for isolated class loaders.

It also unifies how Quarkus is launched, so every
different mode we support uses the same mechanism
for both curation and launch.

Tests are now run in an isolated ClassLoader, which
means that a proxy is created that runs the tests
from within the isolated ClassLoader. This currently
has a quirk where @BeforeAll methods are run twice,
which will be fixed in the next JUnit release. This
can be worked around by using @QuarkusBeforeAll.
2020-01-22 13:30:44 +01:00
Gwenneg Lepage
dea977da7c Disable JNI by default with GraalVM 19.2.1 2020-01-16 21:02:44 +01:00
Clement Escoffier
09066e1e95 Explicitly set the UBI version to 8.1 in the Dockerfile used for the native executable. 2020-01-14 08:01:05 +01:00
Clement Escoffier
d37fc67465 Use UBI in the JVM variant of the Dockerfile
I added a note (as a comment) about -XshowSettings:vm. So the user can enable it easily and check the amount of heap used by the application.
2020-01-14 07:59:53 +01:00
George Gastaldi
e5e6e1e7d6 Do not assume non-existent source dirs as working and source dir
Fixes #6485
2020-01-10 19:13:26 -03:00
George Gastaldi
09cd3fa338 graalVmHome should be optional in gradle buildNative 2020-01-10 09:18:11 -03:00
Georgios Andrianakis
6fde618dd1 Merge pull request #6455 from tobad357/bugfix/quarkusdev-project-dep
Fix for #6442 quarkusDev not working in multi module projects
2020-01-09 11:25:04 +02:00
Harald Reinmueller (FG-4-I-1)
977f466b64 Make native executable executable in Dockerfile 2020-01-08 22:54:26 +01:00
Tobias
b27ebf41a7 This fixes issue #6442 that project dependencies end up twice on the quarkusDev classpath 2020-01-08 23:34:07 +08:00
Guillaume Smet
f9be4d5172 Check that there is a pluginOptions child before iterating on it
Fixes #6428
2020-01-06 21:46:03 +01:00
Rostislav Svoboda
c9e6b58ed4 Typo fixes 2020-01-05 23:10:23 +01:00
Georgios Andrianakis
6aee06ba92 Make application version and name available as runtime properties
Fixes: #6255

Co-authored-by: Guillaume Smet <guillaume.smet@gmail.com>
2020-01-02 11:41:41 +02:00
George Gastaldi
016578745e Using constants in Gradle tests 2019-12-30 09:44:26 -03:00
George Gastaldi
e9661e70a9 Set className and path to trigger sample code generation 2019-12-23 00:44:03 -03:00
George Gastaldi
ab30881577 Revert "Disabling Scala gradle build test for now"
This reverts commit b3ea880dab.
2019-12-23 00:44:03 -03:00
George Gastaldi
7b07d866e5 Fixes Illegal char error in Gradle plugin 2019-12-23 00:44:03 -03:00