Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #99 from planetf1/release-2.11
Browse files Browse the repository at this point in the history
Release 2.11
  • Loading branch information
planetf1 authored Jul 6, 2021
2 parents 0455c41 + 6692f27 commit 684c158
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 35 deletions.
21 changes: 4 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -141,27 +141,14 @@ subprojects {

}


// We only have a single artifact for now - this additional metadata is
// required for publishing to maven central. As above, only if we're running in a build pipeline
// Environment variables are sourced from GitHub secrets in the CI pipeline
// required for publishing to maven central. Only doing signing in 'CI'
publishing {
publications {
// definining a publication called 'connector'
connector(MavenPublication) {
// Pick up the standard java artifacts
from components.java
// by default, gradle's groupId, artifactId, version are used for the maven coordinates
// but we need additional metadata to align with Egeria (more may need to be added)
pom {
//description = "${description}"
//name = "${name}"
//artifactId = "${project.artifact}"
url = 'http://egeria.odpi.org'
// No additional properties for now
//properties = [
// propname: "propvalue"
//]
licenses {
// Code
license {
Expand All @@ -186,15 +173,15 @@ subprojects {
developerConnection = 'scm:git:ssh://github.com/odpi/egeria/egeria-database-connectors.git'
url = 'http://github.com/odpi/egeria-database-connectors/'
}

}
// Override the project name & description for the pom based on properties set in the child build.gradle (hard to default & required for maven central)
pom.withXml {
asNode().appendNode('name', "${project.ext.name}")
asNode().appendNode('description', "${project.description}")
}
}

}

// Release versions get pushed to staging area on maven central, snapshots to snapshot repo
// Secrets for credentials
if (System.getenv("CI")) {
Expand All @@ -214,7 +201,7 @@ subprojects {
}
}

// To publish to ossrh we need to sign the artifacts
// To publish to ossrh we need to sign the artifacts - only in CI
if (System.getenv("CI")) {
signing {
// This is the publication to sign
Expand Down
21 changes: 3 additions & 18 deletions egeria-connector-postgres/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* Copyright Contributors to the ODPi Egeria project.
*/

// Artifact names are taken from the directory by default, but clearer if we are explicit here

// Artifact names are taken from the directory by default, set in settings.gradle to override
// The 'name' for the maven artifact, and description are set here
ext.name = 'Postgres Connector'
description = 'Postgres Connector for Egeria'
ext.artifact = 'egeria-connector-progress'

// Dependencies for this project. Versions set in constraints in root project.
dependencies {
implementation 'org.postgresql:postgresql'
implementation 'org.slf4j:slf4j-api'
Expand All @@ -18,18 +18,3 @@ dependencies {
implementation 'org.odpi.egeria:open-connector-framework'
}

// merge the new description.artifact id into the publication configuration
//afterEvaluate {
// publishing {
// publications {
// connector(MavenPublication) {
// pom {
// description = "${description}"
// artifactId = "${artifact}"
// name = "${name}"
// }
// }
// }
// }
//}

1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ pluginManagement {
rootProject.name = 'egeria-database-connectors'

include(':egeria-connector-postgres')

0 comments on commit 684c158

Please sign in to comment.