Giter Club home page Giter Club logo

bom-scala-maven's Introduction

Create BOM file in sbt project

Simple overview of how to create a BOM file in sbt/scala projects with SBT and Maven. BOM file is used by Dependency-TrackDependency-Track, an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain

How to create a BOM file

Add this line in your build.sbt:

pomExtra := <build><plugins><plugin> <groupId>org.cyclonedx</groupId> <artifactId>cyclonedx-maven-plugin</artifactId> <version>2.5.1</version> <executions> <execution> <phase>verify</phase> <goals><goal>makeBom</goal> </goals> </execution> </executions> <configuration> <projectType>library</projectType> <schemaVersion>1.3</schemaVersion> <includeBomSerialNumber>true</includeBomSerialNumber> <includeCompileScope>true</includeCompileScope> <includeProvidedScope>true</includeProvidedScope> <includeRuntimeScope>true</includeRuntimeScope> <includeSystemScope>true</includeSystemScope> <includeTestScope>false</includeTestScope> <includeLicenseText>false</includeLicenseText> <outputFormat>all</outputFormat> <outputName>bom</outputName> </configuration> </plugin></plugins></build>

From command line:

sbt makePom

Into target folder, find file with ".pom" extension. Rename file in pom.xml and move it into root of project. For example:

copy target\scala-2.12\myproject_2.12-1.0.0.pom pom.xml

From command line:

mvn clean verify

Into target folder, find file Bom (xml and json format).

bom-scala-maven's People

Contributors

feliceg77 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.