Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
7ec4f0c
build: Removed using gradle
sh1sh4k1n9 Aug 15, 2025
529cb4a
build: Added using maven
sh1sh4k1n9 Aug 15, 2025
e3a5409
build: Updated git files
sh1sh4k1n9 Aug 15, 2025
3d0edf8
feat: Removed useless files
sh1sh4k1n9 Aug 17, 2025
ca2b863
config: Updated gitignore
sh1sh4k1n9 Aug 17, 2025
2e54cf9
feat: Updated ApiKey entity classes
sh1sh4k1n9 Aug 17, 2025
5d1fc09
config: Updated run configuration
sh1sh4k1n9 Aug 17, 2025
7c0c3e0
build: Added core-ui to dependency
sh1sh4k1n9 Aug 17, 2025
ac70d06
feat: Updated classes
sh1sh4k1n9 Aug 17, 2025
8daac11
feat: Removed legacy files
sh1sh4k1n9 Aug 17, 2025
813f2c8
feat: moved balancer to java API and new proto
ch3zych3z Aug 18, 2025
86b1cf9
chore: removed unused imports
ch3zych3z Aug 18, 2025
dd423ad
feat: Removed legacy files
sh1sh4k1n9 Aug 18, 2025
c913bc7
feat: Added core (temporary)
sh1sh4k1n9 Aug 18, 2025
0c79ee3
fix: fixed getStatus communication error handling
ch3zych3z Aug 18, 2025
d31c8c4
feat: Removed old classes
sh1sh4k1n9 Aug 18, 2025
f629dff
feat: Moved core
sh1sh4k1n9 Aug 18, 2025
a175009
feat: Updated dependencies
sh1sh4k1n9 Aug 18, 2025
8f3f3fd
feat: Removed useless files
sh1sh4k1n9 Aug 18, 2025
d55b0ba
feat: Added classes for tokens
sh1sh4k1n9 Aug 18, 2025
652802f
feat: Removed useless classes
sh1sh4k1n9 Aug 18, 2025
7360f93
feat: Added classes for userGroups
sh1sh4k1n9 Aug 18, 2025
dee80a9
feat: Removed useless classes
sh1sh4k1n9 Aug 18, 2025
302e176
chore: Refactored
sh1sh4k1n9 Aug 18, 2025
bff9f1f
feat: Added Application class
sh1sh4k1n9 Aug 18, 2025
652f8f2
feat: Updated core
sh1sh4k1n9 Aug 18, 2025
55c4a19
feat: Updated user entity
sh1sh4k1n9 Aug 18, 2025
1802198
feat: Added student group entity classes
sh1sh4k1n9 Aug 18, 2025
f359158
feat: Removed useless classes
sh1sh4k1n9 Aug 18, 2025
48198f0
feat: Uodated entities
sh1sh4k1n9 Aug 18, 2025
2aa151c
feat: Updated utils
sh1sh4k1n9 Aug 18, 2025
60208d5
feat: Commented rest controllers
sh1sh4k1n9 Aug 18, 2025
a92557f
feat: Updated classes
sh1sh4k1n9 Aug 18, 2025
d34280f
feat: Commented temporarily
sh1sh4k1n9 Aug 18, 2025
521813d
feat: Removed
sh1sh4k1n9 Aug 18, 2025
0423bab
feat: Commented
sh1sh4k1n9 Aug 18, 2025
cf0a1bd
feat: Removed
sh1sh4k1n9 Aug 18, 2025
e66a10c
feat: Updated
sh1sh4k1n9 Aug 18, 2025
0b1704b
feat: Added super user features
sh1sh4k1n9 Aug 18, 2025
b8b2a90
feat: Updated
sh1sh4k1n9 Aug 18, 2025
0fab654
feat: added proper types for submission grading error kinds
ch3zych3z Aug 18, 2025
960d3e5
feat: Added main pagess
sh1sh4k1n9 Aug 19, 2025
11927aa
feat: Updated deps
sh1sh4k1n9 Aug 19, 2025
73ddc55
feat: Updated pages
sh1sh4k1n9 Aug 19, 2025
6d45670
feat: Updated services
sh1sh4k1n9 Aug 19, 2025
3b8a0b0
feat: Added classes for dtos
sh1sh4k1n9 Aug 19, 2025
b08d652
feat: Updated pages
sh1sh4k1n9 Aug 19, 2025
f3a582b
feat: Updated classes
sh1sh4k1n9 Aug 19, 2025
3d03de6
feat: Updated controller
sh1sh4k1n9 Aug 19, 2025
146b649
feat: Updated controller
sh1sh4k1n9 Aug 19, 2025
7842392
feat: Updated classes
sh1sh4k1n9 Aug 19, 2025
8c5c715
feat: Added views for Viewer
sh1sh4k1n9 Aug 19, 2025
218550c
feat: Added views for Admin
sh1sh4k1n9 Aug 19, 2025
951a917
feat: Removed useless classes
sh1sh4k1n9 Aug 19, 2025
2433ba8
feat: Updated pages
sh1sh4k1n9 Aug 19, 2025
464dc6b
feat: Updated services
sh1sh4k1n9 Aug 19, 2025
75bc29c
feat: Refactored
sh1sh4k1n9 Aug 19, 2025
c8d489d
feat: Updated service
sh1sh4k1n9 Aug 19, 2025
fa68b2a
feat: Updated controller
sh1sh4k1n9 Aug 19, 2025
683fc8b
feat: Updated user service
sh1sh4k1n9 Aug 19, 2025
7dfe9c1
feat: Updated viewer service
sh1sh4k1n9 Aug 19, 2025
3edf54b
feat: Updated services
sh1sh4k1n9 Aug 19, 2025
38a06dc
feat: Updated services
sh1sh4k1n9 Aug 19, 2025
3e5a193
feat: Updated controllers
sh1sh4k1n9 Aug 19, 2025
f471223
feat: Updated controllers
sh1sh4k1n9 Aug 19, 2025
3a6f845
feat: Moved
sh1sh4k1n9 Aug 19, 2025
e6761e7
feat: Updated styles
sh1sh4k1n9 Aug 19, 2025
513891f
feat: Added classes for GROUP_ADMIN
sh1sh4k1n9 Aug 19, 2025
6546bda
feat: Updated user page
sh1sh4k1n9 Aug 19, 2025
0421d6f
feat: Refactored
sh1sh4k1n9 Aug 19, 2025
d3514e2
feat: Added super classes
sh1sh4k1n9 Aug 19, 2025
859cd0c
feat: Updated user pages
sh1sh4k1n9 Aug 19, 2025
e20e9c5
feat: Updated gitignore
sh1sh4k1n9 Aug 19, 2025
29b4d4f
feat: Updated user groups
sh1sh4k1n9 Aug 19, 2025
12d55fa
feat: Updated user controller
sh1sh4k1n9 Aug 19, 2025
e406f7a
feat: Refactored
sh1sh4k1n9 Aug 19, 2025
1194a4f
feat: Removed useless classes
sh1sh4k1n9 Aug 19, 2025
a3ef41b
feat: Updated privilege rendering
sh1sh4k1n9 Aug 19, 2025
4595b70
feat: Added super user creator runner
sh1sh4k1n9 Aug 19, 2025
ea7b079
feat: Updated
sh1sh4k1n9 Aug 20, 2025
673c85f
feat: Updated group managing
sh1sh4k1n9 Aug 20, 2025
4873d10
feat: Added contest classes
sh1sh4k1n9 Aug 20, 2025
df89b1a
feat: Updated startup runners
sh1sh4k1n9 Aug 20, 2025
a417eb3
feat: Removed
sh1sh4k1n9 Aug 20, 2025
5f920fa
feat: Updated
sh1sh4k1n9 Aug 20, 2025
1ef13c6
feat: Added notifier classes
sh1sh4k1n9 Aug 20, 2025
7fa28a3
feat: Updated
sh1sh4k1n9 Aug 20, 2025
ba63471
feat: Updated page
sh1sh4k1n9 Aug 20, 2025
3da332f
feat: Added contests creation classes
sh1sh4k1n9 Aug 20, 2025
3bdbe9c
feat: Refactored
sh1sh4k1n9 Aug 20, 2025
de13635
feat: Updated
sh1sh4k1n9 Aug 20, 2025
eb22ba0
feat: Updated
sh1sh4k1n9 Aug 20, 2025
4d4eb10
feat: Removed useless pages
sh1sh4k1n9 Aug 20, 2025
e95c5ce
feat: Updated
sh1sh4k1n9 Aug 20, 2025
2a86ff1
feat: Updated
sh1sh4k1n9 Aug 20, 2025
3adcda1
feat: Removed useless
sh1sh4k1n9 Aug 20, 2025
49ea659
feat: Added new entities
sh1sh4k1n9 Aug 20, 2025
779512f
feat: Updated
sh1sh4k1n9 Aug 20, 2025
7de9ce6
feat: Updated user page
sh1sh4k1n9 Aug 20, 2025
7279585
feat: Refactored page
sh1sh4k1n9 Aug 20, 2025
025c9e5
feat: Updated generating students
sh1sh4k1n9 Aug 20, 2025
be20bda
feat: Added autoadding to group
sh1sh4k1n9 Aug 20, 2025
eb88113
feat: Added taskFile and task classes
sh1sh4k1n9 Aug 20, 2025
5462795
feat: Updated create/edit taskTemplate
sh1sh4k1n9 Aug 20, 2025
7ee8ff5
feat: Updated create/edit pages
sh1sh4k1n9 Aug 20, 2025
d4f288b
feat: Added taskFile entity
sh1sh4k1n9 Aug 20, 2025
0018409
feat: Updated properties
sh1sh4k1n9 Aug 20, 2025
e231473
feat: Commented TaskTemplate classes
sh1sh4k1n9 Aug 20, 2025
cad58b9
feat: Removed useless files
sh1sh4k1n9 Aug 20, 2025
350874b
feat: Commented
sh1sh4k1n9 Aug 20, 2025
c3cebca
feat: Updated taskFile working
sh1sh4k1n9 Aug 20, 2025
64ac41d
feat: Updated task file page
sh1sh4k1n9 Aug 20, 2025
000a79e
feat: Updated task file managing
sh1sh4k1n9 Aug 20, 2025
9c48898
feat: Updated task
sh1sh4k1n9 Aug 20, 2025
59ec925
feat: Updated task working with contests
sh1sh4k1n9 Aug 20, 2025
e1430ea
feat: Refactoring 1
sh1sh4k1n9 Aug 20, 2025
1bc8faa
feat: Updated styles
sh1sh4k1n9 Aug 20, 2025
2b17631
feat: Updated table styles
sh1sh4k1n9 Aug 20, 2025
8a4d42c
feat: Updated styles
sh1sh4k1n9 Aug 21, 2025
badd5e8
feat: Updated layout
sh1sh4k1n9 Aug 21, 2025
2db9ea5
feat: Updated working with tasks
sh1sh4k1n9 Aug 21, 2025
b1110be
feat: Updated contest page
sh1sh4k1n9 Aug 21, 2025
d9267f2
feat: Updated task pages
sh1sh4k1n9 Aug 21, 2025
742b066
feat: Split DeveloperContestController to 3
sh1sh4k1n9 Aug 21, 2025
dd8f88b
feat: Refactored
sh1sh4k1n9 Aug 21, 2025
03c1ba1
feat: Updated
sh1sh4k1n9 Aug 21, 2025
4b56079
Merge remote-tracking branch 'origin/balancer-rebalanced' into next-m…
sh1sh4k1n9 Aug 21, 2025
cbb3a0e
feat: Updated grading classes
sh1sh4k1n9 Aug 21, 2025
9317258
feat: moved balancer to java API and new proto
ch3zych3z Aug 18, 2025
62b2a23
chore: removed unused imports
ch3zych3z Aug 18, 2025
6d7fec3
fix: fixed getStatus communication error handling
ch3zych3z Aug 18, 2025
b7f48b2
feat: merged balancer-rebalancer
sh1sh4k1n9 Aug 21, 2025
3dff847
chore: Updated gitignore
sh1sh4k1n9 Aug 21, 2025
b04a43b
chore: Updated
sh1sh4k1n9 Aug 21, 2025
91d4cc1
feat: Updated
sh1sh4k1n9 Aug 21, 2025
7d80a90
feat: Updated
sh1sh4k1n9 Aug 21, 2025
e27ec7d
feat: Updated
sh1sh4k1n9 Aug 21, 2025
880722b
feat: Updated
sh1sh4k1n9 Aug 21, 2025
2b2d380
feat: Updated
sh1sh4k1n9 Aug 21, 2025
57461ad
feat: Updated
sh1sh4k1n9 Aug 21, 2025
8e8c594
feat: Updated working with timezones
sh1sh4k1n9 Aug 23, 2025
4fbb26a
chore: Adding author comments
sh1sh4k1n9 Aug 24, 2025
1f8058f
feat: Updated contest managing
sh1sh4k1n9 Aug 24, 2025
1f65ee7
feat: Updated token services
sh1sh4k1n9 Aug 24, 2025
cfbd791
feat: Updated user group administrating
sh1sh4k1n9 Aug 24, 2025
398af3e
feat: Updated solution statuses
sh1sh4k1n9 Aug 24, 2025
72890d4
feat: Updated super user page
sh1sh4k1n9 Aug 24, 2025
62a676f
feat: Updated group admin controller
sh1sh4k1n9 Aug 24, 2025
8773574
feat: Updated user pages
sh1sh4k1n9 Aug 24, 2025
8f30b0f
feat: Updated styles
sh1sh4k1n9 Aug 24, 2025
e2d02cc
feat: Updated styles
sh1sh4k1n9 Aug 24, 2025
3f8b728
feat: Refactored
sh1sh4k1n9 Aug 24, 2025
6ac906e
feat: Updated results generating
sh1sh4k1n9 Aug 24, 2025
4f71147
feat: Added judge controller
sh1sh4k1n9 Aug 24, 2025
06505fb
feat: Updated judge controller
sh1sh4k1n9 Aug 24, 2025
0b62bb6
feat: Updated styles
sh1sh4k1n9 Aug 24, 2025
38827e7
feat: Updated styles
sh1sh4k1n9 Aug 24, 2025
74c4799
feat: Updated generating super user
sh1sh4k1n9 Aug 24, 2025
c34f0be
feat: Updated
sh1sh4k1n9 Aug 25, 2025
b52e05f
feat: Updated
sh1sh4k1n9 Aug 25, 2025
e51cafc
feat: Added new solution statuses
sh1sh4k1n9 Aug 28, 2025
09fea5d
feat: Added logging for sendToGrade
sh1sh4k1n9 Aug 28, 2025
9a8c878
feat: Added downloading taskFile versions with original names
sh1sh4k1n9 Aug 28, 2025
236c414
feat: Updated downloading exercise/condition thought student controller
sh1sh4k1n9 Aug 28, 2025
ef2d358
feat: Added possibility to rename taskFiles
sh1sh4k1n9 Aug 28, 2025
0a68ff8
feat: Added possibility to remove taskFiles
sh1sh4k1n9 Aug 28, 2025
9e08a5f
feat: Added validating taskFile extensions
sh1sh4k1n9 Aug 28, 2025
bfb13b3
feat: Added student group tokens generating
sh1sh4k1n9 Aug 28, 2025
2250939
feat: Added registration to student groups via student group tokens
sh1sh4k1n9 Aug 28, 2025
e17c5b0
feat: Updated styles
sh1sh4k1n9 Aug 30, 2025
9c86159
fix: Fixed visibility for user accessTokens on userGroup page
sh1sh4k1n9 Sep 1, 2025
09b5ae5
fix: Added ability to remove users
sh1sh4k1n9 Sep 1, 2025
f9c9d7a
fix: Added ability to detach contests from student groups
sh1sh4k1n9 Sep 1, 2025
62cb1f5
fix: Refactored
sh1sh4k1n9 Sep 1, 2025
fb790e6
fix: Added ability to remove task/contest
sh1sh4k1n9 Sep 1, 2025
d7104aa
fix: Added ability to specify task order in contest
sh1sh4k1n9 Sep 1, 2025
d6d0e72
fix: fixed
sh1sh4k1n9 Sep 1, 2025
68bae4d
fix: fixed
sh1sh4k1n9 Sep 1, 2025
11de961
fix: Refactored
sh1sh4k1n9 Sep 2, 2025
87851b8
feat: Added info links to each subsection
sh1sh4k1n9 Sep 4, 2025
a561da0
feat: Added info link in header
sh1sh4k1n9 Sep 5, 2025
4df8fe2
fix: Fixed result csv
sh1sh4k1n9 Sep 24, 2025
d38caf8
fix: Fixed available tasks viewing
sh1sh4k1n9 Sep 24, 2025
abf611a
feat: Updated GroupAdminController
sh1sh4k1n9 Sep 24, 2025
12a415f
feat: Some refactoring
sh1sh4k1n9 Sep 24, 2025
c345102
fix: Fixed user group members field
sh1sh4k1n9 Oct 1, 2025
3888c8a
fix: Fixed empty contests showing
sh1sh4k1n9 Oct 1, 2025
230f05f
feat: Supported py/js solution types
sh1sh4k1n9 Oct 6, 2025
df6410b
chore: Changed user creation note
sh1sh4k1n9 Oct 10, 2025
d6e1e59
feat: Added new file entities
sh1sh4k1n9 Oct 10, 2025
b9785ec
feat: Created migrator (remove later)
sh1sh4k1n9 Oct 11, 2025
f6f09e4
feat: Updated entities
sh1sh4k1n9 Oct 11, 2025
31c82ca
feat: Added pages for saving new file entities
sh1sh4k1n9 Oct 11, 2025
cef4138
feat: Finished new files form migration
sh1sh4k1n9 Oct 11, 2025
66ef47a
feat: Added ability to work with new files on task page
sh1sh4k1n9 Oct 11, 2025
fa795b8
feat: Updated migrator
sh1sh4k1n9 Oct 11, 2025
d3393c6
feat: Updated
sh1sh4k1n9 Oct 11, 2025
215f431
feat: Updated
sh1sh4k1n9 Oct 11, 2025
bfc397f
feat: Added changing solutionFile scores
sh1sh4k1n9 Oct 11, 2025
be456c7
feat: Refactored
sh1sh4k1n9 Oct 11, 2025
48cb96c
fix: Small fixes
sh1sh4k1n9 Oct 11, 2025
7367d67
fix: Updated changing task testing status
sh1sh4k1n9 Oct 20, 2025
dc22807
fix: Fixed sending solutions to grade
sh1sh4k1n9 Oct 26, 2025
4ad6ffb
fix: Fixed getting file name
sh1sh4k1n9 Oct 26, 2025
77c4bc9
feat: Added polygon diagnostics
sh1sh4k1n9 Oct 26, 2025
22b70a1
feat: Added github-like popup for dangerous actions
sh1sh4k1n9 Oct 26, 2025
21c2bfb
chore: Renamed
sh1sh4k1n9 Oct 26, 2025
36e4051
feat: Added attaching email to user
sh1sh4k1n9 Nov 10, 2025
e5dd104
feat: Added new application parameter
sh1sh4k1n9 Feb 18, 2026
04d24c5
feat: add SolutionSpecifications for paginated judge view
sh1sh4k1n9 Feb 18, 2026
6c97760
fix: address code quality issues in SolutionSpecifications
sh1sh4k1n9 Feb 18, 2026
ff98619
feat: add findStudentSolutionsPage to SolutionService
sh1sh4k1n9 Feb 18, 2026
1c8824d
feat: refactor solutionsPage to accept filter params and paginate
sh1sh4k1n9 Feb 18, 2026
dc79b39
feat: update solutions template with filter form and pagination
sh1sh4k1n9 Feb 18, 2026
22efe9a
fix: add null guards to solutions template
sh1sh4k1n9 Feb 18, 2026
7dc1162
feat: Updated table filtering
sh1sh4k1n9 Feb 18, 2026
7010063
fix: use DB-level filter for judge solutions; cap page size to constant
sh1sh4k1n9 Feb 18, 2026
14b58a6
feat: add smart pagination with first/prev/next/last buttons and elli…
sh1sh4k1n9 Feb 18, 2026
c66d629
config: add trik.testsys.paths.sponsorship property
sh1sh4k1n9 Feb 18, 2026
b8112d6
feat: add SponsorshipService to list images from configured directory
sh1sh4k1n9 Feb 18, 2026
f95f301
feat: serve /sponsorship/** from configured filesystem directory
sh1sh4k1n9 Feb 18, 2026
441773e
feat: add sponsorshipImages model attribute to public pages
sh1sh4k1n9 Feb 18, 2026
e4951a6
feat: update sponsor-logos fragment to use sponsorshipImages model at…
sh1sh4k1n9 Feb 18, 2026
6508616
feat: add .sponsorship-block fixed-position CSS style
sh1sh4k1n9 Feb 18, 2026
9699e87
feat: add sponsorship block to public pages (bottom-right)
sh1sh4k1n9 Feb 18, 2026
7957282
fix: address code review findings in sponsorship block
sh1sh4k1n9 Feb 18, 2026
9c3d4ce
test: add case-insensitive extension test for SponsorshipService
sh1sh4k1n9 Feb 19, 2026
acad8ff
fix: Fixed solution default status
sh1sh4k1n9 Feb 19, 2026
06277d8
feat: redesign sponsorship block with card layout, title, and robust …
sh1sh4k1n9 Feb 19, 2026
868842f
fix: update github actions - fix deprecated distributions, outdated v…
sh1sh4k1n9 Feb 19, 2026
30078d1
feat: migrate CI from Gradle to Maven
sh1sh4k1n9 Feb 19, 2026
e7cecfc
fix: add jacoco-maven-plugin to generate coverage report in CI
sh1sh4k1n9 Feb 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/mvnw text eol=lf
*.cmd text eol=crlf
32 changes: 16 additions & 16 deletions .github/actions/create-branches/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ runs:
- name: Create branches
shell: bash
run: |
git checkout ${{ env.BRANCH_NAME }}
if [[ ${{ env.BRANCH_NAME }} == "master" ]]; then
git checkout -b "patch/${{ env.PATCH_VERSION }}"
./.github/scripts/update-project-version.sh "patch/${{ env.PATCH_VERSION }}" "${{ env.PATCH_VERSION }}-patch" ${{ inputs.github-token }} ${{ github.repository }}
git checkout -b "release/${{ env.VERSION }}" "patch/${{ env.PATCH_VERSION }}"
./.github/scripts/update-project-version.sh "release/${{ env.VERSION }}" "${{ env.VERSION }}-release" ${{ inputs.github-token }} ${{ github.repository }}
./.github/scripts/update-project-version.sh "patch/${{ env.PATCH_VERSION }}" "${{ env.NEXT_PATCH_VERSION }}-snapshot" ${{ inputs.github-token }} ${{ github.repository }}
./.github/scripts/update-project-version.sh ${{ env.BRANCH_NAME }} "${{ env.NEXT_MINOR_VERSION }}-snapshot" ${{ inputs.github-token }} ${{ github.repository }}
git checkout "$BRANCH_NAME"

if [[ "$BRANCH_NAME" == "master" ]]; then
git checkout -b "patch/$PATCH_VERSION"
./.github/scripts/update-project-version.sh "patch/$PATCH_VERSION" "$PATCH_VERSION-patch" ${{ inputs.github-token }} ${{ github.repository }}

git checkout -b "release/$VERSION" "patch/$PATCH_VERSION"

./.github/scripts/update-project-version.sh "release/$VERSION" "$VERSION-release" ${{ inputs.github-token }} ${{ github.repository }}
./.github/scripts/update-project-version.sh "patch/$PATCH_VERSION" "$NEXT_PATCH_VERSION-snapshot" ${{ inputs.github-token }} ${{ github.repository }}
./.github/scripts/update-project-version.sh "$BRANCH_NAME" "$NEXT_MINOR_VERSION-snapshot" ${{ inputs.github-token }} ${{ github.repository }}
else
git checkout -b "release/${{ env.VERSION }}"
./.github/scripts/update-project-version.sh "release/${{ env.VERSION }}" "${{ env.VERSION }}-release" ${{ inputs.github-token }} ${{ github.repository }}
./.github/scripts/update-project-version.sh ${{ env.BRANCH_NAME }} "${{ env.NEXT_PATCH_VERSION }}-snapshot" ${{ inputs.github-token }} ${{ github.repository }}
git checkout -b "release/$VERSION"

./.github/scripts/update-project-version.sh "release/$VERSION" "$VERSION-release" ${{ inputs.github-token }} ${{ github.repository }}
./.github/scripts/update-project-version.sh "$BRANCH_NAME" "$NEXT_PATCH_VERSION-snapshot" ${{ inputs.github-token }} ${{ github.repository }}
fi

git tag -f ${{ github.event.release.tag_name }} "release/${{ env.VERSION }}"
git tag -f ${{ github.event.release.tag_name }} "release/$VERSION"
git push --tags -f
49 changes: 0 additions & 49 deletions .github/actions/execute-gradle/action.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/actions/execute-maven/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Execute Maven
description: Executes Maven commands
inputs:
distribution:
description: 'The distribution of Java to use'
required: false
default: 'semeru'
java-version:
description: 'The version of Java to use'
required: false
default: '17'
architecture:
description: 'The architecture of the Java version'
required: false
default: 'x64'
maven-commands:
description: 'The Maven commands to run'
required: false
default: 'verify'

runs:
using: 'composite'
steps:
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: '${{ inputs.distribution }}'
java-version: '${{ inputs.java-version }}'
architecture: '${{ inputs.architecture }}'

- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven

- name: Execute Maven commands
shell: bash
run: ./mvnw --no-transfer-progress ${{ inputs.maven-commands }}
4 changes: 2 additions & 2 deletions .github/actions/extract-branch/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ runs:
- name: Extract branch name
shell: bash
run: |
if [[ ${{ env.VERSION }} =~ ^[0-9]+\.[0-9]+\.0$ ]]; then
if [[ $VERSION =~ ^[0-9]+\.[0-9]+\.0$ ]]; then
BRANCH_NAME=master
else
BRANCH_NAME="patch/${{ env.PATCH_VERSION }}"
BRANCH_NAME="patch/$PATCH_VERSION"
fi
echo "BRANCH_NAME=$BRANCH_NAME" >> "$GITHUB_ENV"

Expand Down
4 changes: 2 additions & 2 deletions .github/actions/extract-version/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Configure Git
description: Adds the necessary configurations to Git
name: Extract Version
description: Extracts version information from the release tag

runs:
using: 'composite'
Expand Down
11 changes: 6 additions & 5 deletions .github/actions/publish-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
uses: docker/setup-buildx-action@v3

- name: Log into registry ${{ inputs.registry }}
uses: docker/login-action@v3.0.0
uses: docker/login-action@v3
with:
registry: ${{ inputs.registry }}
username: ${{ github.actor }}
Expand All @@ -63,17 +63,18 @@ runs:
# tags:
# sep-tags: ','

- name: Build bootJar
uses: ./.github/actions/execute-gradle
- name: Build package
uses: ./.github/actions/execute-maven
with:
gradle-commands: ':bootJar'
maven-commands: 'clean package -DskipTests'

- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: 'true'
build-args: VERSION=${{ env.VERSION }}-release
tags: |
${{ inputs.registry }}/${{ inputs.image-name }}:${{ env.VERSION }}
${{ inputs.registry }}/${{ inputs.image-name }}:${{ env.LATEST_TAG }}
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/update-versions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ runs:
- name: Replace version
if: steps.get-files.outputs.exit_code == 0
shell: bash
run: find ./src -type f -exec sed -i "s/%CURRENT_VERSION%/${{ env.VERSION }}/g" {} +
run: find ./src -type f -exec sed -i "s/%CURRENT_VERSION%/$VERSION/g" {} +

- name: Commit and push changes
if: steps.get-files.outputs.exit_code == 0
shell: bash
run: |
git checkout ${{ env.BRANCH_NAME }}
git checkout "$BRANCH_NAME"
git add ./src
git commit -m "release: Update version to ${{ env.VERSION }}"
git push https://x-access-token:${{ inputs.github-token }}@github.com/${{ github.repository }}.git ${{ env.BRANCH_NAME }}
git commit -m "release: Update version to $VERSION"
git push https://x-access-token:${{ inputs.github-token }}@github.com/${{ github.repository }}.git "$BRANCH_NAME"

- name: Log change files
shell: bash
Expand Down
29 changes: 0 additions & 29 deletions .github/mergify.yml

This file was deleted.

7 changes: 3 additions & 4 deletions .github/scripts/update-project-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ echo -e "\n\e[32mUpdating project version to $2 in branch $1\e[0m\n"

git checkout "$1"

sed -i "s/version = \"[0-9.]*-[a-z]*\"/version = \"$2\"/" build.gradle.kts
sed -i "s/ARG VERSION=[0-9.]*-[a-z]*/ARG VERSION=$2/" Dockerfile
./mvnw --no-transfer-progress versions:set -DnewVersion="$2" -DgenerateBackupPoms=false

