Skip to content

Commit

Permalink
Merge pull request #532 from gordonrousselle/feat/new-implementation-…
Browse files Browse the repository at this point in the history
…cyclonedxBom

Feat/new implementation cyclonedx bom
  • Loading branch information
skhokhlov authored Nov 22, 2024
2 parents 77661b2 + be924d6 commit e24493f
Show file tree
Hide file tree
Showing 37 changed files with 2,206 additions and 974 deletions.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ dependencies {
testImplementation("org.spockframework:spock-core:2.2-M1-groovy-3.0") {
exclude(module = "groovy-all")
}
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.3")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.3")
}

tasks.withType<Test> {
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/org/cyclonedx/gradle/CycloneDxPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@
import org.gradle.api.Plugin;
import org.gradle.api.Project;

/**
* Entrypoint of the plugin which simply configures one task
*/
public class CycloneDxPlugin implements Plugin<Project> {

public void apply(Project project) {
public void apply(final Project project) {

project.getTasks().register("cyclonedxBom", CycloneDxTask.class, (task) -> {
task.setGroup("Reporting");
task.setDescription("Generates a CycloneDX compliant Software Bill of Materials (SBOM)");
Expand Down
Loading

0 comments on commit e24493f

Please sign in to comment.