Skip to content

Commit 7e2841a

Browse files
authored
Merge pull request #182 from doubleSlashde/develop
develop->master v2.0.x
2 parents 019bffd + 8d0cd21 commit 7e2841a

File tree

78 files changed

+5570
-1109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+5570
-1109
lines changed

.github/workflows/mavenCi.yml

Lines changed: 41 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,31 @@ on:
1515
jobs:
1616

1717
build-analyze:
18-
1918
runs-on: ubuntu-latest
2019

2120
env:
22-
version: 1.3.${{ github.run_number }}
21+
version: 2.0.${{ github.run_number }}
2322

2423
steps:
25-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2625

27-
- name: Set up JDK 11
28-
uses: actions/setup-java@v3
26+
- name: Set up JDK 17
27+
uses: actions/setup-java@v4
2928
with:
30-
java-version: '11'
29+
java-version: '17'
3130
distribution: 'corretto'
3231
cache: maven
3332

3433
- name: Initialize CodeQL
35-
uses: github/codeql-action/init@v2
34+
uses: github/codeql-action/init@v3
3635
with:
3736
languages: 'java'
3837

3938
- name: Build
4039
run: mvn -V -B clean package org.jacoco:jacoco-maven-plugin:0.8.7:prepare-agent org.jacoco:jacoco-maven-plugin:0.8.7:report -Pcoverage -Dproject.version=${{ env.version }}-SNAPSHOT
4140

4241
- name: Upload Build Artifact
43-
uses: actions/upload-artifact@v3
42+
uses: actions/upload-artifact@v4
4443
with:
4544
name: KeepTime-${{ env.version }}
4645
path: /home/runner/work/KeepTime/KeepTime/target/*-bin.zip
@@ -49,29 +48,41 @@ jobs:
4948
env:
5049
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5150
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
52-
run: mvn -V -B sonar:sonar
53-
-Dsonar.host.url=${{ secrets.HOST_URL }}
54-
-Dsonar.organization=${{ secrets.ORGANIZATION_NAME }}
55-
-Dsonar.projectKey=${{ secrets.PROJECT_KEY }}
56-
-Dsonar.java.binaries=.
57-
-Dsonar.qualitygate.wait=false
51+
run: mvn -V -B sonar:sonar -Dsonar.host.url=${{ secrets.HOST_URL }} -Dsonar.organization=${{ secrets.ORGANIZATION_NAME }} -Dsonar.projectKey=${{ secrets.PROJECT_KEY }} -Dsonar.java.binaries=. -Dsonar.qualitygate.wait=false
5852

5953
- name: Perform CodeQL Analysis
60-
uses: github/codeql-action/analyze@v2
54+
uses: github/codeql-action/analyze@v3
6155

6256
dependency-check:
63-
64-
runs-on: ubuntu-latest
65-
66-
steps:
67-
- uses: actions/checkout@v3
68-
69-
- name: Set up JDK 11
70-
uses: actions/setup-java@v3
71-
with:
72-
java-version: '11'
73-
distribution: 'corretto'
74-
cache: maven
75-
76-
- name: dependencyCheck
77-
run: mvn dependency-check:check
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Checkout
60+
uses: actions/checkout@v4
61+
- name: Set up JDK 17
62+
uses: actions/setup-java@v4
63+
with:
64+
java-version: '17'
65+
distribution: 'corretto'
66+
cache: maven
67+
- name: Build
68+
run: mvn -V -B clean package
69+
- name: Depcheck
70+
uses: dependency-check/Dependency-Check_Action@main
71+
id: Depcheck
72+
env:
73+
# actions/setup-java@v1 changes JAVA_HOME so it needs to be reset to match the depcheck image
74+
JAVA_HOME: /opt/jdk
75+
with:
76+
project: 'KeepTime'
77+
path: '.'
78+
format: 'HTML'
79+
out: 'reports' # this is the default, no need to specify unless you wish to override it
80+
args: >
81+
--failOnCVSS 8.9
82+
--enableRetired
83+
- name: Upload Test results
84+
if: always()
85+
uses: actions/upload-artifact@v4
86+
with:
87+
name: Depcheck report
88+
path: ${{github.workspace}}/reports

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ logs/
3030

3131
config.xml
3232
/db/
33+
application.properties

README.md

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Create projects and choose if they are counted as 'work time'. Select the projec
3535

3636
## Install
3737

38-
* Download keeptime.bat and keeptime-<version>-bin.zip (see [releases](https://github.com/doubleSlashde/KeepTime/releases))
38+
* Download keeptime-\<version\>.zip (see [releases](https://github.com/doubleSlashde/KeepTime/releases))
3939
* Extract the downloaded .zip
4040
* Try starting the application by executing the *keeptime.bat* file. The start may take up to one minute.
4141

@@ -45,26 +45,34 @@ It is recommended to run the application at computer start, so you do not forget
4545

4646
You should put the .jar in an extra folder as a *logs* and a *db* folder will be created next to it.\
4747

48-
### Migrate from older version than v1.2.0
48+
## Update KeepTime
49+
1. Start your current version of KeepTime
50+
1. Open `Settings` -> `Import/Export` -> `Export` to export your data to an .sql file (Backup data)
51+
1. Stop KeepTime
52+
1. Download new version of KeepTime and extract it
53+
1. Start new version of KeepTime
54+
1. If your projects are available you are already done. But most likely your projects are missing. In this case follow the [Migrate](#Migrate) chapter
55+
- Missing data is expected behavior with most updates as updates often include database version update which require an import of data
56+
57+
### Migrate data
58+
1. Notice that your old data is not available after an update
59+
1. Open the new version of KeepTime
60+
1. Open `Settings` -> `Import/Export` -> `Import` and import the previously exported .sql file
61+
1. After the import KeepTime closes automatically
62+
1. Start KeepTime
63+
1. Your data is restored in the new version now
64+
65+
### Migrate from version older than v1.2.0
4966

5067
1. Download new version and replace the .jar file.
5168
2. Start new version of KeepTime. Notice that your old data is not available.
5269
3. Stop KeepTime
5370
4. Copy the files (not directories) of directory `db` (next to the .jar file) into `db/1.4.197/` (path now includes the database version).
5471
5. Start KeepTime again. Notice that your data is available again.
5572

56-
### Migrate from KeepTime v1.2.0
57-
58-
1. Start your current version of KeepTime (v1.2.0)
59-
2. Go to the settings and export your KeepTime data
60-
3. Download new version and replace the .jar file.
61-
4. Start new version of KeepTime. Notice that your old data is not available.
62-
5. Open the new version and import the exported sql script
63-
6. After the import KeepTime closes automatically
64-
7. To see the changes just start the new KeepTime again
65-
6673
## Requirements
67-
68-
* Windows 7, 10
69-
* Linux (tested on Ubuntu 18.04)
70-
* Java 11
74+
* Operating System
75+
* Windows 7, 10, 11
76+
* Linux (tested on Ubuntu 18.04)
77+
* Mac (tested on MacBook M2 Pro (ARM based CPU))
78+
* Java >= 17

0 commit comments

Comments
 (0)