From c600a405403a49cbcf627610878d5dae48e2a58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CSulemaMalik=E2=80=9D?= <“WMIS228@live.rhul.ac.uk”> Date: Thu, 31 Oct 2024 21:06:45 +0000 Subject: [PATCH] Maven Project Initial Commit --- CW1/StudentGradeManagement/.mvn/jvm.config | 0 CW1/StudentGradeManagement/.mvn/maven.config | 0 CW1/StudentGradeManagement/pom.xml | 90 ++++++++++++++++++ .../java/uk/ac/rhul/cs2800/model/App.java | 10 ++ .../java/uk/ac/rhul/cs2800/model/AppTest.java | 19 ++++ .../classes/uk/ac/rhul/cs2800/model/App.class | Bin 0 -> 561 bytes .../compile/default-compile/createdFiles.lst | 1 + .../compile/default-compile/inputFiles.lst | 1 + 8 files changed, 121 insertions(+) create mode 100644 CW1/StudentGradeManagement/.mvn/jvm.config create mode 100644 CW1/StudentGradeManagement/.mvn/maven.config create mode 100644 CW1/StudentGradeManagement/pom.xml create mode 100644 CW1/StudentGradeManagement/src/main/java/uk/ac/rhul/cs2800/model/App.java create mode 100644 CW1/StudentGradeManagement/src/test/java/uk/ac/rhul/cs2800/model/AppTest.java create mode 100644 CW1/StudentGradeManagement/target/classes/uk/ac/rhul/cs2800/model/App.class create mode 100644 CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst diff --git a/CW1/StudentGradeManagement/.mvn/jvm.config b/CW1/StudentGradeManagement/.mvn/jvm.config new file mode 100644 index 0000000..e69de29 diff --git a/CW1/StudentGradeManagement/.mvn/maven.config b/CW1/StudentGradeManagement/.mvn/maven.config new file mode 100644 index 0000000..e69de29 diff --git a/CW1/StudentGradeManagement/pom.xml b/CW1/StudentGradeManagement/pom.xml new file mode 100644 index 0000000..55a625a --- /dev/null +++ b/CW1/StudentGradeManagement/pom.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>uk.ac.rhul.cs2800.model</groupId> + <artifactId>StudentGradeManagement</artifactId> + <version>1.0-SNAPSHOT</version> + + <name>StudentGradeManagement</name> + <!-- FIXME change it to the project's website --> + <url>http://www.example.com</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <maven.compiler.release>17</maven.compiler.release> + </properties> + + <dependencyManagement> + <dependencies> + <dependency> + <groupId>org.junit</groupId> + <artifactId>junit-bom</artifactId> + <version>5.11.0</version> + <type>pom</type> + <scope>import</scope> + </dependency> + </dependencies> + </dependencyManagement> + + <dependencies> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-api</artifactId> + <scope>test</scope> + </dependency> + <!-- Optionally: parameterized tests support --> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-params</artifactId> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> + <plugins> + <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --> + <plugin> + <artifactId>maven-clean-plugin</artifactId> + <version>3.4.0</version> + </plugin> + <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>3.3.1</version> + </plugin> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.13.0</version> + </plugin> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <version>3.3.0</version> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <version>3.4.2</version> + </plugin> + <plugin> + <artifactId>maven-install-plugin</artifactId> + <version>3.1.2</version> + </plugin> + <plugin> + <artifactId>maven-deploy-plugin</artifactId> + <version>3.1.2</version> + </plugin> + <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> + <plugin> + <artifactId>maven-site-plugin</artifactId> + <version>3.12.1</version> + </plugin> + <plugin> + <artifactId>maven-project-info-reports-plugin</artifactId> + <version>3.6.1</version> + </plugin> + </plugins> + </pluginManagement> + </build> +</project> diff --git a/CW1/StudentGradeManagement/src/main/java/uk/ac/rhul/cs2800/model/App.java b/CW1/StudentGradeManagement/src/main/java/uk/ac/rhul/cs2800/model/App.java new file mode 100644 index 0000000..e71d3b0 --- /dev/null +++ b/CW1/StudentGradeManagement/src/main/java/uk/ac/rhul/cs2800/model/App.java @@ -0,0 +1,10 @@ +package uk.ac.rhul.cs2800.model; + +/** + * Hello world! + */ +public class App { + public static void main(String[] args) { + System.out.println("Hello World!"); + } +} diff --git a/CW1/StudentGradeManagement/src/test/java/uk/ac/rhul/cs2800/model/AppTest.java b/CW1/StudentGradeManagement/src/test/java/uk/ac/rhul/cs2800/model/AppTest.java new file mode 100644 index 0000000..ce7098f --- /dev/null +++ b/CW1/StudentGradeManagement/src/test/java/uk/ac/rhul/cs2800/model/AppTest.java @@ -0,0 +1,19 @@ +package uk.ac.rhul.cs2800.model; + +import static org.junit.jupiter.api.Assertions.assertTrue; + +import org.junit.jupiter.api.Test; + +/** + * Unit test for simple App. + */ +public class AppTest { + + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() { + assertTrue(true); + } +} diff --git a/CW1/StudentGradeManagement/target/classes/uk/ac/rhul/cs2800/model/App.class b/CW1/StudentGradeManagement/target/classes/uk/ac/rhul/cs2800/model/App.class new file mode 100644 index 0000000000000000000000000000000000000000..89fa6312ec5abdf405501de0971d879d93c8be95 GIT binary patch literal 561 zcmX^0Z`VEs1_oOOB`yXg24;2!79Ivx1~x_pfvm)`ME#t^ymWp4q^#8B5=I6#o6Nk- z5<5l)W)00SP6iGJPId+^9tLg(9u(!lmBl5gxr_|V`K2X{45B_@gEI5=1Bx>9N`gy@ zQWJBnIT-jD8F)NWb8_+(!t;xAQWUuu1Q-O_8H9Kkgc(E_8HBOuVq{=10GW}K$H*Y6 z0WlZsz~GXi%)E4K%`kQbF-8XI(ro?2Wc{Ly(j5KdVj~L!1O43ml++x3$ASVz1{UZ1 zlvG9rexJ;|RKL>Pq|~C2#H5^5Mg}3D{N%)(u*9NF5FaYYQj(Eb%*Y_?gU3v3Mh2GL z#LPTK1~H9jY_4KtU`Z@WFJ@#A#v;wgz!jWdT9lmXmI-nNhhss39?0(uiVUI*Obj5v z#J~uO69z^GaRvqkeFjDbMg|53R;}#}j2jsk7?>C&7#JAXz=CWHk_-$CJYY5}gA{`_ z0|NsmgA9W#RI@n)$S?*5&P@#LLcH4;_z?zx;-7(m0~D=DhHx^-F~~D8FfcMGfUQyl E0C0eI9RL6T literal 0 HcmV?d00001 diff --git a/CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..a23b21e --- /dev/null +++ b/CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1 @@ +uk/ac/rhul/cs2800/model/App.class diff --git a/CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..eb52bb8 --- /dev/null +++ b/CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1 @@ +/Users/sulemamalik/cs2800-lab-2024/cs2800-lab-2024/CW1/StudentGradeManagment/src/test/java/uk/ac/rhul/cs2800/model/cs2800-lab-2024/CW1/StudentGradeManagement/src/main/java/uk/ac/rhul/cs2800/model/App.java -- GitLab