Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .vscode/launch.json
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be deleted, can't be merge something auto-generated by your IDE. Or include the folder .vscode inside a .gitignore

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "DinosaurApp",
"request": "launch",
"mainClass": "com.dinosaur.dinosaurexploder/com.dinosaur.dinosaurexploder.DinosaurApp",
"projectName": "dinosaur-exploder"
},
{
"type": "java",
"name": "DinosaurWebApp",
"request": "launch",
"mainClass": "com.dinosaur.dinosaurexploder/com.dinosaur.dinosaurexploder.DinosaurWebApp",
"projectName": "dinosaur-exploder"
}
]
}
43 changes: 43 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<junit.version>5.13.4</junit.version>
<mainClassName>com.dinosaur.dinosaurexploder.DinosaurApp</mainClassName>
<mainClassJProName>com.dinosaur.dinosaurexploder.DinosaurWebApp</mainClassJProName>
<jacoco.version>0.8.10</jacoco.version>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -74,6 +75,48 @@
</pluginRepositories>
<build>
<plugins>

<!-- JaCoCo Plugin for Code Coverage -->
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to execute tests, right ?

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>INSTRUCTION</counter>
<value>COVEREDRATIO</value>
<minimum>0.00</minimum> <!-- No minimum for student repository -->
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
import com.dinosaur.dinosaurexploder.model.HighScore;
import com.dinosaur.dinosaurexploder.model.TotalCoins;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

import java.util.Map;

public class WeaponUnlockChecker {
Expand Down
1 change: 1 addition & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
requires annotations;
requires javafx.base;
requires com.almasb.fxgl.entity;
requires com.almasb.fxgl.core;

opens assets.textures;
opens assets.sounds;
Expand Down
Loading