Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
b4323ab
Implement collectAllParameters() and collectWithParams() with Ilya
andrewboni Jun 6, 2018
50b44a7
fix for Variable
Jun 6, 2018
61b42d8
Update comments and add the TagType for TagWithParams.
andrewboni Jun 8, 2018
d213d17
Update comments
andrewboni Jun 8, 2018
46d885b
Add in tagType and fix test
andrewboni Jun 8, 2018
8ee631e
Add additional test cases
andrewboni Jun 11, 2018
6678deb
Update tests
andrewboni Jun 11, 2018
8ba0497
Add built snapshot JAR to use until changes merged upstream
Jun 12, 2018
95a12c7
remove handlebars jar
Jun 12, 2018
223e7c7
Update tests, add in custom .toString()
andrewboni Jun 21, 2018
4cbdfee
Merge branch 'master' of github.com:Iterable/handlebars.java
andrewboni Jun 21, 2018
775086e
Add comments, fix style
andrewboni Jun 22, 2018
ded97c1
refactor name and package
Oct 31, 2018
6bce684
Merge remote-tracking branch 'upstream/master'
Oct 31, 2018
acecec6
mark collect as deprecated
Oct 31, 2018
8b46b71
fix whitespace
Oct 31, 2018
1cd3eac
Merge remote-tracking branch 'upstream/master'
Mar 3, 2020
fb4e295
add internal data
Mar 3, 2020
5ed8e52
add tests
Mar 4, 2020
25f80ba
add tests against direct context lookup
Mar 4, 2020
ca2937d
fix test name
Mar 4, 2020
e0f7722
Merge pull request #1 from Iterable/create-internal-storage
dontgitit Mar 4, 2020
ae4e84a
Merge remote-tracking branch 'upstream/master'
Aug 8, 2022
888f789
Merge branch 'jknack:master' into master
vbabenkoru Feb 23, 2024
3b6506f
[TNT-7113] Use commit hashes for github repo actions
dennisiterable Apr 30, 2024
493047d
set up releases
gmethvin Apr 27, 2025
3abe904
sonatype central publish
gmethvin Jun 23, 2025
98c9eb2
Initial commit of codeql
randall-wyatt Oct 3, 2025
6d1878a
setting the build to auto
randall-wyatt Oct 6, 2025
d2d8382
setting the build to auto
randall-wyatt Oct 6, 2025
2ad14a5
adding build steps
randall-wyatt Oct 6, 2025
34bc8d0
removing not needed steps
randall-wyatt Oct 6, 2025
cf44f71
working on the build
randall-wyatt Oct 6, 2025
917e2a3
making JS to none build
randall-wyatt Oct 6, 2025
c35940e
working on java builds
randall-wyatt Oct 6, 2025
2273c36
maven build
randall-wyatt Oct 6, 2025
0f62ac4
manual maven build
randall-wyatt Oct 6, 2025
27b7f3d
changing fetch depth
randall-wyatt Oct 6, 2025
0901578
moving things around
randall-wyatt Oct 6, 2025
20c02c7
moving the init to before the build
randall-wyatt Oct 6, 2025
2d8d37c
renaming the workflows per the team request
randall-wyatt Oct 9, 2025
7c43b87
Merge pull request #57 from Iterable/codeql-workflow
randall-wyatt Oct 9, 2025
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
26 changes: 26 additions & 0 deletions .github/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>central</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>

<profiles>
<profile>
<id>central</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.keyname>${env.GPG_KEY_ID}</gpg.keyname>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
<gpg.useAgent>true</gpg.useAgent>
</properties>
</profile>
</profiles>
</settings>
10 changes: 7 additions & 3 deletions .github/workflows/build-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@ jobs:
strategy:
fail-fast: false
matrix:
java_version: [1.8, 11, 15, 17]
java_version: [11, 17]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0 # Important for versioning extension to work correctly
- name: Mustache Specs
run: |
git submodule update --init --recursive
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v1
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00
with:
java-version: ${{ matrix.java_version }}
distribution: "temurin"
cache: maven
- name: Install
run: mvn clean install -DskipTests --batch-mode --no-transfer-progress
env:
Expand Down
151 changes: 151 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
name: "CodeQL Advanced"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]


jobs:
analyze-java:
name: Analyze Java
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: java
build-mode: manual # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: '0'

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
# - name: Setup runtime (example)
# uses: actions/setup-example@v1

# Initializes the CodeQL tools for scanning.



- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
queries: security-extended,security-and-quality

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '11' # Specify the JDK version your project needs
distribution: 'temurin'
cache: maven

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
mvn -B clean install -DskipTests

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"


analyze-js:
name: Analyze Javascript
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
# - name: Setup runtime (example)
# uses: actions/setup-example@v1

# Initializes the CodeQL tools for scanning.

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
66 changes: 66 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Release

on:
push:
branches:
- main
- master
tags:
- "v*"
workflow_dispatch:

jobs:
publish:
name: Publish
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0 # Important for versioning extension to work correctly

- name: Set up JDK 11
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00
with:
java-version: 11
distribution: "temurin"
cache: maven

- name: Install GPG key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG

- name: Set release type
id: release_type
run: |
echo "GitHub ref: $GITHUB_REF"
if [[ $GITHUB_REF == refs/tags/v* ]]; then
echo "IS_RELEASE=true" >> $GITHUB_ENV
echo "This is a release build from tag ${GITHUB_REF#refs/tags/}"
else
echo "IS_RELEASE=false" >> $GITHUB_ENV
echo "This is a snapshot build from branch ${GITHUB_REF#refs/heads/}"
fi

- name: Build code
run: mvn clean verify -DskipTests

- name: Deploy to Maven Central
run: |
if [[ $IS_RELEASE == true ]]; then
echo "Deploying release to Maven Central"
mvn deploy -P sonatype -DskipTests \
-s ${{ github.workspace }}/.github/settings.xml
else
echo "Deploying snapshot to Maven Central"
mvn deploy -DskipTests \
-s ${{ github.workspace }}/.github/settings.xml
fi
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
VERSIONING_EXTENSION_LOG: true
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ pom.xml.versionsBackup
jacoco.exec

out

# VSCode
.vscode

.git-versioned-pom.xml
1 change: 1 addition & 0 deletions .java-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
8 changes: 8 additions & 0 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<extensions>
<extension>
<groupId>me.qoomon</groupId>
<artifactId>maven-git-versioning-extension</artifactId>
<version>9.10.2</version>
</extension>
</extensions>
22 changes: 22 additions & 0 deletions .mvn/maven-git-versioning-extension.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<configuration xmlns="https://github.com/qoomon/maven-git-versioning-extension"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://github.com/qoomon/maven-git-versioning-extension https://qoomon.github.io/maven-git-versioning-extension/configuration-9.4.0.xsd">

<refs considerTagsOnBranches="true">
<ref type="tag">
<pattern><![CDATA[v(?<version>.*)]]></pattern>
<version>${ref.version}</version>
</ref>
<ref type="branch">
<pattern>.+</pattern>
<version>${describe.tag.version}+${describe.distance}-${commit.short}-SNAPSHOT</version>
</ref>
</refs>

<preferTags>true</preferTags>

<!-- optional fallback configuration in case of no matching ref configuration-->
<rev>
<version>${commit}</version>
</rev>
</configuration>
Loading