forked from CycloneDX/cyclonedx-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (44 loc) · 1.42 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
plugins {
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.12.0'
id 'maven-publish'
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile(group: 'org.cyclonedx', name: 'cyclonedx-core-java', version: '5.0.4') {
// gradle-api already includes an slf4j binding
exclude group: 'org.apache.logging.log4j', module: 'log4j-slf4j-impl'
}
compile 'commons-codec:commons-codec:1.15'
compile 'commons-io:commons-io:2.8.0'
compile 'org.apache.maven:maven-core:3.5.0'
}
group = 'com.cyclonedx'
version = '1.4.0'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
pluginBundle {
website = 'http://cyclonedx.org'
vcsUrl = 'https://github.com/CycloneDX/cyclonedx-gradle-plugin.git'
tags = [ 'cyclonedx', 'dependency', 'dependencies', 'owasp', 'inventory', 'bom', 'sbom' ]
plugins {
cycloneDxPlugin {
displayName = 'CycloneDX BOM Generator'
description = 'The CycloneDX Gradle plugin creates an aggregate of all direct and transitive dependencies of a project and creates a valid CycloneDX Software Bill of Materials (SBOM).'
}
}
}
gradlePlugin {
plugins {
cycloneDxPlugin {
id = 'org.cyclonedx.bom'
implementationClass = 'org.cyclonedx.gradle.CycloneDxPlugin'
}
}
}