Skip to content

Commit d3794c5

Browse files
author
Sergio Andres Mejia Tovar
committed
[WIT-2944] Publish java tech adapter framework to maven central
# Bug fixes Fixes on Central publish # Related issue Closes WIT-2944 # Definition of Done So you are going to put your MR in review, but are you sure you have done all things listed here? ## All Developments - [ ] **Feature was implemented as per the requirements** - [ ] **If some code parts are complex they must be commented with code documentation** - [ ] **Unit, integration and E2E tests have been performed and code coverage is not reduced**, so that new code is covered - [ ] **CI/CD is successful** - [ ] **Exceptions and errors are handled, returning meaningful errors to the user**, without letting the underlying framework to respond with a generic Internal Server Error. Technical details are stored in the errors/problems and not in the user message - [ ] **Documentation (user documentation, HLD and others) has been updated** - Documentation has been updated with explanation of the new feature if it's user-facing (e.g. component now has additional setting) or it impacts them in some other way (e.g. optional field that becomes mandatory) - If it is a breaking change, we have documented it as such in the MR description in a "Breaking Changes" section - [ ] **Helm chart and other DevOps artifacts** have been updated and are valid deployment tools for the new version - [ ] **Problematic information (sensitive information, credentials, customer information or other intellectual property) is not included in the changes** as they could end up being public (most SPs are already published and automatically mirrored on every merge) - [ ] **Feature doesn't negatively affect any existing environments**, especially the clients Playgrounds. This means that merging it to master and deploying it to these environments will not break them and **no manual operations that are not reported in the documentation will be needed** - [ ] **If dependencies were changed, be sure that they will not impact the project**, that their license is compatible, and that they introduce no vulnerabilities - [ ] **Security, Authentication and Authorization have been considered**. No SQL injection, tokens handling, RBAC integration. Common security vulnerabilities identified and resolved - [ ] **The Java Scaffold is updated to support and test the new features**, especially if they're breaking changes ## API related Development - [ ] **API Parameters and return body are compliant** with the API specification - [ ] **Errors are correctly handled**, respecting the type of errors return bodies and responses for each endpoint - [ ] **API is logging in compliance with audit standards**, presence of sensitive information for GDPR has been assessed and removed or managed in case is needed ## DB related Development - [ ] **The database schema is designed to accurately** represent the data model and meet the requirements - [ ] **Tables, relationships, and constraints (e.g. primary keys, foreign keys, unique constraints) are defined appropriately**, following best practices and a common naming convention - [ ] **Sensitive data is stored securely**, encrypted if required, and access is restricted to authorized users - [ ] **Migration scripts to upgrade and downgrade the database have been implemented and tested**
1 parent 3d85931 commit d3794c5

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

ci_settings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<servers>
44
<server>
55
<id>central</id>
6-
<username>${SONATYPE_USER}</username>
7-
<password>${SONATYPE_PASSWORD}</password>
6+
<username>${env.SONATYPE_USER}</username>
7+
<password>${env.SONATYPE_PASSWORD}</password>
88
</server>
99
<server>
1010
<id>gpg.passphrase</id>
11-
<passphrase>${MAVEN_GPG_PASSPHRASE}</passphrase>
11+
<passphrase>${env.MAVEN_GPG_PASSPHRASE}</passphrase>
1212
</server>
1313
<server>
1414
<id>gitlab-maven</id>

pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
<artifactId>java-tech-adapter-framework</artifactId>
1818
<version>${revision}</version>
1919

20+
<name>Java Tech Adapter Framework</name>
21+
<description>A Spring Boot framework to streamline the experience of creating Witboost Tech Adapters by
22+
standardizing the API layer, descriptor parsing, base configuration, and more.</description>
23+
<url>https://witboost.com/</url>
24+
2025
<properties>
2126
<maven.compiler.source>17</maven.compiler.source>
2227
<maven.compiler.target>17</maven.compiler.target>
@@ -99,6 +104,8 @@
99104
<artifactId>flatten-maven-plugin</artifactId>
100105
<version>1.6.0</version>
101106
<configuration>
107+
<updatePomFile>true</updatePomFile>
108+
<flattenMode>resolveCiFriendliesOnly</flattenMode>
102109
</configuration>
103110
<executions>
104111
<!-- enable flattening -->
@@ -316,6 +323,9 @@
316323
<configuration>
317324
<publishingServerId>central</publishingServerId>
318325
<autoPublish>false</autoPublish>
326+
<excludeArtifacts>
327+
<artifact>report</artifact>
328+
</excludeArtifacts>
319329
</configuration>
320330
</plugin>
321331
</plugins>

0 commit comments

Comments
 (0)