git add build.gradle.kts Dockerfile
git add pom.xml
git commit -m "release: Update project version to $2"
git push https://x-access-token:"$3"@github.com/"$4".git "$1"
git push https://x-access-token:"$3"@github.com/"$4".git "$1"
12 changes: 6 additions & 6 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
submodules: recursive

- name: Build
uses: ./.github/actions/execute-gradle
uses: ./.github/actions/execute-maven
with:
gradle-commands: ':clean :assemble'
maven-commands: 'clean package -DskipTests'

test:
runs-on: ubuntu-latest
Expand All @@ -28,17 +28,17 @@ jobs:
submodules: recursive

- name: Test
uses: ./.github/actions/execute-gradle
uses: ./.github/actions/execute-maven
with:
gradle-commands: ':clean :test --stacktrace'
maven-commands: 'clean test'

- name: JaCoCo Coverage Report
env:
report_path: build/jacoco/report.csv
report_path: target/site/jacoco/jacoco.csv
run: |
awk -F"," '{ instructions += $4 + $5; covered += $5; branches += $6 + $7; branches_covered +=$7 } END { print "Instructions covered:", covered"/"instructions, "--", 100*covered/instructions"%"; print "Branches covered:", branches_covered"/"branches, "--", 100*branches_covered/branches"%" }' $report_path

