Skip to content

Commit f06d425

Browse files
Add pom metadata and script for central
* since repo.spring.io is no longer an option
1 parent f9d14fb commit f06d425

File tree

6 files changed

+44
-66
lines changed

6 files changed

+44
-66
lines changed

ci/create-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SNAPSHOT=$2
88
./mvnw versions:set -DnewVersion=$RELEASE -DgenerateBackupPoms=false
99
git add .
1010
git commit --message "v$RELEASE Release"
11-
git tag -s v$RELEASE -m "v$RELEASE"
11+
git tag v$RELEASE
1212

1313
git reset --hard HEAD^1
1414
./mvnw versions:set -DnewVersion=$SNAPSHOT -DgenerateBackupPoms=false

ci/deploy.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ set -euo pipefail
44

55
[[ -d $PWD/maven && ! -d $HOME/.m2 ]] && ln -s $PWD/maven $HOME/.m2
66

7+
REPOSITORY="${PWD}"/repository
8+
79
cd java-buildpack-client-certificate-mapper
8-
./mvnw -q -Dmaven.test.skip=true deploy
10+
./mvnw -q -Dmaven.test.skip=true deploy -DcreateChecksum=true -DaltDeploymentRepository="local::default::file://${REPOSITORY}"

ci/deploy.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

ci/promote-to-maven-central.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
export BUILD_INFO_LOCATION=$(pwd)/repository/build-info.json
6+
7+
java -jar /concourse-release-scripts.jar publishToCentral 'RELEASE' "$BUILD_INFO_LOCATION" repository
8+
9+
echo "Sync complete"

ci/unit-test.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

pom.xml

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,25 @@
3232
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3333
</properties>
3434

35+
<developers>
36+
<developer>
37+
<name>VMware</name>
38+
<email>[email protected]</email>
39+
<organization>VMware, Inc.</organization>
40+
<organizationUrl>https://www.cloudfoundry.org</organizationUrl>
41+
</developer>
42+
</developers>
43+
<licenses>
44+
<license>
45+
<name>The Apache License, Version 2.0</name>
46+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
47+
</license>
48+
</licenses>
49+
<url>https://github.com/cloudfoundry/java-buildpack-client-certificate-mapper</url>
50+
<scm>
51+
<url>https://github.com/cloudfoundry/java-buildpack-client-certificate-mapper</url>
52+
</scm>
53+
3554
<modules>
3655
<module>java-buildpack-client-certificate-mapper</module>
3756
<module>java-buildpack-client-certificate-mapper-jakarta</module>
@@ -87,41 +106,27 @@
87106
</configuration>
88107
</plugin>
89108
<plugin>
90-
<groupId>org.jfrog.buildinfo</groupId>
91-
<artifactId>artifactory-maven-plugin</artifactId>
92-
<version>3.6.2</version>
93-
<inherited>false</inherited>
109+
<groupId>org.apache.maven.plugins</groupId>
110+
<artifactId>maven-javadoc-plugin</artifactId>
111+
<version>3.6.0</version>
112+
<configuration>
113+
<links>
114+
<link>https://projectreactor.io/docs/core/release/api/</link>
115+
</links>
116+
<quiet>true</quiet>
117+
<source>8</source>
118+
</configuration>
94119
<executions>
95120
<execution>
96-
<id>build-info</id>
121+
<id>attach-javadocs</id>
97122
<goals>
98-
<goal>publish</goal>
123+
<goal>jar</goal>
99124
</goals>
100-
<configuration>
101-
<publisher>
102-
<contextUrl>https://repo.spring.io</contextUrl>
103-
<username>{{ARTIFACTORY_USERNAME}}</username>
104-
<password>{{ARTIFACTORY_PASSWORD}}</password>
105-
<repoKey>{{ARTIFACTORY_REPO_KEY|"libs-release-local"}}</repoKey>
106-
<snapshotRepoKey>{{ARTIFACTORY_SNAPSHOT_REPO_KEY|"libs-snapshot-local"}}</snapshotRepoKey>
107-
</publisher>
108-
</configuration>
109125
</execution>
110126
</executions>
111127
</plugin>
112128
</plugins>
113129
</pluginManagement>
114130
</build>
115131

116-
<pluginRepositories>
117-
<pluginRepository>
118-
<snapshots>
119-
<enabled>false</enabled>
120-
</snapshots>
121-
<id>central</id>
122-
<name>bintray-plugins</name>
123-
<url>https://jcenter.bintray.com</url>
124-
</pluginRepository>
125-
</pluginRepositories>
126-
127132
</project>

0 commit comments

Comments
 (0)