Skip to content

Commit

Permalink
fix: correct build and release issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Nov 28, 2022
1 parent dd56f05 commit 8aac432
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ java {
signing {
sign publishing.publications
}
sourcesJar.dependsOn(compileJava)
sourcesJar.dependsOn(compileTestJava)
javadoc.dependsOn(compileTestJava)

publishing {
repositories {
Expand Down
7 changes: 6 additions & 1 deletion nvd-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
id 'org.jsonschema2dataclass' version '4.5.0'
}

description = 'A java library to call the NVD API'

sourceSets {
main {
java {
Expand Down Expand Up @@ -32,6 +34,8 @@ jsonSchema2Pojo {
targetVersion = "1.8"
}

sourcesJar.dependsOn('generateJsonSchema2DataClass')

publishing {
publications {
maven(MavenPublication) {
Expand All @@ -41,7 +45,8 @@ publishing {
from components.java
pom {
url = 'https://github.com/jeremylong/vuln-tools/'

description = project.description
name = project.name
licenses {
license {
name = 'The Apache License, Version 2.0'
Expand Down
15 changes: 6 additions & 9 deletions vulnz/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ plugins {
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}

description = 'A java CLI to call the NVD API'

dependencies {
implementation project(':nvd-lib')
implementation 'info.picocli:picocli-spring-boot-starter:4.6.3'
Expand All @@ -16,7 +18,7 @@ dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
jar {
enabled = true
enabled = false
}
bootJar {
launchScript()
Expand All @@ -39,11 +41,12 @@ processResources {

publishing {
publications {
bootJava(MavenPublication) {
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'
Expand All @@ -63,11 +66,5 @@ publishing {
}
}
}
mavenJava(MavenPublication) {
artifact tasks.named("javadocJar")
}
mavenJava(MavenPublication) {
artifact tasks.named("sourcesJar")
}
}
}

0 comments on commit 8aac432

Please sign in to comment.