Skip to content

Commit f13c5c9

Browse files
committed
Fixed #183
1 parent 3512c1c commit f13c5c9

File tree

15 files changed

+59
-75
lines changed

15 files changed

+59
-75
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ setenv.cmd
3232
/etc/pom.xml
3333
/src/main/java/org/woehlke/simpleworklist/project/x.txt
3434
/src/main/java/org/woehlke/simpleworklist/task/x.txt
35-
/src/main/java/org/woehlke/simpleworklist/taskstate/x.txt
3635
/src/main/java/org/woehlke/simpleworklist/context/x.txt
3736
/src/main/java/org/woehlke/simpleworklist/error/x.txt
3837
/src/main/java/org/woehlke/simpleworklist/search/x.txt

etc/serialversions/getserialversionid.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ echo %CLASSPATH%
1717
cd target\classes
1818
serialver org.woehlke.simpleworklist.language.Language > ..\..\etc\serialversions.txt
1919
serialver org.woehlke.simpleworklist.task.TaskEnergy >> ..\..\etc\serialversions.txt
20-
serialver org.woehlke.simpleworklist.taskstate.TaskState >> ..\..\etc\serialversions.txt
20+
serialver org.woehlke.simpleworklist.task.TaskState >> ..\..\etc\serialversions.txt
2121
serialver org.woehlke.simpleworklist.task.TaskTime >> ..\..\etc\serialversions.txt
2222
serialver org.woehlke.simpleworklist.user.resetpassword.UserPasswordRecoveryStatus >> ..\..\etc\serialversions.txt
2323
serialver org.woehlke.simpleworklist.user.register.UserRegistrationStatus >> ..\..\etc\serialversions.txt

pom.xml

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
7272
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
7373
<maven-shade-plugin.version>3.2.2</maven-shade-plugin.version>
74-
<maven-site-plugin.version>3.8.2</maven-site-plugin.version>
74+
<maven-site-plugin.version>3.9.0</maven-site-plugin.version>
7575
<maven-source-plugin.version>3.1.0</maven-source-plugin.version>
7676
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
7777
<maven-war-plugin.version>3.2.3</maven-war-plugin.version>
@@ -154,7 +154,6 @@
154154
<scope>import</scope>
155155
</dependency>
156156

157-
158157
<dependency>
159158
<groupId>org.webjars</groupId>
160159
<artifactId>jquery</artifactId>
@@ -286,7 +285,7 @@
286285
<dependency>
287286
<groupId>org.apache.maven.plugins</groupId>
288287
<artifactId>maven-site-plugin</artifactId>
289-
<version>3.9.0</version>
288+
<version>${maven-site-plugin.version}</version>
290289
<type>maven-plugin</type>
291290
</dependency>
292291
<dependency>
@@ -347,8 +346,8 @@
347346
<scope>runtime</scope>
348347
</dependency>
349348
<dependency>
350-
<groupId>org.springframework.boot</groupId>
351-
<artifactId>spring-boot-starter-data-jpa</artifactId>
349+
<groupId>org.springframework.boot</groupId>
350+
<artifactId>spring-boot-starter-data-jpa</artifactId>
352351
</dependency>
353352
<dependency>
354353
<groupId>org.springframework.boot</groupId>
@@ -396,6 +395,22 @@
396395
<artifactId>spring-security-test</artifactId>
397396
<scope>test</scope>
398397
</dependency>
398+
<dependency>
399+
<groupId>org.springframework.security</groupId>
400+
<artifactId>spring-security-core</artifactId>
401+
</dependency>
402+
<dependency>
403+
<groupId>org.springframework.security</groupId>
404+
<artifactId>spring-security-web</artifactId>
405+
</dependency>
406+
<dependency>
407+
<groupId>org.springframework.security</groupId>
408+
<artifactId>spring-security-data</artifactId>
409+
</dependency>
410+
<dependency>
411+
<groupId>org.springframework.security</groupId>
412+
<artifactId>spring-security-config</artifactId>
413+
</dependency>
399414
<dependency>
400415
<groupId>org.postgresql</groupId>
401416
<artifactId>postgresql</artifactId>
@@ -444,6 +459,11 @@
444459
<groupId>org.thymeleaf</groupId>
445460
<artifactId>thymeleaf</artifactId>
446461
</dependency>
462+
<dependency>
463+
<groupId>org.thymeleaf</groupId>
464+
<artifactId>thymeleaf-testing</artifactId>
465+
<scope>test</scope>
466+
</dependency>
447467
<dependency>
448468
<groupId>org.thymeleaf</groupId>
449469
<artifactId>thymeleaf-spring5</artifactId>
@@ -636,6 +656,15 @@
636656
<requireJavaVersion>
637657
<version>${java.version}</version>
638658
</requireJavaVersion>
659+
<requireOS>
660+
<family>unix</family>
661+
</requireOS>
662+
<requireFilesExist>
663+
<files>
664+
<file>${project.basedir}/docker-compose.yml</file>
665+
<file>${project.basedir}/etc/setenv.sh</file>
666+
</files>
667+
</requireFilesExist>
639668
</rules>
640669
</configuration>
641670
</execution>
@@ -702,9 +731,6 @@
702731
<artifactId>spring-boot-maven-plugin</artifactId>
703732
<configuration>
704733
<addResources>true</addResources>
705-
<profiles>
706-
<profile>default</profile>
707-
</profiles>
708734
</configuration>
709735
<executions>
710736
<!--
@@ -884,29 +910,15 @@
884910
</systemPropertyVariables>
885911
</configuration>
886912
</plugin>
887-
<plugin>
888-
<groupId>org.apache.maven.plugins</groupId>
889-
<artifactId>maven-site-plugin</artifactId>
890-
</plugin>
891913
</plugins>
892914
</build>
893915

