Skip to content

Commit 4628e44

Browse files
authored
Merge pull request #52 from avaje/fix-paths
fix path resolution
2 parents bed5643 + 1f594b4 commit 4628e44

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
<groupId>io.avaje</groupId>
1212
<artifactId>avaje-provides-maven-plugin</artifactId>
1313
<packaging>maven-plugin</packaging>
14-
<version>2.1</version>
14+
<version>2.2</version>
1515
<properties>
1616
<maven.compiler.release>24</maven.compiler.release>
17+
<project.build.outputTimestamp>2025-03-30T05:18:11Z</project.build.outputTimestamp>
1718
</properties>
1819

1920
<dependencies>

src/main/java/io/avaje/inject/mojo/ModuleSPIMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void execute() throws MojoExecutionException {
3030
new ModuleSPIProcessor(project, getLog(), compiledClasses()).execute();
3131
}
3232

33-
private Set<String> compiledClasses() throws MojoExecutionException {
33+
private Set<String> compiledClasses() {
3434
try {
3535

3636
final Set<String> targetClasses = new HashSet<>();

src/main/java/io/avaje/inject/mojo/ModuleSPIProcessor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ public void execute() throws MojoExecutionException {
5959
}
6060
var dirPath = directory.getAbsolutePath();
6161

62-
var moduleCF = Paths.get(dirPath + "\\classes\\module-info.class");
63-
var servicesDirectory = Paths.get(dirPath + "\\classes\\META-INF\\services");
62+
Path classes = Paths.get(dirPath).resolve("classes");
63+
var moduleCF = classes.resolve("module-info.class");
64+
var servicesDirectory = classes.resolve("META-INF").resolve("services");
6465

6566
if (!moduleCF.toFile().exists()) {
6667
// no module-info to modify

0 commit comments

Comments
 (0)