# US 2016/0253625 A1 · Employing Dependency Graph in Software Build Projects

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0253625 A1
- Document ID: US20160253625A1
- Status: Published application
- Kind: A1
- Application number: 14/633,120
- Filed: 2015-02-26
- Published: 2016-09-01
- Earliest claimed: 2015-02-26
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: John Dennis Casey
- Web page: https://patentgrep.com/patent/US20160253625A1

## CPC

- G06Q 10/103: {Workflow collaboration or project management}
- G06F 8/433: {Dependency analysis; Data or control flow analysis}
- G06F 9/44521: {Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading}
- G06F 8/427: {Parsing}
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A mechanism for employing dependency graph in software build projects is disclosed. A method of implementation of the invention includes receiving a first build script file associated with a software project, the first build script file identifying a plurality of project dependencies associated with the software project. The method also includes parsing the first build script file to generate a project dependency graph corresponding to the first build script file. The project dependency graph includes a plurality of vertices representing to the plurality of software project dependencies and further includes a plurality of edges representing relationships between the plurality of the software project dependencies. The method also includes determining a build order of the plurality of software project dependencies using the project dependency graph.

## Claims

### Claim 1

A method comprising:
receiving, by a processing device, a first build script file that defines a sequence of build operations associated with a software project, the first build script file identifying a plurality of project dependencies associated with the software project; and
parsing the first build script file to generate a project dependency graph corresponding to the first build script file, wherein the project dependency graph comprises a plurality of vertices representing to a plurality of project dependencies and further comprises a plurality of edges representing relationships between the plurality of the project dependencies.

### Claim 2 (depends on 1)

The method of claim 1 further comprising determining a build order of the plurality of project dependencies using the project dependency graph.

### Claim 3 (depends on 2)

The method of claim 2, wherein each of the project dependencies among the plurality of project dependencies is provided by at least one of an identifier of a second build script file or a definition of a build operation.

### Claim 4 (depends on 3)

The method of claim 3, wherein parsing the first build script file comprises representing the second build script file as a non-terminal vertex among the plurality of vertices of the project dependency graph and recursively parsing the second build script file.

### Claim 5 (depends on 4)

The method of claim 4, wherein the definition of the build operation comprises an identifier of a build tool and an identifier of a software artifact provided by at least one of an identifier of a source code repository or an identifier of a binary module.

### Claim 6 (depends on 5)

The method of claim 5, wherein parsing the first build script file comprises representing the binary module as a terminal vertex among the plurality of project dependencies of the project dependency graph, wherein a terminal vertex is a vertex that is associated with a single edge.

### Claim 7 (depends on 6)

The method of claim 6, wherein determining the build order of the plurality of the project dependencies comprises traversing the project dependency graph starting from terminal vertices among the plurality of vertices.

### Claim 8 (depends on 1)

The method of claim 1 further comprising generating a software artifact repository using the project dependency graph.

### Claim 9 (depends on 8)

The method of claim 8 wherein the generating the software artifact repository comprising traversing the project dependency graph.

### Claim 10

A system comprising:
a memory;
a processing device operatively coupled to the memory to:
receive a first build script file that defines a sequence of build operations associated with a software project, the first build script file identifying a plurality of project dependencies associated with the software project; and
parse the first build script file to generate a project dependency graph corresponding to the first build script file, wherein the project dependency graph comprises a plurality of vertices representing to the plurality of project dependencies and further comprises a plurality of edges representing relationships between the plurality of the project dependencies.

### Claim 11 (depends on 10)

The system of claim 10 wherein the processing device is further to determine a build order of the plurality of project dependencies using the project dependency graph.

### Claim 12 (depends on 11)

The system of claim 11, wherein each of the project dependencies among the plurality of project dependencies is provided by at least one of an identifier of a second build script file or a definition of a build operation.

### Claim 13 (depends on 12)

The system of claim 12 wherein to parse the first build script file, the processing device is to represent the second build script file as a non-terminal vertex among the plurality of vertices of the project dependency graph and recursively parse the second build script file.

### Claim 14 (depends on 13)

The system of claim 13, wherein to parse the first build script file, the processing device is to represent a binary module as a terminal vertex among the plurality of project dependencies of the project dependency graph wherein a terminal vertex is a vertex that is associated with a single edge.

### Claim 15 (depends on 10)

The system of claim 10, wherein the processing device to generate a software artifact repository using the project dependency graph.

### Claim 16

A non-transitory computer-readable storage medium embodying instructions that, when executed by a processing device, will cause the processing device to:
receive a first build script file that defines a sequence of build operations associated with a software project, the first build script file identifying a plurality of project dependencies associated with the software project; and
parse the first build script file to generate a project dependency graph corresponding to the first build script file, wherein the dependency graph comprises a plurality of vertices representing to the plurality of project dependencies and further comprises a plurality of edges representing relationships between the plurality of project dependencies.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the processing device is further to determine a build order of the plurality of project dependencies using the project dependency graph.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein each of the project dependencies among the plurality of project dependencies is provided by at least one of an identifier of a second build script file or a definition of a build operation.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18 wherein to parse the first build script file, the processing device to represent the second build script file as a non-terminal vertex among the plurality of vertices of the project dependency graph and recursively parse the second build script file.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, wherein the processing device to generate a software artifact repository, the processing device is to traverse the project dependency graph.
