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

Commit 684c158

Browse files
authored
Merge pull request #99 from planetf1/release-2.11
Release 2.11
2 parents 0455c41 + 6692f27 commit 684c158

File tree

3 files changed

+8
-35
lines changed

3 files changed

+8
-35
lines changed

build.gradle

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -141,27 +141,14 @@ subprojects {
141141

142142
}
143143

144-
145144
// We only have a single artifact for now - this additional metadata is
146-
// required for publishing to maven central. As above, only if we're running in a build pipeline
147-
// Environment variables are sourced from GitHub secrets in the CI pipeline
145+
// required for publishing to maven central. Only doing signing in 'CI'
148146
publishing {
149147
publications {
150-
// definining a publication called 'connector'
151148
connector(MavenPublication) {
152-
// Pick up the standard java artifacts
153149
from components.java
154-
// by default, gradle's groupId, artifactId, version are used for the maven coordinates
155-
// but we need additional metadata to align with Egeria (more may need to be added)
156150
pom {
157-
//description = "${description}"
158-
//name = "${name}"
159-
//artifactId = "${project.artifact}"
160151
url = 'http://egeria.odpi.org'
161-
// No additional properties for now
162-
//properties = [
163-
// propname: "propvalue"
164-
//]
165152
licenses {
166153
// Code
167154
license {
@@ -186,15 +173,15 @@ subprojects {
186173
developerConnection = 'scm:git:ssh://github.com/odpi/egeria/egeria-database-connectors.git'
187174
url = 'http://github.com/odpi/egeria-database-connectors/'
188175
}
189-
190176
}
177+
// Override the project name & description for the pom based on properties set in the child build.gradle (hard to default & required for maven central)
191178
pom.withXml {
192179
asNode().appendNode('name', "${project.ext.name}")
193180
asNode().appendNode('description', "${project.description}")
194181
}
195182
}
196-
197183
}
184+
198185
// Release versions get pushed to staging area on maven central, snapshots to snapshot repo
199186
// Secrets for credentials
200187
if (System.getenv("CI")) {
@@ -214,7 +201,7 @@ subprojects {
214201
}
215202
}
216203

217-
// To publish to ossrh we need to sign the artifacts
204+
// To publish to ossrh we need to sign the artifacts - only in CI
218205
if (System.getenv("CI")) {
219206
signing {
220207
// This is the publication to sign

egeria-connector-postgres/build.gradle

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* Copyright Contributors to the ODPi Egeria project.
44
*/
55

6-
// Artifact names are taken from the directory by default, but clearer if we are explicit here
7-
6+
// Artifact names are taken from the directory by default, set in settings.gradle to override
7+
// The 'name' for the maven artifact, and description are set here
88
ext.name = 'Postgres Connector'
99
description = 'Postgres Connector for Egeria'
10-
ext.artifact = 'egeria-connector-progress'
1110

11+
// Dependencies for this project. Versions set in constraints in root project.
1212
dependencies {
1313
implementation 'org.postgresql:postgresql'
1414
implementation 'org.slf4j:slf4j-api'
@@ -18,18 +18,3 @@ dependencies {
1818
implementation 'org.odpi.egeria:open-connector-framework'
1919
}
2020

21-
// merge the new description.artifact id into the publication configuration
22-
//afterEvaluate {
23-
// publishing {
24-
// publications {
25-
// connector(MavenPublication) {
26-
// pom {
27-
// description = "${description}"
28-
// artifactId = "${artifact}"
29-
// name = "${name}"
30-
// }
31-
// }
32-
// }
33-
// }
34-
//}
35-

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ pluginManagement {
1616
rootProject.name = 'egeria-database-connectors'
1717

1818
include(':egeria-connector-postgres')
19+

0 commit comments

Comments
 (0)