Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency com.fizzed:rocker-runtime to v2 #924

Closed
wants to merge 124 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
b61c4f8
fix(deps): update dependency io.micronaut.security:micronaut-security…
renovate[bot] Apr 22, 2024
43527f2
fix(deps): update dependency io.micronaut.logging:micronaut-logging-b…
renovate[bot] Apr 22, 2024
593e250
chore(deps): update gradle/gradle-build-action action to v3.3.1 (#780)
renovate[bot] Apr 22, 2024
65bfc7e
feat: add missing morph and refresh methods (#784)
sdelamo Apr 22, 2024
fce7b46
feat: Add a dataTurbo field to form and add test for fieldset TCK. (#…
wetted Apr 25, 2024
dd937bb
fix(deps): update micronaut to v4.4.6 (#789)
renovate[bot] Apr 25, 2024
213dfe3
chore(deps): update plugin io.micronaut.build.shared.settings to v6.7…
renovate[bot] Apr 25, 2024
600a626
chore(deps): update gradle/gradle-build-action action to v3.3.2 (#791)
renovate[bot] Apr 26, 2024
a61be63
[skip ci] Release v5.3.0
micronaut-build Apr 26, 2024
a58f747
chore: Bump version to 5.3.1-SNAPSHOT
micronaut-build Apr 26, 2024
a3c63ec
ci: projectVersion=5.4.0-SNAPSHOT [ci skip]
sdelamo Apr 26, 2024
6aeea9b
fix(deps): update dependency io.micronaut.gradle:micronaut-gradle-plu…
renovate[bot] Apr 30, 2024
bcddedb
fix(deps): update dependency io.micronaut.serde:micronaut-serde-bom t…
renovate[bot] Apr 30, 2024
10f5c48
chore(deps): update kotlin monorepo to v1.9.24 (#806)
renovate[bot] May 8, 2024
bc4628e
chore(deps): update plugin io.micronaut.build.shared.settings to v7 (…
renovate[bot] May 8, 2024
a6cfcfd
fix(deps): update dependency io.micronaut.validation:micronaut-valida…
renovate[bot] May 8, 2024
d85b8c4
Merge up 5.3.x into 5.4.x (#807)
timyates May 13, 2024
e6cd4b2
Feature: Support for React JS server side rendering (#770)
mikehearn May 27, 2024
16752f8
chore(deps): update managed.jte to v3.1.12 (#810)
renovate[bot] May 27, 2024
34d810d
fix(deps): update micronaut to v4.4.10 (#800)
renovate[bot] May 27, 2024
e4b375e
fix(deps): update dependency io.micronaut.sql:micronaut-sql-bom to v5…
renovate[bot] May 27, 2024
21471fe
fix(deps): update dependency io.micronaut.data:micronaut-data-bom to …
renovate[bot] May 27, 2024
52e70d3
Update common files (#798)
micronaut-build May 29, 2024
f705354
[skip ci] Release v5.4.0
micronaut-build May 30, 2024
f94f4dc
chore: Bump version to 5.4.1-SNAPSHOT
micronaut-build May 30, 2024
d59bab5
Update common files (#817)
micronaut-build Jun 4, 2024
a75ef86
chore(deps): update plugin io.micronaut.build.shared.settings to v7.1…
renovate[bot] Jun 4, 2024
0ac52a7
Update common files (#824)
micronaut-build Jun 8, 2024
e240380
fix(deps): update dependency org.freemarker:freemarker to v2.3.33 (#819)
renovate[bot] Jun 16, 2024
1ea3296
chore(deps): update plugin io.micronaut.build.shared.settings to v7.1…
renovate[bot] Jun 16, 2024
bbb7b3b
fix(deps): update dependency org.jetbrains.kotlinx:kotlinx-coroutines…
renovate[bot] Jun 16, 2024
881e3ad
fix(deps): update graal to v24.0.1 (#814)
renovate[bot] Jun 16, 2024
afd6a2f
chore(deps): update graalvm/setup-graalvm action to v1.2.2 (#829)
renovate[bot] Jun 19, 2024
60d886f
chore(deps): update plugin io.micronaut.build.shared.settings to v7.1…
renovate[bot] Jun 23, 2024
1a98f67
Update common files
micronaut-build Jun 23, 2024
ef68b0d
Merge pull request #830 from micronaut-projects/sync-files-5.4.x
ChaimaaeROUAI Jul 5, 2024
f98179d
chore(deps): update plugin io.micronaut.build.shared.settings to v7.1…
renovate[bot] Jul 5, 2024
18eeab7
React Renderer: use the resource resolver API to locate the server bu…
mikehearn Jul 6, 2024
06d6a65
fix(deps): update dependency io.micronaut.data:micronaut-data-bom to …
renovate[bot] Jul 6, 2024
c0e1d61
fix(deps): update dependency io.micronaut.gradle:micronaut-gradle-plu…
renovate[bot] Jul 6, 2024
c32f733
remove initialize-at-runtime definitions (#835)
graemerocher Jul 10, 2024
87f2f5e
fix(deps): update dependency io.micronaut.data:micronaut-data-bom to …
renovate[bot] Jul 17, 2024
0404a85
fix(deps): update dependency io.micronaut.gradle:micronaut-gradle-plu…
renovate[bot] Jul 19, 2024
f8c1891
Update common files (#840)
micronaut-build Jul 19, 2024
79b62cc
fix(deps): update micronaut to v4.5.3 (#827)
renovate[bot] Jul 19, 2024
7bd18cc
fix(deps): update dependency io.micronaut.sql:micronaut-sql-bom to v5…
renovate[bot] Jul 19, 2024
3d8080d
fix(deps): update dependency io.micronaut.validation:micronaut-valida…
renovate[bot] Jul 19, 2024
3fb665f
chore(deps): update kotlin monorepo to v1.9.25 (#841)
renovate[bot] Jul 20, 2024
1e901b5
fix(deps): update dependency io.micronaut.serde:micronaut-serde-bom t…
renovate[bot] Jul 22, 2024
94d4069
[skip ci] Release v5.4.1
micronaut-build Jul 22, 2024
f1929d8
chore: Bump version to 5.4.2-SNAPSHOT
micronaut-build Jul 22, 2024
9e14386
fix(deps): update dependency io.micronaut.gradle:micronaut-gradle-plu…
renovate[bot] Jul 23, 2024
631231c
fix(deps): update micronaut to v4.5.4 (#843)
renovate[bot] Jul 23, 2024
25aed4f
ReactJS: Fix exception hang and improve docs (#845)
mikehearn Aug 5, 2024
c6f2c7f
chore(deps): update plugin io.micronaut.build.shared.settings to v7.2…
renovate[bot] Aug 7, 2024
2d6c5ec
fix(deps): update dependency io.micronaut.security:micronaut-security…
renovate[bot] Aug 7, 2024
54da007
imp: ReactJS - Another round of fixes and improvements (#846)
mikehearn Aug 7, 2024
8aa14e2
[skip ci] Release v5.4.2
micronaut-build Aug 7, 2024
48a493d
chore: Bump version to 5.4.3-SNAPSHOT
micronaut-build Aug 7, 2024
bf02c8b
fix(deps): update managed.jstachio to v1.3.6 (#847)
renovate[bot] Aug 8, 2024
c929004
build: update org.json:json to 20231013 patched version (#850)
sdelamo Aug 8, 2024
6e05e42
Update common files (#848)
micronaut-build Aug 8, 2024
496a1b3
[skip ci] Release v5.4.3
micronaut-build Aug 8, 2024
ce2e8ca
chore: Bump version to 5.4.4-SNAPSHOT
micronaut-build Aug 8, 2024
a9fb26f
ReactJS: Fixes to proxy object wrapping (#851)
mikehearn Aug 9, 2024
3480cad
[skip ci] Release v5.4.4
micronaut-build Aug 9, 2024
a93255a
chore: Bump version to 5.4.5-SNAPSHOT
micronaut-build Aug 9, 2024
e35d76d
chore(deps): update graalvm/setup-graalvm action to v1.2.3 (#852)
renovate[bot] Aug 11, 2024
e3bf0ae
fix(deps): update dependency io.micronaut.data:micronaut-data-bom to …
renovate[bot] Aug 12, 2024
5fc7c2d
chore(deps): update dependency gradle to v8.10 (#858)
renovate[bot] Aug 19, 2024
e9472cd
Update common files (#853)
micronaut-build Aug 19, 2024
97677e1
ci: projectVersion 5.5.0-SNAPSHOT [ci skip]
sdelamo Aug 19, 2024
dd76bc0
fix(deps): update dependency io.micronaut.data:micronaut-data-bom to …
renovate[bot] Aug 19, 2024
27c5ec7
update to Micronaut 4.6.1 (#862)
sdelamo Aug 21, 2024
644c394
[skip ci] Release v5.5.0
micronaut-build Aug 21, 2024
6c6cfc3
chore: Bump version to 5.5.1-SNAPSHOT
micronaut-build Aug 21, 2024
421f516
chore(deps): update plugin io.micronaut.build.shared.settings to v7.2…
renovate[bot] Aug 21, 2024
d5a612a
fix(deps): update micronaut to v4.6.2 (#866)
renovate[bot] Aug 22, 2024
773dfa5
fix(deps): update micronaut to v4.6.3 (#868)
renovate[bot] Aug 24, 2024
e5b26a6
fix(deps): update dependency io.micronaut.data:micronaut-data-bom to …
renovate[bot] Sep 3, 2024
09331c9
fix(deps): update dependency io.micronaut.data:micronaut-data-bom to …
renovate[bot] Sep 7, 2024
04b6bca
fix(deps): update micronaut to v4.6.4 (#874)
renovate[bot] Sep 8, 2024
6f25f4d
chore(deps): update dependency gradle to v8.10.1 (#878)
renovate[bot] Sep 10, 2024
245003a
tck: for a single checkbox don’t duplicate labels (#879)
sdelamo Sep 10, 2024
bf787c8
don’t add jte-kotlin by default (#877)
sdelamo Sep 10, 2024
bb7ffd2
chore(deps): update actions/upload-artifact action to v4.4.0 (#871)
renovate[bot] Sep 10, 2024
d7738d5
fix(deps): update dependency io.micronaut.security:micronaut-security…
renovate[bot] Sep 10, 2024
5f04cb1
Update common files (#875)
micronaut-build Sep 10, 2024
7ff2c49
[skip ci] Release v5.5.1
micronaut-build Sep 10, 2024
cf82500
chore: Bump version to 5.5.2-SNAPSHOT
micronaut-build Sep 10, 2024
bd36a90
chore(deps): update dependency gradle to v8.10.1 (#880)
renovate[bot] Sep 11, 2024
9ad4a9a
fix(deps): update micronaut to v4.6.5 (#881)
renovate[bot] Sep 12, 2024
6afb971
fix(deps): update dependency io.micronaut.sql:micronaut-sql-bom to v5…
renovate[bot] Sep 14, 2024
f148c0b
chore(deps): update dependency gradle to v8.10.2 (#885)
renovate[bot] Sep 25, 2024
bcb00c2
fix(deps): update dependency io.micronaut.data:micronaut-data-bom to …
renovate[bot] Sep 27, 2024
1720398
chore(deps): update actions/checkout action to v4.2.0 (#888)
renovate[bot] Sep 30, 2024
82fc78d
fix(deps): update dependency io.micronaut.gradle:micronaut-gradle-plu…
renovate[bot] Oct 4, 2024
841062a
fix(deps): update dependency io.micronaut.security:micronaut-security…
renovate[bot] Oct 5, 2024
6dfe51f
fix(deps): update micronaut to v4.6.6 (#895)
renovate[bot] Oct 7, 2024
d00730a
chore(deps): update managed.jte to v3.1.13 (#897)
renovate[bot] Oct 9, 2024
e8a759f
fix(deps): update dependency io.micronaut.data:micronaut-data-bom to …
renovate[bot] Oct 12, 2024
cc6ff31
ci: projectVersion=5.6.0-SNAPSHOT [ci skip]
sdelamo Oct 12, 2024
e936989
fix(deps): update dependency org.jetbrains.kotlinx:kotlinx-coroutines…
renovate[bot] Oct 12, 2024
2ad260e
fix(deps): update dependency org.apache.velocity:velocity-engine-core…
renovate[bot] Oct 12, 2024
7a4f577
chore(deps): update plugin com.github.node-gradle.node to v7.1.0 (#890)
renovate[bot] Oct 12, 2024
cc255e9
fix(deps): update dependency io.micronaut.logging:micronaut-logging-b…
renovate[bot] Oct 12, 2024
cd9052f
fix(deps): update dependency org.json:json to v20240303 (#869)
renovate[bot] Oct 12, 2024
4c698e2
fix(deps): update graal to v24.1.0 (#884)
renovate[bot] Oct 12, 2024
a4d3a90
JTE fieldset TCK (#900)
sdelamo Oct 15, 2024
228b768
Revert "fix(deps): update graal to v24.1.0 (#884)"
sdelamo Oct 15, 2024
da042a2
update GraalVM to 1.2.5 disable views-reactive in CI (#906)
sdelamo Oct 30, 2024
76da8a2
Csrf token view model processor (#914)
sdelamo Oct 30, 2024
15c25b1
fix(deps): update dependency org.apache.velocity:velocity-engine-core…
renovate[bot] Oct 30, 2024
41a6e53
Update common files (#908)
micronaut-build Oct 30, 2024
e9b4b92
Describe request attribute containing CSP nonce (#898)
tfield Oct 30, 2024
9af6973
Merge branch '5.5.x' into 5.6.x
sdelamo Oct 30, 2024
226b14a
generate hidden input for csrftoken (#916)
sdelamo Oct 30, 2024
4c3b5ad
ReactJS: Fix JVM crash and re-activate in CI (#917)
mikehearn Oct 30, 2024
adad1fe
chore(deps): update softprops/action-gh-release action to v2.0.9 (#920)
renovate[bot] Nov 3, 2024
e6c268f
fix(deps): update dependency io.micronaut.serde:micronaut-serde-bom t…
renovate[bot] Nov 4, 2024
2bffd26
chore(deps): update mikepenz/action-junit-report action to v5 (#921)
renovate[bot] Nov 4, 2024
539a6e0
fix(deps): update dependency io.micronaut.gradle:micronaut-gradle-plu…
renovate[bot] Nov 5, 2024
221beee
fix(deps): update micronaut to v4.7.2 (#902)
renovate[bot] Nov 5, 2024
6e37da5
fix(deps): update dependency com.fizzed:rocker-runtime to v2
renovate[bot] Nov 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@
"packageRules": [
{
"matchPackagePatterns": ["actions.*"],
"dependencyDashboardApproval": true
"dependencyDashboardApproval": true,
"matchUpdateTypes": ["patch"],
"matchCurrentVersion": "!/^0/",
"automerge": true
},
{
"matchUpdateTypes": ["patch"],
"matchCurrentVersion": "!/^0/",
"automerge": true
}
]
}
8 changes: 4 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ jobs:
fetch-depth: 0

- name: "🔧 Setup GraalVM CE"
uses: graalvm/[email protected].1
uses: graalvm/[email protected].5
with:
distribution: 'graalvm'
java-version: ${{ matrix.java }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: "🔧 Setup Gradle"
uses: gradle/gradle-build-action@v3.3.0
uses: gradle/gradle-build-action@v3.5.0

- name: "❓ Optional setup step"
run: |
Expand All @@ -70,15 +70,15 @@ jobs:

- name: "📊 Publish Test Report"
if: always()
uses: mikepenz/action-junit-report@v4
uses: mikepenz/action-junit-report@v5
with:
check_name: Java CI / Test Report (${{ matrix.java }})
report_paths: '**/build/test-results/test/TEST-*.xml'
check_retries: 'true'

- name: "📜 Upload binary compatibility check results"
if: matrix.java == '17'
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: binary-compatibility-reports
path: "**/build/reports/binary-compatibility-*.html"
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ jobs:
# Store the hash in a file, which is uploaded as a workflow artifact.
sha256sum $ARTIFACTS | base64 -w0 > artifacts-sha256
- name: Upload build artifacts
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: gradle-build-outputs
path: build/repo/${{ steps.publish.outputs.group }}/*/${{ steps.publish.outputs.version }}/*
retention-days: 5
- name: Upload artifacts-sha256
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: artifacts-sha256
path: artifacts-sha256
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
artifacts-sha256: ${{ steps.set-hash.outputs.artifacts-sha256 }}
steps:
- name: Download artifacts-sha256
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: artifacts-sha256
# The SLSA provenance generator expects the hash digest of artifacts to be passed as a job
Expand All @@ -134,7 +134,7 @@ jobs:
actions: read # To read the workflow path.
id-token: write # To sign the provenance.
contents: write # To add assets to a release.
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.10.0
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
with:
base64-subjects: "${{ needs.provenance-subject.outputs.artifacts-sha256 }}"
upload-assets: true # Upload to a new release.
Expand All @@ -146,11 +146,9 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Download artifacts
# Important: update actions/download-artifact to v4 only when generator_generic_slsa3.yml is also compatible.
# See https://github.com/slsa-framework/slsa-github-generator/issues/3068
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: gradle-build-outputs
path: build/repo
Expand All @@ -162,6 +160,6 @@ jobs:
- name: Upload assets
# Upload the artifacts to the existing release. Note that the SLSA provenance will
# attest to each artifact file and not the aggregated ZIP file.
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2.0.9
with:
files: artifacts.zip
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ dependencies {

testImplementation(projects.micronautViewsFieldset)
testImplementation(projects.micronautViewsFieldsetTck)
testImplementation(libs.junit.jupiter.api)
testImplementation(mnTest.junit.jupiter.api)
testImplementation(mnTest.micronaut.test.junit5)
testImplementation(libs.junit.jupiter.engine)
testImplementation(mnTest.junit.jupiter.engine)
testImplementation(libs.junit.platform.engine)
}
test {
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
projectVersion=5.3.0-SNAPSHOT
projectVersion=5.6.0-SNAPSHOT
projectGroup=io.micronaut.views

title=Micronaut Views
Expand All @@ -18,6 +18,8 @@ testsviewsRocker=views-rocker/src/test
testsviewsPebble=views-pebble/src/test
testsviewsJte=views-jte/src/test
testsviewsJstachio=views-jstachio/src/test
srcjsReact=views-react/src/test/js
srcjsReactRender=views-react/src/main/resources/io/micronaut/views/react

org.gradle.caching=true
org.gradle.jvmargs=-Xmx1g
Expand Down
46 changes: 27 additions & 19 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
[versions]
micronaut = "4.4.4"
micronaut-platform = "4.3.1"
micronaut = "4.7.2"
micronaut-platform = "4.6.3"
micronaut-docs = '2.0.0'
micronaut-test = "4.0.1"
micronaut-data = "4.7.0"
micronaut-sql = "5.5.2"
micronaut-security = "4.6.9"
micronaut-serde = "2.8.2"
micronaut-validation = "4.4.4"
micronaut-gradle-plugin = "4.3.6"
managed-freemarker = "2.3.32"
micronaut-test = "4.5.0"
micronaut-data = "4.9.6"
micronaut-sql = "5.8.2"
micronaut-security = "4.11.0"
micronaut-serde = "2.12.0"
micronaut-validation = "4.8.0"
micronaut-gradle-plugin = "4.4.4"
managed-freemarker = "2.3.33"
managed-handlebars = "4.3.1"
managed-jstachio = "1.3.5"
managed-jte = "3.1.10"
managed-rocker = "1.4.0"
managed-jstachio = "1.3.6"
managed-jte = "3.1.13"
managed-rocker = "2.0.1"
managed-soy = "2023-09-13"
org-json = "20240303"
managed-thymeleaf = "3.1.2.RELEASE"
managed-velocity = "2.3"
managed-velocity = "2.4.1"
graal = "24.1.1"

pebble = "3.2.2"
thymeleaf-extra-java8time = "3.0.4.RELEASE"
kotlin = "1.9.23"
kotlinx-coroutines = "1.8.0"
kotlin = "1.9.25"
kotlinx-coroutines = "1.9.0"

micronaut-logging = "1.2.3"
micronaut-logging = "1.5.0"

[libraries]
# Core
Expand All @@ -42,22 +44,28 @@ managed-handlebars = { module = "com.github.jknack:handlebars", version.ref = "m
managed-jstachio = { module = "io.jstach:jstachio", version.ref = "managed-jstachio" }
managed-jstachio-apt = { module = "io.jstach:jstachio-apt", version.ref = "managed-jstachio" }
managed-jte = { module = "gg.jte:jte", version.ref = "managed-jte" }
managed-jte-native-resources = { module = "gg.jte:jte-native-resources", version.ref = "managed-jte" }
managed-jte-kotlin = { module = "gg.jte:jte-kotlin", version.ref = "managed-jte" }
managed-rocker-runtime = { module = "com.fizzed:rocker-runtime", version.ref = "managed-rocker" }
managed-soy = { module = "com.google.template:soy", version.ref = "managed-soy" }
org-json = { module = "org.json:json", version.ref = "org-json" }
managed-thymeleaf = { module = "org.thymeleaf:thymeleaf", version.ref = "managed-thymeleaf" }
managed-velocity-engine-core = { module = "org.apache.velocity:velocity-engine-core", version.ref = "managed-velocity" }

junit-jupiter-api = { module = "org.junit.jupiter:junit-jupiter-api" }
junit-jupiter-engine = { module = "org.junit.jupiter:junit-jupiter-engine" }
junit-platform-engine = { module = "org.junit.platform:junit-platform-suite-engine" }
pebble = { module = "io.pebbletemplates:pebble", version.ref = "pebble" }
thymeleaf-extras-java8time = { module = "org.thymeleaf.extras:thymeleaf-extras-java8time", version.ref = "thymeleaf-extra-java8time" }
kotlin-stdlib-jdk8 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" }
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
groovy-json = { module = "org.apache.groovy:groovy-json" }

graal-polyglot = { module = "org.graalvm.polyglot:polyglot", version.ref = "graal" }
graal-js = { module = "org.graalvm.polyglot:js", version.ref = "graal" }

[plugins]
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
jte = { id = "gg.jte.gradle", version.ref = "managed-jte" }
buildtools-native = { id = "org.graalvm.buildtools.native"}


Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
7 changes: 5 additions & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
Expand Down Expand Up @@ -55,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand Down Expand Up @@ -84,7 +86,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
2 changes: 2 additions & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
Expand Down
7 changes: 6 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pluginManagement {
}

plugins {
id("io.micronaut.build.shared.settings") version "6.7.0"
id("io.micronaut.build.shared.settings") version "7.2.3"
}

enableFeaturePreview 'TYPESAFE_PROJECT_ACCESSORS'
Expand All @@ -23,16 +23,21 @@ include 'views-handlebars'
include 'views-thymeleaf'
include 'views-htmx'
include 'views-velocity'
include 'views-react'
include 'views-rocker'
include 'views-pebble'
include 'views-jte'
include 'views-jstachio'

include "test-suite"
include "test-suite-csrf"
include "test-suite-http"
include "test-suite-groovy"
include "test-suite-kotlin"
include "test-suite-thymeleaf-fieldset"
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_21)) {
include "test-suite-jte-fieldset"
}
include "test-suite-freemarker-fieldset"
include "test-suite-graal:test-suite-graal-common"
include "test-suite-graal:test-suite-graal-freemarker"
Expand Down
10 changes: 10 additions & 0 deletions src/main/docs/guide/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ views:
title: JStachio
jstachioInstallation: JStachio Installation
jstachioExample: JStachio Example
react:
title: React SSR
reactpreparingjs: Preparing your Javascript
reactsettingproperties: Setting serving properties
preact: Integrating with Preact
reactrenderscripts:
title: Render scripts
reactheadmanagers: Using head managers
reacttodo: Known limitations
model:
title: Working with Models
custom: Dynamically Enriching Models
Expand All @@ -30,6 +39,7 @@ views:
fieldsetExample: Form Generation Example
fieldsetAnnotations: Fieldset Annotations
fieldsetFetcher: Radio, Checkbox and Option Fetcher
csrfHidden: CSRF Token Hidden Field
customFormElement: Custom Form Elements
htmx:
title: HTMX
Expand Down
1 change: 1 addition & 0 deletions src/main/docs/guide/views/fieldset/csrfHidden.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
If you use the https://micronaut-projects.github.io/micronaut-security/latest/guide/#csrf[Micronaut Security CSRF module], and a CSRF token is resolved, the generated form automatically contains a hidden input with the CSRF token as the value.
4 changes: 2 additions & 2 deletions src/main/docs/guide/views/htmx/outOfBandSwaps.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
You can return an API:views.htmx.HtmxResponse[] in a controller method to render multiple views in a single HTMX response—for example, to do https://htmx.org/docs/#oob_swaps[Out Of Band Swaps].
You can return an api:views.htmx.http.HtmxResponse[] in a controller method to render multiple views in a single HTMX response—for example, to do https://htmx.org/docs/#oob_swaps[Out Of Band Swaps].

snippet::io.micronaut.views.docs.htmx.HtmxTest[tags="outOfBandSwaps",indent=0]
snippet::io.micronaut.views.docs.htmx.HtmxTest[tags="outOfBandSwaps",indent=0]
8 changes: 8 additions & 0 deletions src/main/docs/guide/views/security/csp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ That's it! After applying the above configuration, HTTP responses might include
Content-Security-Policy: default-src https: self:; script-src 'nonce-4ze2IRazk4Yu/j5K6SEzjA';
```

The nonce value can be accessed on the server as a request attribute named `cspNonce`. This is the value to use
in the `nonce` attribute on `script` and related tags. For example (adapt as appropriate for your template language):

[source,html]
----
<script type="text/javascript" src="/path/to/script.js" nonce="${cspNonce}" />
----

Inline scripts which aren't otherwise whitelisted will be declined for execution, unless CSP is operating in report-only
mode. Inline scripts can be whitelisted with the syntax:

Expand Down
11 changes: 11 additions & 0 deletions src/main/docs/guide/views/security/security-model-enhancement.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ include::{testsSuite}/resources/views/securitydecorator.vm[tag=html]
----

You can access information about the current user with the `security` map.

=== CSRF Token View Model Processor

If you use the https://micronaut-projects.github.io/micronaut-security/latest/guide/#csrf[Micronaut Security CSRF module], there is also a view model processor for a model of type `Map<String, Object>`.
If a CSRF Token can be resolved, `CSRFViewModelProcessor` adds it to the model.

The following properties allow you to customize the injection:

include::{includedir}configurationProperties/io.micronaut.views.model.security.CsrfViewModelProcessorConfigurationProperties.adoc[]


Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ Additionally, you need to add JStachio's Java annotation processor.

dependency:jstachio-apt[groupId="io.jstach",scope="annotationProcessor"]

NOTE: For Kotlin, add the `jstachio-apt` dependency in https://docs.micronaut.io/4.4.3/guide/#kaptOrKsp[kapt or ksp scope], and for Groovy add `jstachio-apt` in compileOnly scope.

Read the https://jstach.io/doc/jstachio/1.2.1/apidocs/#installation[Jstachio's user guide] to learn more.
4 changes: 4 additions & 0 deletions src/main/docs/guide/views/templates/jte.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Add the `micronaut-views-jte` dependency to your classpath.

dependency:micronaut-views-jte[groupId="io.micronaut.views"]

If you want to write your views in Kotlin, you can include an additional dependency:

dependency:jte-kotlin[groupId="gg.jte"]

The example shown in the <<views, Views>> section, could be rendered with the following Jte template:

[source,html]
Expand Down
Loading
Loading