|
6 | 6 | <modelVersion>4.0.0</modelVersion> |
7 | 7 |
|
8 | 8 | <groupId>io.github.testimpact</groupId> |
9 | | - <artifactId>maven-test-impact-plugin</artifactId> |
| 9 | + <artifactId>selective-test-runner</artifactId> |
10 | 10 | <version>1.0.0-SNAPSHOT</version> |
11 | | - <packaging>maven-plugin</packaging> |
| 11 | + <packaging>pom</packaging> |
12 | 12 |
|
13 | | - <name>maven-test-impact-plugin</name> |
14 | | - <description>Run only the tests that matter: bytecode-level test impact analysis for Maven.</description> |
| 13 | + <name>Selective Test Runner</name> |
| 14 | + <description>Run only the tests that matter: bytecode-level test impact analysis.</description> |
| 15 | + |
| 16 | + <modules> |
| 17 | + <module>selective-test-runner-core</module> |
| 18 | + <module>maven-test-impact-plugin</module> |
| 19 | + </modules> |
15 | 20 |
|
16 | 21 | <properties> |
17 | 22 | <maven.compiler.source>11</maven.compiler.source> |
|
24 | 29 | <asm.version>9.6</asm.version> |
25 | 30 | <jgit.version>6.10.1.202505221210-r</jgit.version> |
26 | 31 | <jackson.version>2.21.3</jackson.version> |
| 32 | + <junit.version>5.10.2</junit.version> |
27 | 33 | <maven-jar-plugin.version>3.3.0</maven-jar-plugin.version> |
28 | 34 | <maven-shade-plugin.version>3.5.1</maven-shade-plugin.version> |
29 | 35 | <maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version> |
30 | 36 | <spotless-maven-plugin.version>3.4.0</spotless-maven-plugin.version> |
31 | 37 | </properties> |
32 | 38 |
|
33 | | - <dependencies> |
34 | | - <dependency> |
35 | | - <groupId>org.apache.maven</groupId> |
36 | | - <artifactId>maven-plugin-api</artifactId> |
37 | | - <version>${maven.plugin.api.version}</version> |
38 | | - <scope>provided</scope> |
39 | | - </dependency> |
40 | | - <dependency> |
41 | | - <groupId>org.apache.maven</groupId> |
42 | | - <artifactId>maven-core</artifactId> |
43 | | - <version>${maven.api.version}</version> |
44 | | - <scope>provided</scope> |
45 | | - </dependency> |
46 | | - <dependency> |
47 | | - <groupId>org.apache.maven.plugin-tools</groupId> |
48 | | - <artifactId>maven-plugin-annotations</artifactId> |
49 | | - <version>${maven.plugin.tools.version}</version> |
50 | | - <scope>provided</scope> |
51 | | - </dependency> |
52 | | - |
53 | | - <dependency> |
54 | | - <groupId>org.ow2.asm</groupId> |
55 | | - <artifactId>asm</artifactId> |
56 | | - <version>${asm.version}</version> |
57 | | - </dependency> |
58 | | - <dependency> |
59 | | - <groupId>org.ow2.asm</groupId> |
60 | | - <artifactId>asm-commons</artifactId> |
61 | | - <version>${asm.version}</version> |
62 | | - </dependency> |
| 39 | + <dependencyManagement> |
| 40 | + <dependencies> |
| 41 | + <dependency> |
| 42 | + <groupId>io.github.testimpact</groupId> |
| 43 | + <artifactId>selective-test-runner-core</artifactId> |
| 44 | + <version>${project.version}</version> |
| 45 | + </dependency> |
| 46 | + <dependency> |
| 47 | + <groupId>io.github.testimpact</groupId> |
| 48 | + <artifactId>selective-test-runner-core</artifactId> |
| 49 | + <version>${project.version}</version> |
| 50 | + <classifier>agent</classifier> |
| 51 | + </dependency> |
63 | 52 |
|
64 | | - <dependency> |
65 | | - <groupId>org.eclipse.jgit</groupId> |
66 | | - <artifactId>org.eclipse.jgit</artifactId> |
67 | | - <version>${jgit.version}</version> |
68 | | - </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>org.ow2.asm</groupId> |
| 55 | + <artifactId>asm</artifactId> |
| 56 | + <version>${asm.version}</version> |
| 57 | + </dependency> |
| 58 | + <dependency> |
| 59 | + <groupId>org.ow2.asm</groupId> |
| 60 | + <artifactId>asm-commons</artifactId> |
| 61 | + <version>${asm.version}</version> |
| 62 | + </dependency> |
69 | 63 |
|
70 | | - <dependency> |
71 | | - <groupId>com.fasterxml.jackson.core</groupId> |
72 | | - <artifactId>jackson-databind</artifactId> |
73 | | - <version>${jackson.version}</version> |
74 | | - </dependency> |
| 64 | + <dependency> |
| 65 | + <groupId>org.eclipse.jgit</groupId> |
| 66 | + <artifactId>org.eclipse.jgit</artifactId> |
| 67 | + <version>${jgit.version}</version> |
| 68 | + </dependency> |
75 | 69 |
|
76 | | - <dependency> |
77 | | - <groupId>org.junit.jupiter</groupId> |
78 | | - <artifactId>junit-jupiter</artifactId> |
79 | | - <version>5.10.2</version> |
80 | | - <scope>test</scope> |
81 | | - </dependency> |
82 | | - </dependencies> |
| 70 | + <dependency> |
| 71 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 72 | + <artifactId>jackson-databind</artifactId> |
| 73 | + <version>${jackson.version}</version> |
| 74 | + </dependency> |
83 | 75 |
|
84 | | - <build> |
85 | | - <plugins> |
86 | | - <plugin> |
87 | | - <groupId>org.apache.maven.plugins</groupId> |
88 | | - <artifactId>maven-plugin-plugin</artifactId> |
| 76 | + <dependency> |
| 77 | + <groupId>org.apache.maven</groupId> |
| 78 | + <artifactId>maven-plugin-api</artifactId> |
| 79 | + <version>${maven.plugin.api.version}</version> |
| 80 | + </dependency> |
| 81 | + <dependency> |
| 82 | + <groupId>org.apache.maven</groupId> |
| 83 | + <artifactId>maven-core</artifactId> |
| 84 | + <version>${maven.api.version}</version> |
| 85 | + </dependency> |
| 86 | + <dependency> |
| 87 | + <groupId>org.apache.maven.plugin-tools</groupId> |
| 88 | + <artifactId>maven-plugin-annotations</artifactId> |
89 | 89 | <version>${maven.plugin.tools.version}</version> |
90 | | - <configuration> |
91 | | - <goalPrefix>test-impact</goalPrefix> |
92 | | - </configuration> |
93 | | - </plugin> |
| 90 | + </dependency> |
94 | 91 |
|
95 | | - <plugin> |
96 | | - <groupId>org.apache.maven.plugins</groupId> |
97 | | - <artifactId>maven-jar-plugin</artifactId> |
98 | | - <version>${maven-jar-plugin.version}</version> |
99 | | - <configuration> |
100 | | - <archive> |
101 | | - <manifestEntries> |
102 | | - <Premain-Class>io.github.testimpact.agent.CoverageAgent</Premain-Class> |
103 | | - <Agent-Class>io.github.testimpact.agent.CoverageAgent</Agent-Class> |
104 | | - <Can-Retransform-Classes>true</Can-Retransform-Classes> |
105 | | - <Can-Redefine-Classes>true</Can-Redefine-Classes> |
106 | | - </manifestEntries> |
107 | | - </archive> |
108 | | - </configuration> |
109 | | - </plugin> |
| 92 | + <dependency> |
| 93 | + <groupId>org.junit.jupiter</groupId> |
| 94 | + <artifactId>junit-jupiter</artifactId> |
| 95 | + <version>${junit.version}</version> |
| 96 | + </dependency> |
| 97 | + </dependencies> |
| 98 | + </dependencyManagement> |
110 | 99 |
|
111 | | - <plugin> |
112 | | - <groupId>org.apache.maven.plugins</groupId> |
113 | | - <artifactId>maven-shade-plugin</artifactId> |
114 | | - <version>${maven-shade-plugin.version}</version> |
115 | | - <executions> |
116 | | - <execution> |
117 | | - <phase>package</phase> |
118 | | - <goals><goal>shade</goal></goals> |
119 | | - <configuration> |
120 | | - <createDependencyReducedPom>false</createDependencyReducedPom> |
121 | | - <shadedArtifactAttached>true</shadedArtifactAttached> |
122 | | - <shadedClassifierName>agent</shadedClassifierName> |
123 | | - <artifactSet> |
124 | | - <includes> |
125 | | - <include>org.ow2.asm:*</include> |
126 | | - </includes> |
127 | | - </artifactSet> |
128 | | - <relocations> |
129 | | - <relocation> |
130 | | - <pattern>org.objectweb.asm</pattern> |
131 | | - <shadedPattern>io.github.testimpact.shaded.asm</shadedPattern> |
132 | | - </relocation> |
133 | | - </relocations> |
134 | | - <transformers> |
135 | | - <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
136 | | - <manifestEntries> |
137 | | - <Premain-Class>io.github.testimpact.agent.CoverageAgent</Premain-Class> |
138 | | - <Agent-Class>io.github.testimpact.agent.CoverageAgent</Agent-Class> |
139 | | - <Can-Retransform-Classes>true</Can-Retransform-Classes> |
140 | | - <Can-Redefine-Classes>true</Can-Redefine-Classes> |
141 | | - </manifestEntries> |
142 | | - </transformer> |
143 | | - </transformers> |
144 | | - </configuration> |
145 | | - </execution> |
146 | | - </executions> |
147 | | - </plugin> |
| 100 | + <build> |
| 101 | + <pluginManagement> |
| 102 | + <plugins> |
| 103 | + <plugin> |
| 104 | + <groupId>org.apache.maven.plugins</groupId> |
| 105 | + <artifactId>maven-surefire-plugin</artifactId> |
| 106 | + <version>${maven-surefire-plugin.version}</version> |
| 107 | + </plugin> |
| 108 | + <plugin> |
| 109 | + <groupId>com.diffplug.spotless</groupId> |
| 110 | + <artifactId>spotless-maven-plugin</artifactId> |
| 111 | + <version>${spotless-maven-plugin.version}</version> |
| 112 | + <configuration> |
| 113 | + <java> |
| 114 | + <googleJavaFormat/> |
| 115 | + </java> |
| 116 | + </configuration> |
| 117 | + </plugin> |
| 118 | + </plugins> |
| 119 | + </pluginManagement> |
148 | 120 |
|
| 121 | + <plugins> |
149 | 122 | <plugin> |
150 | 123 | <groupId>org.apache.maven.plugins</groupId> |
151 | 124 | <artifactId>maven-surefire-plugin</artifactId> |
152 | | - <version>${maven-surefire-plugin.version}</version> |
153 | 125 | </plugin> |
154 | | - |
155 | 126 | <plugin> |
156 | 127 | <groupId>com.diffplug.spotless</groupId> |
157 | 128 | <artifactId>spotless-maven-plugin</artifactId> |
158 | | - <version>${spotless-maven-plugin.version}</version> |
159 | | - <configuration> |
160 | | - <java> |
161 | | - <googleJavaFormat/> |
162 | | - </java> |
163 | | - </configuration> |
164 | 129 | </plugin> |
165 | 130 | </plugins> |
166 | 131 | </build> |
|
0 commit comments