Skip to content

Commit

Permalink
fix: move plugin.properties to namespaced location
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Lauth <sebastian.lauth@grandcentrix.net>
  • Loading branch information
gcx-seb authored and glefloch committed Feb 6, 2024
1 parent 75b0694 commit 83e2c50
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ tasks.withType<JavaCompile>().configureEach {
tasks.withType<ProcessResources> {
doLast {
val resourcesDirectory = project.layout.buildDirectory.dir("resources/main")
val pluginPropertiesFile = file("${resourcesDirectory.get()}/plugin.properties")
val pluginPropertiesFile = file("${resourcesDirectory.get()}/org/cyclonedx/gradle/plugin.properties")

val pluginProperties = Properties()
pluginProperties["name"] = project.name
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/cyclonedx/gradle/CycloneDxTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ protected Metadata createMetadata() {
private Properties readPluginProperties() {
final Properties props = new Properties();
try {
props.load(this.getClass().getClassLoader().getResourceAsStream("plugin.properties"));
props.load(this.getClass().getResourceAsStream("plugin.properties"));
} catch (NullPointerException | IOException e) {
getLogger().warn("Unable to load plugin.properties", e);
}
Expand Down
Empty file.

0 comments on commit 83e2c50

Please sign in to comment.