forked from jeremylong/Open-Vulnerability-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
78 lines (70 loc) · 2.71 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'vuln.tools.java-application-conventions'
id 'org.springframework.boot' version '2.7.11'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}
description = 'A java CLI to call the NVD API'
ext['httpclient5.version'] = '5.2.1'
ext['httpcore5.version'] = '5.2'
ext['httpcore5-h2.version'] = '5.2'
dependencies {
implementation project(':open-vulnerability-clients')
implementation project(':open-vulnerability-store')
implementation 'info.picocli:picocli-spring-boot-starter:4.7.4'
implementation 'com.diogonunes:JColor:5.5.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2'
implementation 'jakarta.persistence:jakarta.persistence-api:3.1.0'
implementation 'jakarta.transaction:jakarta.transaction-api:2.0.1'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.0'
implementation 'com.sun.activation:jakarta.activation:2.0.1'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
jar {
enabled = false
}
bootJar {
launchScript()
}
application {
mainClass = 'io.github.jeremylong.vulnz.cli.Application'
}
task generateAutocomplete(type: JavaExec) {
mainClass = 'picocli.AutoComplete'
classpath = sourceSets.main.runtimeClasspath
args = ['--force', '--name', 'vulnz', '--completionScript', "${buildDir}/resources/main/vulnz.completion.sh", 'io.github.jeremylong.vulnz.cli.commands.MainCommand']
}
tasks.named("classes") { finalizedBy("generateAutocomplete") }
processResources {
filter ReplaceTokens, tokens: [version: project.version]
}
publishing {
publications {
maven(MavenPublication) {
artifact tasks.named("bootJar")
pom {
url = 'https://github.com/jeremylong/vuln-tools/'
description = project.description
name = project.name
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://github.com/jeremylong/vuln-tools/blob/main/LICENSE.txt'
}
}
developers {
developer {
id = 'jeremy.long'
name = 'Jeremy Long'
}
}
scm {
url = 'https://github.com/jeremylong/vuln-tools'
connection = 'scm:git:https://github.com/jeremylong/vuln-tools.git'
developerConnection = 'scm:git:https://github.com/jeremylong/vuln-tools.git'
}
}
}
}
}