sinch-sdk-java
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.sinch.sdk</groupId> <artifactId>sinch-sdk-java</artifactId> <version>1.0.0</version> </dependency>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.sinch.sdk</groupId> <artifactId>sinch-sdk-java</artifactId> <version>1.0.0</version> <name>Sinch Java SDK</name> <description> SDK providing a Java API for the Sinch REST APIs. </description> <url>https://github.com/sinch/sinch-sdk-java</url> <organization> <name>Sinch</name> <url>https://www.sinch.com</url> </organization> <licenses> <license> <name>The Apache License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> </license> </licenses> <developers> <developer> <name>Jean-Pierre Portier</name> <email>jean-pierre.portier at sinch dot com</email> <organization>Sinch</organization> <organizationUrl>https://www.sinch.com</organizationUrl> </developer> </developers> <scm> <url>https://github.com/sinch/sinch-sdk-java.git</url> <connection>scm:git:${project.scm.url}</connection> <developerConnection>scm:git:${project.scm.url}</developerConnection> <tag>v1.0.0</tag> </scm> <issueManagement> <url>https://github.com/sinch/sinch-sdk-java/issues</url> <system>GitHub</system> </issueManagement> <distributionManagement> <snapshotRepository> <id>ossrh</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <!-- compilation --> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.testSource>1.8</maven.compiler.testSource> <maven.compiler.testTarget>1.8</maven.compiler.testTarget> <maven.compiler.release>8</maven.compiler.release> <maven.compiler.version>3.8.0</maven.compiler.version> <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation> <maven.compiler.showWarnings>true</maven.compiler.showWarnings> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <!-- 3rd party dependencies --> <jackson.version>2.15.2</jackson.version> <httpclient5.version>5.2.1</httpclient5.version> <!-- tests --> <mockito.version>5.8.0</mockito.version> <maven.failsafe.plugin.version>3.2.1</maven.failsafe.plugin.version> <maven-surefire-plugin.version>3.2.1</maven-surefire-plugin.version> <!-- releasing --> <maven.source.plugin.version>3.2.1</maven.source.plugin.version> <maven.javadoc.plugin.version>3.6.0</maven.javadoc.plugin.version> <maven-release-plugin.version>3.0.1</maven-release-plugin.version> <maven-gpg-plugin.version>1.5</maven-gpg-plugin.version> <nexus-staging-maven-plugin>1.6.13</nexus-staging-maven-plugin> </properties> <build> <resources> <resource> <directory>client/resources</directory> <filtering>true</filtering> </resource> </resources> <pluginManagement> <plugins> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.3.1</version> <configuration> <propertiesEncoding>UTF-8</propertiesEncoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${maven.javadoc.plugin.version}</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> <goal>javadoc</goal> </goals> </execution> </executions> <configuration> <doctitle>${project.name}</doctitle> <show>public</show> <sourcepath>core/src/main; client/src/main; openapi-contracts/src/main; </sourcepath> <excludePackageNames> com.sinch.sdk.auth; com.sinch.sdk.auth*; com.sinch.sdk.core.http; com.sinch.sdk.core.http.*; com.sinch.sdk.core.utils.databind; com.sinch.sdk.http; com.sinch.sdk.pagination.Page*; **.dto.*; **.api.*; **.adapters.converters; **.adapters; </excludePackageNames> <sourceFileExcludes> <sourceFileExclude>**/pagination/Page*.java</sourceFileExclude> <sourceFileExclude>**/AbstractOpenApiSchema.java</sourceFileExclude> </sourceFileExcludes> <groups> <group> <title>Sinch Client</title> <packages>com.sinch.sdk*</packages> </group> <group> <title>Core package</title> <packages>com.sinch.sdk.core*</packages> </group> <group> <title>Numbers</title> <packages>com.sinch.sdk.domains.numbers*</packages> </group> <group> <title>SMS</title> <packages>com.sinch.sdk.domains.sms*</packages> </group> <group> <title>Verification</title> <packages>com.sinch.sdk.domains.verification*</packages> </group> <group> <title>Voice</title> <packages>com.sinch.sdk.domains.voice*</packages> </group> </groups> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.2.0</version> <executions> <execution> <id>add-sources</id> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>core/src/main</source> <source>openapi-contracts/src/main</source> <source>client/src/main</source> </sources> </configuration> </execution> <execution> <id>add-resources</id> <phase>generate-resources</phase> <goals> <goal>add-resource</goal> </goals> <configuration> <resources> <resource> <directory>client/resources</directory> </resource> </resources> </configuration> </execution> <execution> <id>add-test-sources</id> <phase>generate-test-sources</phase> <goals> <goal>add-test-source</goal> </goals> <configuration> <sources> <source>core/src/test/java</source> <source>openapi-contracts/src/test/java</source> <source>client/src/test/java</source> </sources> </configuration> </execution> <execution> <id>add-test-resources</id> <phase>generate-test-resources</phase> <goals> <goal>add-test-resource</goal> </goals> <configuration> <resources> <resource> <directory>client/src/test/resources</directory> </resource> <resource> <directory>openapi-contracts/src/test/resources</directory> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>${maven.compiler.version}</version> <configuration> <compilerArgument>-Xlint:all</compilerArgument> </configuration> </plugin> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <version>${maven.failsafe.plugin.version}</version> <executions> <execution> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${maven-surefire-plugin.version}</version> </plugin> <!-- deployment/releasing--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>${maven-release-plugin.version}</version> <configuration> <autoVersionSubmodules>true</autoVersionSubmodules> <useReleaseProfile>false</useReleaseProfile> <releaseProfiles>release</releaseProfiles> <tagNameFormat>@{project.version}</tagNameFormat> <goals>deploy</goals> </configuration> </plugin> <!-- code format --> <plugin> <groupId>com.diffplug.spotless</groupId> <artifactId>spotless-maven-plugin</artifactId> <version>2.40.0</version> <configuration> <json> <includes> <include>**/*.json</include> </includes> </json> <java> <includes> <include>**/*.java</include> </includes> <excludes> <!-- java 21 style not yet supported --> <exclude>sample-app/src/main/java/com/sinch/sample/webhooks/sms/SmsController.java</exclude> <exclude>sample-app/src/main/java/com/sinch/sample/webhooks/verification/VerificationController.java</exclude> <exclude>sample-app/src/main/java/com/sinch/sample/webhooks/voice/VoiceController.java</exclude> </excludes> <googleJavaFormat> <version>1.18.1</version> <style>GOOGLE</style> <reflowLongStrings>true</reflowLongStrings> </googleJavaFormat> <endWithNewline /> <removeUnusedImports /> <indent> <spaces>true</spaces> <spacesPerTab>2</spacesPerTab> </indent> <trimTrailingWhitespace /> </java> </configuration> <executions> <execution> <phase>verify</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.datatype</groupId> <artifactId>jackson-datatype-jsr310</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-json-provider</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>org.apache.httpcomponents.client5</groupId> <artifactId>httpclient5</artifactId> <version>${httpclient5.version}</version> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId> <version>5.10.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <version>3.24.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-junit-jupiter</artifactId> <version>${mockito.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>io.hosuaby</groupId> <artifactId>inject-resources-core</artifactId> <version>0.3.3</version> <scope>test</scope> </dependency> <dependency> <groupId>net.bytebuddy</groupId> <artifactId>byte-buddy</artifactId> <version>1.14.10</version> <scope>test</scope> </dependency> <dependency> <groupId>io.hosuaby</groupId> <artifactId>inject-resources-junit-jupiter</artifactId> <version>0.3.3</version> <scope>test</scope> </dependency> <dependency> <groupId>org.skyscreamer</groupId> <artifactId>jsonassert</artifactId> <version>1.5.1</version> <scope>test</scope> </dependency> <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>4.12.0</version> <scope>test</scope> </dependency> <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>mockwebserver</artifactId> <version>4.12.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-model</artifactId> <version>3.9.5</version> </dependency> </dependencies> <profiles> <profile> <id>release</id> <activation> <property> <name>performRelease</name> <value>true</value> </property> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>${maven.source.plugin.version}</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>${maven-gpg-plugin.version}</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> <configuration> <keyname>${gpg.keyname}</keyname> <passphraseServerId>${gpg.passphrase}</passphraseServerId> <gpgArguments> <arg>--pinentry-mode</arg> <arg>loopback</arg> </gpgArguments> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>${nexus-staging-maven-plugin}</version> <extensions>true</extensions> <configuration> <!-- Source: https://help.sonatype.com/repomanager2/staging-releases/configuring-your-project-for-deployment serverId: The id of the server element in settings.xml from which the user credentials for accessing the repository manager should be retrieved nexusUrl: The base URL at which the repository manager to be used for staging is available --> <serverId>ossrh</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>false</autoReleaseAfterClose> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>