Skip to content

Commit

Permalink
Prepared the project for Java 9
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuskrah committed Sep 29, 2017
1 parent 32cf450 commit dabf91b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ nbbuild/
dist/
nbdist/
.nb-gradle/


### VS Code
.vscode/
26 changes: 18 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
<maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>

<junit.jupiter.version>5.0.0</junit.jupiter.version>
<junit.vintage.version>${junit.version}.0</junit.vintage.version>
Expand Down Expand Up @@ -120,19 +122,27 @@
</dependencies>

<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>--add-modules java.xml.bind</jvmArguments>
</configuration>
</plugin>
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version> <configuration> <compilerArgs> <arg>(dash dash)add-modules</arg><arg>java.xml.bind</arg>
</compilerArgs> <source>1.9</source> <target>1.9</target> <jdkToolchain>
<version>9</version> </jdkToolchain> </configuration> </plugin> -->
<!-- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<!-- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>add-modules</arg>
<arg>java.xml.bind,java.xml.ws.annotation</arg>
</compilerArgs>
<jdkToolchain>
<version>9</version>
</jdkToolchain>
</configuration>
</plugin> -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down
6 changes: 5 additions & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ spring:
mail:
host: smtp.gmail.com
port: 587
test-connection: true
test-connection: false
username: ${gmail.username}
password: ${gmail.password}
properties:
mail.smtp.starttls.enable: true
jpa:
hibernate:
ddl-auto: none

# Running with Java 9
# > mvnw clean package -DskipTests
# > java --add-modules java.xml.bind --illegal-access=warn -jar target\quartz-manager.jar


0 comments on commit dabf91b

Please sign in to comment.