Skip to content

Commit

Permalink
SQL-2185: Generate and publish a public third-party dependencies repo…
Browse files Browse the repository at this point in the history
…rt for JDBC (#273)

* Add augmented sbom to maven repository

* change path

* add sbom artifact

* remove redundant sbom task

* update sbom release path

* use  in path
  • Loading branch information
EthanHardyMongo authored Jun 28, 2024
1 parent 7671fd2 commit 1a111b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .evg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ tasks:
depends_on:
- name: "publish-maven"
variant: "release"
- name: sbom
variant: code-quality-and-correctness
- name: semgrep
variant: code-quality-and-correctness
exec_timeout_secs: 300 # 5m
Expand Down Expand Up @@ -225,7 +223,7 @@ functions:
aws_key: ${release_aws_key}
aws_secret: ${release_aws_secret}
local_file: artifacts/ssdlc/mongodb-jdbc-${MDBJDBC_VER}.sbom.json
remote_file: mongodb-jdbc/mongodb-jdbc-${MDBJDBC_VER}.sbom.json
remote_file: mongo-jdbc-driver/mongodb-jdbc-${MDBJDBC_VER}.sbom.json
content_type: application/json
bucket: translators-connectors-releases
permissions: public-read
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ allprojects {
compile {
extendsFrom aspects
}
sbom
}

dependencies {
Expand Down
4 changes: 3 additions & 1 deletion gradle/publish.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'signing'
apply plugin: 'io.codearte.nexus-staging'

def augmentedSbom = artifacts.add('sbom', file("$rootDir/artifacts/ssdlc/mongo-jdbc-driver.augmented.sbom.json"))

publishing {
publications {
mavenJava(MavenPublication) {
Expand All @@ -10,7 +12,7 @@ publishing {
}
artifact shadowJar
artifact javadocJar
artifact(file('artifacts/ssdlc/mongo-jdbc-driver.augmented.sbom.json'))
artifact augmentedSbom
pom {
name = 'JDBC Driver'
description = 'JDBC Driver for MongoDB Atlas SQL interface'
Expand Down

0 comments on commit 1a111b6

Please sign in to comment.