Skip to content

Java + Jreleaser #10

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

Open
wants to merge 88 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
6293f87
springification
slorello89 Jun 29, 2023
fe6d9de
fixing command
slorello89 Jun 29, 2023
7b6696e
action
slorello89 Jun 29, 2023
f9363e9
debugging
slorello89 Jun 29, 2023
2c2b858
adding windows build task
slorello89 Jul 6, 2023
0e3ad92
changing format
slorello89 Jul 6, 2023
a5f1c5b
try this
slorello89 Jul 6, 2023
fc08eb0
maybe this
slorello89 Jul 6, 2023
2e021a5
multi-platform
slorello89 Jul 6, 2023
fcf66e7
testing condition
slorello89 Jul 6, 2023
d1b1173
fixing shell
slorello89 Jul 6, 2023
1a2db4d
fixing path
slorello89 Jul 6, 2023
f56ed96
compress-archve > zip
slorello89 Jul 7, 2023
c3397f1
moving windows to it's own job
slorello89 Jul 7, 2023
443cdab
bump
slorello89 Jul 7, 2023
0c261ea
run on windows
slorello89 Jul 7, 2023
67534af
adding dispatch
slorello89 Jul 7, 2023
dbdc5b6
Merge pull request #1 from slorello89/spring
slorello89 Jul 7, 2023
4014b5a
switching to main
slorello89 Jul 7, 2023
61efe57
adding back readme
slorello89 Jul 7, 2023
7dff116
enhancing permissions
slorello89 Jul 7, 2023
2c1ea82
Releasing version 0.0.1
slorello89 Jul 7, 2023
7ea9ef8
renaming files, rebuilding
slorello89 Jul 10, 2023
2473874
Merge pull request #2 from slorello89/updates
slorello89 Jul 10, 2023
cb19ae1
Releasing version 0.0.2
slorello89 Jul 10, 2023
e278999
universal build
slorello89 Jul 10, 2023
2ca24ca
trying release with universal
slorello89 Jul 10, 2023
c0c856f
Releasing version 0.0.3
slorello89 Jul 10, 2023
56f27bf
adding bootJar
slorello89 Jul 10, 2023
a1353cd
Releasing version 0.0.3
slorello89 Jul 10, 2023
e909c34
lib only
slorello89 Jul 10, 2023
df0946d
Releasing version 0.0.3
slorello89 Jul 10, 2023
c873f96
zipping
slorello89 Jul 10, 2023
bf72f66
Releasing version 0.0.3
slorello89 Jul 10, 2023
1b351c4
reording zip
slorello89 Jul 10, 2023
2d9c1fd
Releasing version 0.0.3
slorello89 Jul 10, 2023
56e099f
changing name
slorello89 Jul 10, 2023
9a28bb3
Releasing version 0.0.3
slorello89 Jul 10, 2023
414e55c
fixing names and paths
slorello89 Jul 10, 2023
2a1b4c6
Releasing version 0.0.3
slorello89 Jul 10, 2023
8a7f997
removing native bits for time considerations
slorello89 Jul 10, 2023
4aa4a36
Releasing version 0.0.3
slorello89 Jul 10, 2023
6ea77c3
bump
slorello89 Jul 10, 2023
ebe4b81
Releasing version 0.0.3
slorello89 Jul 10, 2023
40aaaaa
readding native
slorello89 Jul 10, 2023
0ef4809
Releasing version 0.0.4
slorello89 Jul 10, 2023
9e20afa
adding native back
slorello89 Jul 10, 2023
f0598e0
Releasing version 0.0.5
slorello89 Jul 10, 2023
652a220
fixing path
slorello89 Jul 10, 2023
0a4d3fa
Releasing version 0.0.5
slorello89 Jul 10, 2023
03deed6
bump
slorello89 Jul 10, 2023
b0288da
Releasing version 0.0.5
slorello89 Jul 10, 2023
bab3a91
docker
slorello89 Jul 11, 2023
2048461
Releasing version 0
slorello89 Jul 11, 2023
98e89d0
fixing version
slorello89 Jul 11, 2023
ce7c29d
Releasing version 0.0.6
slorello89 Jul 11, 2023
5962128
adding docker token
slorello89 Jul 11, 2023
d2a31ed
docker token and removing native to speed up testing
slorello89 Jul 11, 2023
b49c157
Releasing version 0.0.6
slorello89 Jul 11, 2023
0c43ddf
using applicaiton plugin
slorello89 Jul 11, 2023
c483ed8
Releasing version 0.0.6
slorello89 Jul 11, 2023
d477d00
brew
slorello89 Jul 11, 2023
937fe27
Releasing version 0.0.6
slorello89 Jul 11, 2023
0b0a229
various other release platforms
slorello89 Jul 11, 2023
6947d75
Releasing version 0.0.7
slorello89 Jul 11, 2023
55b3dcb
adding back native image
slorello89 Jul 11, 2023
296b6ce
adding back native build
slorello89 Jul 11, 2023
2f509df
Releasing version 0.0.8
slorello89 Jul 11, 2023
01d44e4
cleaning up some issues
slorello89 Jul 11, 2023
79d34d3
make-rule and doc updates
slorello89 Jul 12, 2023
7c48ed0
Releasing version 0.0.9
slorello89 Jul 12, 2023
ffe34be
adding config reset
slorello89 Jul 20, 2023
fb45ebb
adding ability to clear metrics
slorello89 Jul 21, 2023
0a4d828
moving out of transaction
slorello89 Jul 21, 2023
e542c4f
Releasing version 0.0.10
slorello89 Jul 24, 2023
f9cec6f
fix: Extracted inner interface
jruaux Jul 24, 2023
896b95e
chore: git-ignore Eclipse project files
jruaux Jul 24, 2023
72a6277
style: Cleaned-up imports
jruaux Jul 24, 2023
23e617f
fix: QueryInfo `count` parsing
jruaux Jul 24, 2023
e95abe9
Merge pull request #3 from jruaux/main
slorello89 Jul 25, 2023
1a87dd5
Releasing version 0.0.11
slorello89 Jul 25, 2023
eb546d1
CLI interface edits
banker Jul 31, 2023
4fc662b
Merge pull request #4 from banker/cli-edits
slorello89 Aug 1, 2023
d3290f1
Releasing version 0.0.12
slorello89 Aug 1, 2023
c562df7
* -> All Queries
slorello89 Aug 21, 2023
8c8ba2f
Better error handling when cannot talk to Redis
slorello89 Aug 21, 2023
eabe9ed
Releasing version 0.0.13
slorello89 Aug 21, 2023
7758e05
Releasing version 0.0.14
slorello89 Aug 21, 2023
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
Binary file modified .github/images/list-queries.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/images/query-list-table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/images/query-rule-dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/images/rule-creation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/images/rule-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .github/images/table-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions .github/workflows/native-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Native Build
on:
workflow_call:
inputs:
project-version:
required: true
type: string

