Skip to content

Commit 81d5be7

Browse files
fix/clean up maven configuration
1 parent a7c1e00 commit 81d5be7

8 files changed

Lines changed: 495 additions & 442 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
wrapperVersion=3.3.4
2+
distributionType=only-script
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip

bom/pom.xml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,43 @@
11
<!-- /bom/pom.xml -->
22
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>education.the-software-toolsmith</groupId>
7+
<parent>
8+
<groupId>education.the-software-toolsmith</groupId>
9+
<artifactId>java-analyzer-framework-for-education-parent</artifactId>
10+
<version>0.0.1-SNAPSHOT</version>
11+
<relativePath>../pom.xml</relativePath>
12+
</parent>
13+
814
<artifactId>java-analyzer-framework-for-education-bom</artifactId>
9-
<version>0.0.1-SNAPSHOT</version>
1015
<packaging>pom</packaging>
1116

12-
1317
<name>Java Analyzer Framework (Education) BOM</name>
1418
<description>
15-
Version alignment (BOM) for java-analyzer-framework-for-education and related components.
19+
Version alignment (BOM) for java-analyzer-framework-for-education and
20+
related components.
1621
Import this BOM to keep dependency versions synchronized.
1722
</description>
1823

1924
<dependencyManagement>
2025
<dependencies>
2126

27+
<!-- our framework and tools -->
28+
<dependency>
29+
<groupId>education.the-software-toolsmith</groupId>
30+
<artifactId>java-analyzer-framework-for-education</artifactId>
31+
<version>${project.version}</version>
32+
</dependency>
33+
34+
<dependency>
35+
<groupId>education.the-software-toolsmith</groupId>
36+
<artifactId>java-analyzer-tools-for-education</artifactId>
37+
<version>${project.version}</version>
38+
</dependency>
39+
40+
2241
<!-- JUnit: single knob for all JUnit modules -->
2342
<dependency>
2443
<groupId>org.junit</groupId>

framework/pom.xml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- /framework/pom.xml -->
22
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

77
<parent>
@@ -16,13 +16,30 @@
1616

1717
<name>Java Analyzer Framework (Education)</name>
1818
<description>
19-
Tools to facilitate in-depth static and dynamic assessment of student projects with detailed feedback.
20-
Intended to be incorporated into analyzers run by the student (e.g., JUnit testing) or the instructor.
19+
Tools to facilitate in-depth static and dynamic assessment of student
20+
projects with detailed feedback.
21+
Intended to be incorporated into analyzers run by the student (e.g.,
22+
JUnit testing) or the instructor.
2123
</description>
2224

25+
26+
<dependencyManagement>
27+
<dependencies>
28+
29+
<dependency>
30+
<groupId>education.the-software-toolsmith</groupId>
31+
<artifactId>java-analyzer-framework-for-education-bom</artifactId>
32+
<version>${project.version}</version>
33+
<type>pom</type>
34+
<scope>import</scope>
35+
</dependency>
36+
37+
</dependencies>
38+
</dependencyManagement>
39+
40+
2341
<dependencies>
2442

25-
<!-- Analyzer libs (versions come from BOM via parent import) -->
2643
<dependency>
2744
<groupId>com.puppycrawl.tools</groupId>
2845
<artifactId>checkstyle</artifactId>
@@ -57,13 +74,11 @@
5774
<dependency>
5875
<groupId>org.junit.jupiter</groupId>
5976
<artifactId>junit-jupiter-api</artifactId>
60-
<optional>true</optional>
6177
</dependency>
6278

6379
<dependency>
6480
<groupId>org.junit.platform</groupId>
6581
<artifactId>junit-platform-launcher</artifactId>
66-
<optional>true</optional>
6782
</dependency>
6883

6984
<!-- Framework's own tests -->

jitpack.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ before_install:
55
- echo "Using Java version:"
66
- java -version
77

8+
- echo "Using Maven Wrapper:"
9+
- bash ./mvnw -v
10+
811
install:
9-
- mvn -B clean install -DskipTests=false
12+
- bash ./mvnw -B clean install -DskipTests=false

0 commit comments

Comments
 (0)