Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 32e6061

Browse files
committed
Merge branch 'main' of gitlab.com:bot-by/slf4j-aws-lambda
2 parents 07818dc + 68ad36c commit 32e6061

File tree

3 files changed

+38
-14
lines changed

3 files changed

+38
-14
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ spotbugs-sast:
5252
release:
5353
stage: deploy
5454
script:
55-
- mvn $MAVEN_CLI_OPTS -s ci_settings.xml clean deploy -Dchangelist= -ntp -Psources,javadocs,release -DaltDeploymentRepository=gitlab-maven::default::${CI_SERVER_URL}/api/v4/projects/${CI_PROJECT_ID}/packages/maven
55+
- mvn $MAVEN_CLI_OPTS -s ci_settings.xml clean deploy -Dchangelist= -ntp -Psources,javadocs,release
5656
only:
5757
- tags
5858

5959
pages:
6060
stage: deploy
6161
script:
6262
- cp changelog.md src/site/markdown
63-
- mvn clean verify site -Dchangelist= -Pjavadocs
63+
- mvn clean verify site -Dchangelist= -Pjavadocs,site
6464
- mv target/site public
6565
- mv target/apidocs public
6666
artifacts:

ci_settings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@
1414
</httpHeaders>
1515
</configuration>
1616
</server>
17+
<server>
18+
<id>ossrh</id>
19+
<username>${NEXUS_USERNAME}</username>
20+
<password>${NEXUS_PASSWORD}</password>
21+
</server>
1722
</servers>
1823
</settings>

pom.xml

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
<docs-maven-skin.version>2.2.6</docs-maven-skin.version>
9292
<info-reports-plugin.version>3.3.0</info-reports-plugin.version>
9393
<sign-plugin.version>1.0.1</sign-plugin.version>
94+
<nexus-staging-plugin.version>1.6.13</nexus-staging-plugin.version>
9495
<!-- test -->
9596
<junit-jupiter.version>5.8.2</junit-jupiter.version>
9697
<mockito.version>4.5.1</mockito.version>
@@ -365,18 +366,6 @@
365366
</execution>
366367
</executions>
367368
</plugin>
368-
<plugin>
369-
<groupId>org.apache.maven.plugins</groupId>
370-
<artifactId>maven-site-plugin</artifactId>
371-
<version>${site-plugin.version}</version>
372-
<dependencies>
373-
<dependency>
374-
<groupId>com.bernardomg.maven.skins</groupId>
375-
<artifactId>docs-maven-skin</artifactId>
376-
<version>${docs-maven-skin.version}</version>
377-
</dependency>
378-
</dependencies>
379-
</plugin>
380369
</plugins>
381370
</build>
382371
<reporting>
@@ -482,6 +471,36 @@
482471
</execution>
483472
</executions>
484473
</plugin>
474+
<plugin>
475+
<groupId>org.sonatype.plugins</groupId>
476+
<artifactId>nexus-staging-maven-plugin</artifactId>
477+
<version>${nexus-staging-plugin.version}</version>
478+
<extensions>true</extensions>
479+
<configuration>
480+
<serverId>ossrh</serverId>
481+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
482+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
483+
</configuration>
484+
</plugin>
485+
</plugins>
486+
</build>
487+
</profile>
488+
<profile>
489+
<id>site</id>
490+
<build>
491+
<plugins>
492+
<plugin>
493+
<groupId>org.apache.maven.plugins</groupId>
494+
<artifactId>maven-site-plugin</artifactId>
495+
<version>${site-plugin.version}</version>
496+
<dependencies>
497+
<dependency>
498+
<groupId>com.bernardomg.maven.skins</groupId>
499+
<artifactId>docs-maven-skin</artifactId>
500+
<version>${docs-maven-skin.version}</version>
501+
</dependency>
502+
</dependencies>
503+
</plugin>
485504
</plugins>
486505
</build>
487506
</profile>

0 commit comments

Comments
 (0)