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

Commit 0455c41

Browse files
authored
Merge pull request #98 from planetf1/release-2.11
Release 2.11
2 parents ab9ad0c + 978c71e commit 0455c41

File tree

3 files changed

+70
-62
lines changed

3 files changed

+70
-62
lines changed

build.gradle

Lines changed: 53 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
buildscript {
1111
repositories {
12+
1213
maven { url("https://oss.sonatype.org/content/repositories/snapshots") }
1314
mavenCentral()
1415
}
@@ -98,8 +99,8 @@ subprojects {
9899
}
99100
// Maven Central (technically sonatype oss) requires we distribute source and javadoc
100101
java {
101-
sourceCompatibility = "VERSION_1_8"
102-
targetCompatibility = "VERSION_1_8"
102+
sourceCompatibility = JavaVersion.VERSION_1_8
103+
targetCompatibility = JavaVersion.VERSION_1_8
103104
withJavadocJar()
104105
withSourcesJar()
105106
}
@@ -144,53 +145,59 @@ subprojects {
144145
// We only have a single artifact for now - this additional metadata is
145146
// required for publishing to maven central. As above, only if we're running in a build pipeline
146147
// Environment variables are sourced from GitHub secrets in the CI pipeline
147-
if (System.getenv("CI")) {
148-
publishing {
149-
publications {
150-
// definining a publication called 'connector'
151-
connector(MavenPublication) {
152-
// Pick up the standard java artifacts
153-
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)
156-
pom {
157-
description = 'Postgres Connector for Egeria'
158-
url = 'http://egeria.odpi.org'
159-
// No additional properties for now
160-
//properties = [
161-
// propname: "propvalue"
162-
//]
163-
licenses {
164-
// Code
165-
license {
166-
name = 'The Apache License, Version 2.0'
167-
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
168-
}
169-
// Docs
170-
license {
171-
name = 'Creative Commons Attribution 4.0 International (CC BY 4.0)'
172-
url = 'https://creativecommons.org/licenses/by/4.0'
173-
}
148+
publishing {
149+
publications {
150+
// definining a publication called 'connector'
151+
connector(MavenPublication) {
152+
// Pick up the standard java artifacts
153+
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)
156+
pom {
157+
//description = "${description}"
158+
//name = "${name}"
159+
//artifactId = "${project.artifact}"
160+
url = 'http://egeria.odpi.org'
161+
// No additional properties for now
162+
//properties = [
163+
// propname: "propvalue"
164+
//]
165+
licenses {
166+
// Code
167+
license {
168+
name = 'The Apache License, Version 2.0'
169+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
174170
}
175-
developers {
176-
developer {
177-
id = 'planetf1'
178-
name = 'Nigel Jones'
179-
180-
}
171+
// Docs
172+
license {
173+
name = 'Creative Commons Attribution 4.0 International (CC BY 4.0)'
174+
url = 'https://creativecommons.org/licenses/by/4.0'
181175
}
182-
scm {
183-
connection = 'scm:git:git://github.com/odpi/egeria-database-connectors.git'
184-
developerConnection = 'scm:git:ssh://github.com/odpi/egeria/egeria-database-connectors.git'
185-
url = 'http://github.com/odpi/egeria-database-connectors/'
176+
}
177+
developers {
178+
developer {
179+
id = 'planetf1'
180+
name = 'Nigel Jones'
181+
186182
}
187-
188183
}
189-
}
184+
scm {
185+
connection = 'scm:git:git://github.com/odpi/egeria-database-connectors.git'
186+
developerConnection = 'scm:git:ssh://github.com/odpi/egeria/egeria-database-connectors.git'
187+
url = 'http://github.com/odpi/egeria-database-connectors/'
188+
}
190189

190+
}
191+
pom.withXml {
192+
asNode().appendNode('name', "${project.ext.name}")
193+
asNode().appendNode('description', "${project.description}")
194+
}
191195
}
192-
// Release versions get pushed to staging area on maven central, snapshots to snapshot repo
193-
// Secrets for credentials
196+
197+
}
198+
// Release versions get pushed to staging area on maven central, snapshots to snapshot repo
199+
// Secrets for credentials
200+
if (System.getenv("CI")) {
194201
repositories {
195202
maven {
196203
name = 'OSSRH'
@@ -205,8 +212,10 @@ subprojects {
205212
}
206213
}
207214
}
215+
}
208216

209-
// To publish to ossrh we need to sign the artifacts
217+
// To publish to ossrh we need to sign the artifacts
218+
if (System.getenv("CI")) {
210219
signing {
211220
// This is the publication to sign
212221
sign publishing.publications.connector

egeria-connector-postgres/build.gradle

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

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

8-
def name = 'Postgres Connector'
9-
def description = 'Postgres Connector for Egeria'
10-
def artifact = 'egeria-connector-progress'
8+
ext.name = 'Postgres Connector'
9+
description = 'Postgres Connector for Egeria'
10+
ext.artifact = 'egeria-connector-progress'
1111

1212
dependencies {
1313
implementation 'org.postgresql:postgresql'
@@ -19,18 +19,17 @@ dependencies {
1919
}
2020

2121
// 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-
}
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+
//}
3635

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)