Skip to content

Commit

Permalink
Merge branch '3.2.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Apr 26, 2024
2 parents 7d1c244 + 876d921 commit 7fdb7ce
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -52,6 +52,8 @@ public class AutoConfigurationMetadata extends DefaultTask {

private static final String COMMENT_START = "#";

private final String moduleName;

private SourceSet sourceSet;

private File outputFile;
Expand All @@ -66,6 +68,7 @@ public AutoConfigurationMetadata() {
dependsOn((Callable<String>) () -> this.sourceSet.getProcessResourcesTaskName());
getProject().getConfigurations()
.maybeCreate(AutoConfigurationPlugin.AUTO_CONFIGURATION_METADATA_CONFIGURATION_NAME);
this.moduleName = getProject().getName();
}

public void setSourceSet(SourceSet sourceSet) {
Expand Down Expand Up @@ -107,7 +110,7 @@ private Properties readAutoConfiguration() throws IOException {
}
}
autoConfiguration.setProperty("autoConfigurationClassNames", String.join(",", publicClassNames));
autoConfiguration.setProperty("module", getProject().getName());
autoConfiguration.setProperty("module", this.moduleName);
return autoConfiguration;
}

Expand Down

0 comments on commit 7fdb7ce

Please sign in to comment.