Skip to content

Commit 6cd2f8d

Browse files
authored
OSSRH Central Portal migration (#30)
* move from OSSRH to Central Portal publishing * https://central.sonatype.org/faq/what-is-different-between-central-portal-and-legacy-ossrh/ * remove unused OSSRH snapshot repository Other related release changes * add Maven version flag * help tidy-maven-plugin ignore maven-linkcheck-plugin's malformed temporary pom.xml * fix broken image * update Google Analytics to GA4 * reference repository copy of LGPL * www.gnu.org is not connecting from my IP
1 parent 27efd66 commit 6cd2f8d

5 files changed

Lines changed: 27 additions & 19 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ target
1313
*.jar
1414
*.war
1515
*.ear
16+
17+
# maven-linkcheck-plugin
18+
/pom[0-9]*.xml

.mvn/maven.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-V

pom.xml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<licenses>
1818
<license>
1919
<name>GNU Lesser General Public License 3.0</name>
20-
<url>https://www.gnu.org/licenses/lgpl-3.0.txt</url>
20+
<url>https://raw.githubusercontent.com/chabala/brick-control-lab/refs/heads/master/COPYING.LESSER</url>
2121
<distribution>repo</distribution>
2222
</license>
2323
</licenses>
@@ -50,10 +50,6 @@
5050
<url>${ghProjectUrl}/actions</url>
5151
</ciManagement>
5252
<distributionManagement>
53-
<snapshotRepository>
54-
<id>ossrh</id>
55-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
56-
</snapshotRepository>
5753
<site>
5854
<id>github-pages</id>
5955
<url>${project.scm.connection}</url>
@@ -69,7 +65,7 @@
6965
<ghProjectUrl>https://github.com/${ghUser}/${project.artifactId}</ghProjectUrl>
7066
<ghPagesUrl>https://${ghUser}.github.io/${project.artifactId}/</ghPagesUrl>
7167
<slf4j.version>1.7.29</slf4j.version>
72-
<googleAnalyticsAccountId>UA-256611-4</googleAnalyticsAccountId>
68+
<googleAnalyticsAccountId>G-C4CXTKCF75</googleAnalyticsAccountId>
7369
<sonar.organization>${ghUser}</sonar.organization>
7470
</properties>
7571

@@ -486,14 +482,14 @@
486482
<version>4.3.0</version>
487483
</plugin>
488484
<plugin>
489-
<groupId>org.sonatype.plugins</groupId>
490-
<artifactId>nexus-staging-maven-plugin</artifactId>
491-
<version>1.6.8</version>
485+
<groupId>org.sonatype.central</groupId>
486+
<artifactId>central-publishing-maven-plugin</artifactId>
487+
<version>0.8.0</version>
492488
<extensions>true</extensions>
493489
<configuration>
494-
<serverId>ossrh</serverId>
495-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
496-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
490+
<publishingServerId>central</publishingServerId>
491+
<autoPublish>true</autoPublish>
492+
<waitUntil>published</waitUntil>
497493
</configuration>
498494
</plugin>
499495
<plugin>
@@ -652,14 +648,17 @@ for (int i=0; i<files.length; i++) {
652648
<plugin>
653649
<groupId>org.codehaus.mojo</groupId>
654650
<artifactId>tidy-maven-plugin</artifactId>
655-
<version>1.3.0</version>
651+
<version>1.4.0</version>
656652
<executions>
657653
<execution>
658654
<id>validate</id>
659655
<phase>validate</phase>
660656
<goals>
661657
<goal>check</goal>
662658
</goals>
659+
<configuration>
660+
<pomFile>${project.basedir}/pom.xml</pomFile>
661+
</configuration>
663662
</execution>
664663
</executions>
665664
</plugin>
@@ -768,7 +767,7 @@ for (int i=0; i<files.length; i++) {
768767
<plugins>
769768
<plugin>
770769
<artifactId>maven-gpg-plugin</artifactId>
771-
<version>1.6</version>
770+
<version>3.2.7</version>
772771
<executions>
773772
<execution>
774773
<id>sign-artifacts</id>

src/site/markdown/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Library for controlling the [LEGO® control lab interface][1].
77
### What is the control lab?
88

99
<a href="https://www.bricklink.com/catalogItemPic.asp?S=9751-1" class="nodecorate">
10-
<img src="https://camo.githubusercontent.com/a5d3217cb2e92cc029de96ade710af24375c6c80/68747470733a2f2f7777772e627269636b6c696e6b2e636f6d2f534c2f393735312d312e6a7067"
10+
<img src="https://web.archive.org/web/20200103084341if_/https://www.bricklink.com/SL/9751-1.jpg"
1111
alt="control lab" align="right" width="372" height="240"/>
1212
</a>
1313

src/site/site.xml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
<name>${project.artifactId}</name>
2727
<href>${ghPagesUrl}</href>
2828
</bannerLeft>
29-
<googleAnalyticsAccountId>${googleAnalyticsAccountId}</googleAnalyticsAccountId>
3029
<publishDate />
3130
<version />
3231
<skin>
@@ -35,9 +34,15 @@
3534
<version>1.2</version>
3635
</skin>
3736
<body>
38-
<head>
39-
<![CDATA[<meta name="viewport" content="width=device-width, initial-scale=1.0" />]]>
40-
</head>
37+
<head><![CDATA[
38+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
39+
<script async src="https://www.googletagmanager.com/gtag/js?id=${googleAnalyticsAccountId}"></script>
40+
<script>
41+
window.dataLayer = window.dataLayer || [];
42+
function gtag(){window.dataLayer.push(arguments);}
43+
gtag('js', new Date());
44+
gtag('config', '${googleAnalyticsAccountId}');
45+
</script>]]></head>
4146
<links>
4247
<item name="${project.artifactId}" href="${ghPagesUrl}"/>
4348
<item name="GitHub repo" href="${ghProjectUrl}" />

0 commit comments

Comments
 (0)