2
0
Fork 0
mirror of https://github.com/ethauvin/rife2-hello.git synced 2025-04-26 15:48:13 -07:00
Commit graph

10 commits

Author SHA1 Message Date
83e52c0e06
Merge pull request #7 from melix/cc/use-official-graalvm-plugin
Use the official GraalVM plugin
2023-03-05 10:39:39 -05:00
Cedric Champeau
a79e616d79
Use the official GraalVM plugin 2023-03-05 16:23:48 +01:00
Cedric Champeau
21c85ea93b
Add support for extra template directories
By default, the template was using `src/main/templates` as the source directory
for templates. This has the benefit of properly isolating the templates from
the application classpath: the framework is then responsible for injecting them
to the app runtime in whatever suitable form: either untouched as sources (in
development mode), or precompiled (for production).

With this change, it is also possible to use `src/main/resources/templates` as
a source directory. It _may_ feel more natural to users (although I would disagree),
but it has the drawback that the jars have to be configured to _exclude_ those
resources, because by default whatever is in `src/main/resources` MUST be included
in a jar (independently of the run mode).

It is also possible for the user to configure additional source directories should
they want to.
2023-03-05 15:10:46 +01:00
Cedric Champeau
65e579966c
Revert RunTask 2023-03-05 11:22:28 +01:00
Cedric Champeau
2e025cd693 Rework Gradle build
This commit introduces a _convention plugin_ for RIFE2 support.
It provides a number of advantages:

- the build logic is clearly separated from the build script,
which now only contains user-specific configuration, like the
framework version or how to configure test logging
- it fixes a number of issues like hardcoded dependencies
(`dependsOn` is in general a mistake)
- it removes the need to resolve the agent path eagerly
- it makes the agent configurable
- it clearly separates the user classpath from the RIFE
classpath (both for precompiling templates and for the agent)
- template compilation is cached
- it avoids the abuse of `src/main/resources` to put
templates and uses a dedicated directory instead, which
removes the need for exclusions

In addition, this should make it relatively straightforward
to convert the convention plugin into a proper RIFE2 plugin,
by extracting the code in `build-logic` into its own
repository then publishing to the Gradle plugin portal.
2023-02-21 23:52:36 +01:00
3a9bbec851 Added missing native-image configuration file 2023-02-19 10:32:37 -05:00
abd47f3bd9 Updates for RIFE2 v1.3.0.
Added README information about GraalVM native-image support.
2023-02-19 10:30:10 -05:00
a042ca3b65 Added second test 2023-02-12 13:25:39 -05:00
1b44a96ac5 Removed neadless import 2023-02-12 12:04:31 -05:00
c40209698c Initial commit 2023-02-12 11:39:35 -05:00