Skip to content

Commit

Permalink
addedPublishing (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave-Cent authored Dec 8, 2023
1 parent ccad299 commit e6f36c7
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions processing-status-cicd-poc-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,32 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
}
}

group "gov.cdc.ocio"
group "gov.cdc.dataexchange.processingapi"
version "1.0.0-SNAPSHOT"

configurations {
// create a separate configuration for the agent since it should not be a normal dependency
agent
}

publishing {
publications {
maven(MavenPublication){
from(components["java"])
}
}
repositories {
maven {
name 'nexus'
url 'https://imagehub.cdc.gov/repository/maven-ede-snapshot/'
credentials {
username System.getenv("IMAGEHUB_USERNAME")
password System.getenv("IMAGEHUB_PASSWORD")
}
}
}
}

dependencies {
implementation "com.microsoft.azure.functions:azure-functions-java-library:3.0.0"
implementation 'com.azure:azure-cosmos:4.42.0'
Expand Down Expand Up @@ -57,18 +75,7 @@ targetCompatibility = "1.8"
repositories {
mavenCentral()
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "https://imagehub.cdc.gov/repository/maven-ede-snapshot/") {
authentication(userName: System.getenv("IMAGEHUB_USERNAME"), password: System.getenv("IMAGEHUB_PASSWORD"))
}
pom.version = "1.0.0-SNAPSHOT"
pom.artifactId = "processing-status-fn"
pom.groupId = "gov.cdc.dataexchange.processingapi"
}
}
}


azurefunctions {
subscription = '01f9b1b1-a130-4031-ba25-71771007d3ca'
Expand Down

0 comments on commit e6f36c7

Please sign in to comment.