Skip to content

Commit

Permalink
Simplify Spring ViewComponent and remove ViewAction (#23)
Browse files Browse the repository at this point in the history
* Removed ViewAction, Jte Compiler, AnnotationProcessor

* All Examples work in local dev

- Simplified paths in settings.gradle.kts for increased maintainability
- Streamlined the ThymeleafViewComponentAutoConfiguration by using ViewComponentProperties
- Updated README.md to reflect these changes
- Added a new file, ViewComponentProperties.kt, to contain configuration properties

* update readme

* Update index view and test path configuration

- Removed ActionViewComponent and NestedActionViewComponent links from index view in Thymeleaf, KTE, and Java examples.
- Updated the external project path in the 'Run all example tests' configuration.

* local dev for jte works

* sace

* compilation works in IntelliJ but not in jar

* localdev and compilation works

* Update project to version 0.8.0, clean up build scripts and configurations

- Update the versions in the build scripts to use 0.8.0-SNAPSHOT
- Clean up configurations by removing unnecessary annotation processor paths, includes, and properties
- Comment out viewComponentRoot in the application.properties file
- Remove unnecessary implementation dependencies in the dependencies blocks
- Update README.md, removing outdated instructions and providing updated version information
- Modify ViewComponent properties in JteConfiguration
- Remove ViewComponent reference retrieval function in JteConfiguration
- Remove unnecessary test dependency in Thymeleaf-Java
- Remove unnecessary annotation processor paths
- Update versions in xml files to match snapshot version
- Modify TemplateEngine and TemplateResolver Beans in ThymeleafViewComponentAutoConfiguration

* KTE is now independent from the jte module

* remove jte-compiler from github workflow

* fix maven config

* Updated version from 0.8.0-SNAPSHOT to 0.8.0

In this commit, we have:
- Updated the project version reference from a snapshot version to an official release version across multiple files
- Adjusted artifact dependencies to point to the correct 0.8.0 version instead of the snapshot
- Updated Maven dependency versions in README.md
- Adjusted version properties in pom.xml for JTE and Thymeleaf examples
- Fixed some minor formatting issues in README.md's XML snippets
  • Loading branch information
tschuehly authored Jun 3, 2024
1 parent ecb8ea6 commit 17d00ac
Show file tree
Hide file tree
Showing 110 changed files with 698 additions and 2,552 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ jobs:
cache-dependency-path: |
thymeleaf/build.gradle.kts
core/build.gradle.kts
jte/jte/build.gradle.kts
jte/jte-compiler/build.gradle.kts
jte/kte/build.gradle.kts
jte/build.gradle.kts
kte/build.gradle.kts
- name: make gradle executable
run: chmod +x ./gradlew
- name: publishToMavenLocal
run: ./gradlew :thymeleaf:publishToMavenLocal :jte-compiler:publishToMavenLocal :jte:publishToMavenLocal :core:publishToMavenLocal :kte:publishToMavenLocal
run: ./gradlew :thymeleaf:publishToMavenLocal :jte:publishToMavenLocal :core:publishToMavenLocal :kte:publishToMavenLocal
- name: Cache local Maven repository
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -149,9 +148,8 @@ jobs:
cache-dependency-path: |
thymeleaf/build.gradle.kts
core/build.gradle.kts
jte/jte/build.gradle.kts
jte/jte-compiler/build.gradle.kts
jte/kte/build.gradle.kts
jte/build.gradle.kts
kte/build.gradle.kts
- name: Run chmod to make gradlew executable
run: chmod +x ./gradlew
- name: Publish thymeleaf package to staging
Expand Down Expand Up @@ -187,17 +185,6 @@ jobs:
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew :kte:jreleaserDeploy -DaltDeploymentRepository=local::file:./jte/kte/build/staging-deploy --stacktrace
- name: Publish jte-compiler package to staging
run: ./gradlew :jte-compiler:publish
- name: Publish jte package to maven central
env:
JRELEASER_NEXUS2_USERNAME: ${{ secrets.JRELEASER_NEXUS2_USERNAME }}
JRELEASER_NEXUS2_PASSWORD: ${{ secrets.JRELEASER_NEXUS2_PASSWORD }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew :jte-compiler:jreleaserDeploy -DaltDeploymentRepository=local::file:./jte/jte-compiler/build/staging-deploy --stacktrace
- name: Publish core package to staging
run: ./gradlew :core:publish
- name: Publish core package to maven central
Expand Down
1 change: 0 additions & 1 deletion .run/publishAll.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<option name="taskNames">
<list>
<option value=":thymeleaf:publishToMavenLocal" />
<option value=":jte-compiler:publishToMavenLocal" />
<option value=":jte:publishToMavenLocal" />
<option value=":core:publishToMavenLocal" />
<option value=":kte:publishToMavenLocal" />
Expand Down
Loading

0 comments on commit 17d00ac

Please sign in to comment.