Skip to content

Commit

Permalink
Configurazione di Maven
Browse files Browse the repository at this point in the history
Close #19;
  • Loading branch information
darckat038 committed May 17, 2024
0 parents commit 264b8ea
Show file tree
Hide file tree
Showing 8 changed files with 156 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.vscode/
target/
25 changes: 25 additions & 0 deletions checkstyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="TreeWalker">
<module name="BooleanExpressionComplexity"/>
<module name="CyclomaticComplexity"/>
<module name="MethodLength"/>
<module name="EmptyCatchBlock"/>
<module name="AvoidStarImport"/>
<module name="IllegalImport"/>
<module name="NeedBraces"/>
</module>
<module name="FileLength">
<property name="fileExtensions" value="java"/>
</module>
<module name="LineLength">
<property name="max" value="120"/>
<property name="fileExtensions" value="java"/>
</module>
<module name="FileTabCharacter"/>
<module name="Header">
<property name="headerFile" value="config/headerPattern.header"/>
<property name="fileExtensions" value="java"/>
</module>
</module>
4 changes: 4 additions & 0 deletions config/headerPattern.header
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
////////////////////////////////////////////////////////////////////
// Filippo Bellon 2076432
// Nicolò Bolzon 2075521
////////////////////////////////////////////////////////////////////
63 changes: 63 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>it.unipd.mtss</groupId>
<artifactId>roman-number</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>roman-number</name>
<url>http://maven.apache.org</url>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<failsOnError>true</failsOnError>
<configLocation>checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>checkstyle</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.3.0</version>
</plugin>
</plugins>
</build>
</project>
14 changes: 14 additions & 0 deletions src/main/java/it/unipd/mtss/IntegerToRoman.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
////////////////////////////////////////////////////////////////////
// Filippo Bellon 2076432
// Nicolò Bolzon 2075521
////////////////////////////////////////////////////////////////////

package it.unipd.mtss;

public class IntegerToRoman {

public static String convert(int number) {
// TODO
return null;
}
}
16 changes: 16 additions & 0 deletions src/main/java/it/unipd/mtss/RomanPrinter.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
////////////////////////////////////////////////////////////////////
// Filippo Bellon 2076432
// Nicolò Bolzon 2075521
////////////////////////////////////////////////////////////////////

package it.unipd.mtss;

public class RomanPrinter {
public static String print(int num) {
return printAsciiArt(IntegerToRoman.convert(num));
}
private static String printAsciiArt(String romanNumber) {
//TODO
return null;
}
}
16 changes: 16 additions & 0 deletions src/test/java/it/unipd/mtss/IntegerToRomanTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
////////////////////////////////////////////////////////////////////
// Filippo Bellon 2076432
// Nicolò Bolzon 2075521
////////////////////////////////////////////////////////////////////

package it.unipd.mtss;

import org.junit.Test;

public class IntegerToRomanTest {

@Test
public void testConvert() {

}
}
16 changes: 16 additions & 0 deletions src/test/java/it/unipd/mtss/RomanPrinterTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
////////////////////////////////////////////////////////////////////
// Filippo Bellon 2076432
// Nicolò Bolzon 2075521
////////////////////////////////////////////////////////////////////

package it.unipd.mtss;

import org.junit.Test;

public class RomanPrinterTest {

@Test
public void testPrint() {

}
}

0 comments on commit 264b8ea

Please sign in to comment.