jobs:
native-build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm'
- name: Native build
run: gradle nativeCompile
- name: Zip
run: compress-archive -Path .\build\native\nativeCompile\smart-cache-cli.exe -Destination smart-cache-cli-native-${{ inputs.project-version }}-windows-x86_64.zip
- name: upload
uses: actions/upload-artifact@v3
with:
retention-days: 1
name: artifacts
path: smart-cache-cli-native-${{ inputs.project-version }}-windows-x86_64.zip
native-build:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm'
- shell: bash
run: |
if [[ ${{ matrix.os }} == 'ubuntu-latest' ]]; then
echo ${{ matrix.os }}
fileName=smart-cache-cli-native-${{ inputs.project-version }}-linux-x86_64.zip
elif [[ ${{ matrix.os }} == 'macos-latest' ]]; then
echo ${{ matrix.os }}
fileName=smart-cache-cli-native-${{ inputs.project-version }}-osx-x86_64.zip
fi
- name: Native build
run: gradle nativeCompile
- name: zip
shell: bash
run: |
if [[ ${{ matrix.os }} == 'ubuntu-latest' ]]; then
fileName=smart-cache-cli-native-${{ inputs.project-version }}-linux-x86_64.zip
zip -j $fileName build/native/nativeCompile/smart-cache-cli
elif [[ ${{ matrix.os }} == 'macos-latest' ]]; then
fileName=smart-cache-cli-native-${{ inputs.project-version }}-osx-x86_64.zip
zip -j $fileName build/native/nativeCompile/smart-cache-cli
fi
- name: upload
uses: actions/upload-artifact@v3
with:
retention-days: 5
name: artifacts
path: smart-cache-cli-native-*.zip
72 changes: 72 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Release

on:
workflow_dispatch:
inputs:
version:
description: 'Release Version'
required: true

permissions:
actions: write
id-token: write
contents: write

jobs:
precheck:
name: Precheck
runs-on: ubuntu-latest
outputs:
version: ${{ steps.vars.outputs.VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Version
id: vars
shell: bash
run: |
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
echo ${{ github.event.inputs.version }} > VERSION
git add VERSION
sed -i -e "s/^\:project-version\:\ .*/:project-version: ${{ github.event.inputs.version }}/g" README.adoc
git config --global user.email "${{ secrets.COMMIT_EMAIL }}"
git config --global user.name "Steve Lorello"
git commit -a -m "Releasing version ${{ github.event.inputs.version }}"
git push origin main
universal-build:
name: Universal Build
needs: [ precheck ]
uses: slorello89/redis-smart-cache-cli/.github/workflows/universal.yml@main
with:
project-version: ${{ needs.precheck.outputs.version }}
native-build:
name: Native Build
needs: [precheck]
uses: slorello89/redis-smart-cache-cli/.github/workflows/native-build.yml@main
with:
project-version: ${{ needs.precheck.outputs.version }}
release:
name: Release
needs: [precheck, universal-build, native-build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: artifacts
- name: Download universal
uses: actions/download-artifact@v3
with:
name: universal
- run: ls -l
- name: Release
uses: jreleaser/release-action@v2
with:
version: early-access
arguments: full-release
env:
JRELEASER_PROJECT_VERSION: ${{ needs.precheck.outputs.version }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }}
JRELEASER_DOCKER_DEFAULT_PASSWORD: ${{ secrets.JRELEASER_DOCKER_PASSWORD }}
27 changes: 27 additions & 0 deletions .github/workflows/universal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Universal Build
on:
workflow_call:
inputs:
project-version:
required: true
type: string
jobs:
build-universal:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm'
- name: build
run: gradle -Prelease=true -PreproducibleBuild=true -Pversion=${{ inputs.project-version }} build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
retention-days: 5
name: universal
path: |
build/libs/
build/distributions/
LICENSE
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ redis-smartcache-bubbletea
rsccli
smart-cache-cli
dist/
.gradle
build
spring-shell.log
out
artifacts
universal.zip
.classpath
.project
.settings
46 changes: 0 additions & 46 deletions .goreleaser.yaml

This file was deleted.

99 changes: 0 additions & 99 deletions BulkUpdateConfirmation/BulkUpdateConfirmation.go

This file was deleted.

Loading