Skip to content

Commit ef4b07a

Browse files
committed
removed workaround
1 parent a983ef2 commit ef4b07a

File tree

3 files changed

+55
-64
lines changed

3 files changed

+55
-64
lines changed

pom.xml

Lines changed: 54 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6+
<parent>
7+
<groupId>org.springframework.boot</groupId>
8+
<artifactId>spring-boot-starter-parent</artifactId>
9+
<version>3.0.6</version>
10+
<relativePath />
11+
<!-- lookup parent from repository -->
12+
</parent>
613
<groupId>de.doubleslash</groupId>
714
<artifactId>keeptime</artifactId>
815
<version>2.0.0-SNAPSHOT</version>
9-
<packaging>jar</packaging>
1016

17+
<packaging>jar</packaging>
1118
<name>KeepTime</name>
19+
1220
<description>Time tracker</description>
1321

22+
<organization>
23+
<name>doubleSlash Net-Business GmbH</name>
24+
<url>https://www.doubleslash.de/</url>
25+
</organization>
26+
1427
<licenses>
1528
<license>
1629
<name>GNU General Public License (GPL) version 3.0</name>
@@ -19,18 +32,6 @@
1932
</license>
2033
</licenses>
2134

22-
<organization>
23-
<name>doubleSlash Net-Business GmbH</name>
24-
<url>https://www.doubleslash.de/</url>
25-
</organization>
26-
27-
<parent>
28-
<groupId>org.springframework.boot</groupId>
29-
<artifactId>spring-boot-starter-parent</artifactId>
30-
<version>3.0.6</version>
31-
<relativePath /> <!-- lookup parent from repository -->
32-
</parent>
33-
3435
<properties>
3536
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3637
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -142,39 +143,6 @@
142143
<scope>test</scope>
143144
</dependency>
144145
</dependencies>
145-
<profiles>
146-
<profile>
147-
<id>coverage</id>
148-
<build>
149-
<plugins>
150-
<plugin>
151-
<groupId>org.jacoco</groupId>
152-
<artifactId>jacoco-maven-plugin</artifactId>
153-
<version>0.8.7</version>
154-
<executions>
155-
<execution>
156-
<id>prepare-agent</id>
157-
<goals>
158-
<goal>prepare-agent</goal>
159-
</goals>
160-
</execution>
161-
<execution>
162-
<id>report</id>
163-
<goals>
164-
<goal>report</goal>
165-
</goals>
166-
<configuration>
167-
<formats>
168-
<format>XML</format>
169-
</formats>
170-
</configuration>
171-
</execution>
172-
</executions>
173-
</plugin>
174-
</plugins>
175-
</build>
176-
</profile>
177-
</profiles>
178146
<build>
179147
<plugins>
180148
<plugin>
@@ -229,16 +197,15 @@
229197
<suppressionFile>dependency-check-report_suppressions.xml</suppressionFile>
230198
</configuration>
231199
<executions>
232-
<execution>
233-
<goals>
234-
<goal>check</goal>
235-
</goals>
236-
</execution>
200+
<execution>
201+
<goals>
202+
<goal>check</goal>
203+
</goals>
204+
</execution>
237205
</executions>
238206
</plugin>
239207
</plugins>
240208
</build>
241-
242209
<!-- generate site with mvn site (including dependency check) -->
243210
<reporting>
244211
<plugins>
@@ -264,4 +231,38 @@
264231
</plugin>
265232
</plugins>
266233
</reporting>
234+
235+
<profiles>
236+
<profile>
237+
<id>coverage</id>
238+
<build>
239+
<plugins>
240+
<plugin>
241+
<groupId>org.jacoco</groupId>
242+
<artifactId>jacoco-maven-plugin</artifactId>
243+
<version>0.8.7</version>
244+
<executions>
245+
<execution>
246+
<id>prepare-agent</id>
247+
<goals>
248+
<goal>prepare-agent</goal>
249+
</goals>
250+
</execution>
251+
<execution>
252+
<id>report</id>
253+
<goals>
254+
<goal>report</goal>
255+
</goals>
256+
<configuration>
257+
<formats>
258+
<format>XML</format>
259+
</formats>
260+
</configuration>
261+
</execution>
262+
</executions>
263+
</plugin>
264+
</plugins>
265+
</build>
266+
</profile>
267+
</profiles>
267268
</project>

src/main/java/de/doubleslash/keeptime/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private void initialiseApplication(final Stage primaryStage) throws Exception {
143143
FontProvider.loadFonts();
144144
readSettings();
145145

146-
final List<Work> todaysWorkItems = model.findWorkByStartDateOrderByStartTimeAsc(LocalDate.now());
146+
final List<Work> todaysWorkItems = model.getWorkRepository().findByStartDateOrderByStartTimeAsc(LocalDate.now());
147147

148148
LOG.info("Found {} past work items", todaysWorkItems.size());
149149
model.getPastWorkItems().addAll(todaysWorkItems);

src/main/java/de/doubleslash/keeptime/model/Model.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,4 @@ public SortedList<Work> getSortedPastWorkItems() {
159159
return sortedPastWorkItems;
160160
}
161161

162-
public List<Work> findWorkByStartDateOrderByStartTimeAsc(LocalDate date) {
163-
List<Work> workList = workRepository.findByStartDateOrderByStartTimeAsc(date);
164-
165-
for (final Work work : workList) {
166-
Project project = work.getProject();
167-
LOG.debug("color {} ", project.getColor());
168-
}
169-
return workList;
170-
}
171-
172162
}

0 commit comments

Comments
 (0)