894-
<profiles>
895-
<profile>
896-
<id>default</id>
897-
<activation>
898-
<activeByDefault>true</activeByDefault>
899-
<property>
900-
<name>spring.profiles.active</name>
901-
<value>default</value>
902-
</property>
903-
</activation>
904-
</profile>
905-
906-
</profiles>
907-
908916
<reporting>
909917
<plugins>
918+
<plugin>
919+
<groupId>org.apache.maven.plugins</groupId>
920+
<artifactId>maven-enforcer-plugin</artifactId>
921+
</plugin>
910922
<plugin>
911923
<groupId>org.apache.maven.plugins</groupId>
912924
<artifactId>maven-invoker-plugin</artifactId>
@@ -921,9 +933,7 @@
921933
<groupId>org.springframework.boot</groupId>
922934
<artifactId>spring-boot-maven-plugin</artifactId>
923935
<configuration>
924-
<profiles>
925-
<profile>default</profile>
926-
</profiles>
936+
<addResources>true</addResources>
927937
</configuration>
928938
</plugin>
929939
<plugin>
@@ -1039,8 +1049,6 @@
10391049
<groupId>org.apache.maven.plugins</groupId>
10401050
<artifactId>maven-site-plugin</artifactId>
10411051
</plugin>
1042-
1043-
10441052
<plugin>
10451053
<groupId>org.apache.maven.plugins</groupId>
10461054
<artifactId>maven-surefire-report-plugin</artifactId>
@@ -1049,8 +1057,6 @@
10491057
<skipSurefireReport>${skipTests}</skipSurefireReport>
10501058
</configuration>
10511059
</plugin>
1052-
1053-
10541060
</plugins>
10551061
</reporting>
10561062

run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ function run() {
5454
}
5555

5656
function main() {
57-
run
57+
#run
58+
build
5859
}
5960

6061
main

src/main/java/org/woehlke/simpleworklist/config/di/WebMvcConfig.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.woehlke.simpleworklist.config.di;
22

33
import org.springframework.beans.factory.annotation.Autowired;
4-
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
54
import org.springframework.boot.context.properties.EnableConfigurationProperties;
65
import org.springframework.context.MessageSource;
76
import org.springframework.context.annotation.Bean;

src/main/java/org/woehlke/simpleworklist/task/TaskState.java

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.woehlke.simpleworklist.task;
22

3-
import javax.persistence.Enumerated;
43
import java.io.Serializable;
54
import java.util.Arrays;
65
import java.util.List;
@@ -10,34 +9,16 @@
109
*/
1110
public enum TaskState implements Serializable {
1211

13-
@Enumerated
14-
INBOX("fas fa-inbox"),
1512

16-
@Enumerated
13+
INBOX("fas fa-inbox"),
1714
TODAY("fas fa-clock"),
18-
19-
@Enumerated
2015
NEXT("fas fa-cogs"),
21-
22-
@Enumerated
2316
WAITING("fas fa-hourglass-half"),
24-
25-
@Enumerated
2617
SCHEDULED("fas fa-calendar-alt"),
27-
28-
@Enumerated
2918
SOMEDAY("fas fa-road"),
30-
31-
@Enumerated
3219
FOCUS("fas fa-star"),
33-
34-
@Enumerated
3520
COMPLETED("fas fa-check-square"),
36-
37-
@Enumerated
3821
TRASH("fas fa-trash-alt"),
39-
40-
@Enumerated
4122
DELETED("fas fa-trash-alt");
4223

4324
TaskState(final String icon) {

src/main/java/org/woehlke/simpleworklist/task/TaskStateController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
import org.springframework.web.bind.annotation.RequestMethod;
1313
import org.woehlke.simpleworklist.common.AbstractController;
1414
import org.woehlke.simpleworklist.context.Context;
15-
import org.woehlke.simpleworklist.task.TaskControllerService;
16-
import org.woehlke.simpleworklist.task.TaskState;
1715
import org.woehlke.simpleworklist.user.UserSessionBean;
1816

1917
import java.util.Locale;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package org.woehlke.simpleworklist.task;
2+
3+
public class TaskMoveControllerTest {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package org.woehlke.simpleworklist.task;
2+
3+
public class TaskMoveServiceTest {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package org.woehlke.simpleworklist.task;
2+
3+
public class TaskStateControllerTest {
4+
}

0 commit comments

Comments
 (0)