Skip to content

Commit bd28467

Browse files
committed
Init year2022
1 parent 88ebf29 commit bd28467

File tree

6 files changed

+84
-0
lines changed

6 files changed

+84
-0
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<module>year2019</module>
2020
<module>year2020</module>
2121
<module>year2021</module>
22+
<module>year2022</module>
2223
</modules>
2324

2425
<properties>

year2022/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>solution-parent</artifactId>
7+
<groupId>dev.linl33.adventofcode</groupId>
8+
<version>${revision}</version>
9+
<relativePath>../solution-parent/pom.xml</relativePath>
10+
</parent>
11+
<modelVersion>4.0.0</modelVersion>
12+
13+
<artifactId>year2022</artifactId>
14+
<packaging>jar</packaging>
15+
16+
<properties>
17+
<maven.install.skip>true</maven.install.skip>
18+
</properties>
19+
</project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package dev.linl33.adventofcode.year2022;
2+
3+
import dev.linl33.adventofcode.jmh.JmhSolutionBenchmark;
4+
import dev.linl33.adventofcode.lib.solution.AbsAdventSolution;
5+
6+
public abstract class AdventSolution2022<T1, T2> extends AbsAdventSolution<T1, T2> implements JmhSolutionBenchmark<T1, T2> {
7+
@Override
8+
public int getYear() {
9+
return 2022;
10+
}
11+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module dev.linl33.adventofcode.year2022 {
2+
requires transitive dev.linl33.adventofcode.lib;
3+
requires dev.linl33.adventofcode.jmh;
4+
5+
requires org.apache.logging.log4j;
6+
requires static org.apache.logging.log4j.core;
7+
requires static org.jetbrains.annotations;
8+
9+
// TODO:
10+
// exports dev.linl33.adventofcode.year2022 to dev.linl33.adventofcode.year2022.test;
11+
12+
opens dev.linl33.adventofcode.year2022 to dev.linl33.adventofcode.lib, dev.linl33.adventofcode.jmh;
13+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Configuration xmlns="http://logging.apache.org/log4j/2.0/config"
3+
strict="true">
4+
<Appenders>
5+
<Appender type="Console" name="Solution">
6+
<Layout type="PatternLayout" pattern="%d [%t] %highlight{========== %-16msg ==========%n}%throwable"/>
7+
<Filter type="MarkerFilter" marker="SOLUTION" onMatch="ACCEPT" onMismatch="DENY"/>
8+
</Appender>
9+
10+
<Appender type="Console" name="SolutionResult">
11+
<Layout type="PatternLayout" pattern="%d [%t] %msg%n%throwable"/>
12+
<Filter type="MarkerFilter" marker="SOLUTION_RESULT" onMatch="ACCEPT" onMismatch="DENY"/>
13+
</Appender>
14+
15+
<Appender type="Console" name="Console">
16+
<Layout type="PatternLayout" pattern="%d [%t] %logger{36} %highlight{%-5level: %msg%n}%throwable"/>
17+
<Filter type="NoMarkerFilter" onMatch="ACCEPT" onMismatch="DENY"/>
18+
</Appender>
19+
</Appenders>
20+
21+
<Loggers>
22+
<Logger name="dev.linl33.adventofcode" level="ALL" additivity="true">
23+
<AppenderRef ref="Solution"/>
24+
<AppenderRef ref="SolutionResult"/>
25+
</Logger>
26+
27+
<Root level="ALL">
28+
<AppenderRef ref="Console"/>
29+
</Root>
30+
</Loggers>
31+
</Configuration>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
open module dev.linl33.adventofcode.year2022.test {
2+
requires dev.linl33.adventofcode.lib;
3+
requires dev.linl33.adventofcode.testlib;
4+
requires dev.linl33.adventofcode.year2022;
5+
6+
requires org.junit.jupiter.api;
7+
requires org.junit.jupiter.engine;
8+
requires org.junit.jupiter.params;
9+
}

0 commit comments

Comments
 (0)