- uses: actions/upload-artifact@v4
with:
name: test-and-coverage-reports
path: build/reports
path: target/surefire-reports
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
submodules: recursive

- name: Build
uses: ./.github/actions/execute-gradle
uses: ./.github/actions/execute-maven
with:
gradle-commands: 'build'
maven-commands: 'clean package -DskipTests'

- name: Rollback release
if: ${{ failure() || cancelled() }}
Expand All @@ -38,9 +38,9 @@ jobs:
submodules: recursive

- name: Test
uses: ./.github/actions/execute-gradle
uses: ./.github/actions/execute-maven
with:
gradle-commands: 'test'
maven-commands: 'test'

- name: Rollback release
if: ${{ failure() || cancelled() }}
Expand Down
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,17 @@ gradle-app.setting
*.gz

# Demo application data
demo/
demo/

HELP.md
target/
.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
*.iml

data/**

amplicode.xml
.env
/.vscode/settings.json
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

19 changes: 0 additions & 19 deletions .idea/runConfigurations/WebApp.xml

This file was deleted.

19 changes: 19 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM openjdk:17-alpine
FROM eclipse-temurin:17
MAINTAINER Roman Shishkin <romashkin.2001@yandex.ru>

#Setting directories args
ARG APP_DIR=web-app
ARG VERSION=2.7.0-snapshot
ARG VERSION
ARG JAR_FILE=target/web-app-${VERSION}.jar
ARG APP=app.jar

#Copying application
WORKDIR /$APP_DIR
ARG JAR_FILE=build/libs/web-app-$VERSION.jar
ARG APP=app.jar
COPY $JAR_FILE $APP

#Running application
EXPOSE 8888
ENTRYPOINT java $JAVA_OPTIONS -jar app.jar
ENTRYPOINT java $JAVA_OPTIONS -jar app.jar
Loading