-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
166 lines (154 loc) · 6.48 KB
/
pom.xml
File metadata and controls
166 lines (154 loc) · 6.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?xml version="1.0" encoding="UTF-8"?>
<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>io.newsdata</groupId>
<artifactId>newsdataapi</artifactId>
<version>0.0.2</version>
<packaging>jar</packaging>
<name>newsdataapi</name>
<description>Official Java client (SDK) for the Newsdata.io News API.</description>
<url>https://github.com/newsdataapi/newsdata-java-sdk</url>
<inceptionYear>2026</inceptionYear>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>NewsData.io</name>
<email>contact@newsdata.io</email>
<organization>NewsData.io</organization>
<organizationUrl>https://newsdata.io</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/newsdataapi/newsdata-java-sdk.git</connection>
<developerConnection>scm:git:ssh://github.com:newsdataapi/newsdata-java-sdk.git</developerConnection>
<url>https://github.com/newsdataapi/newsdata-java-sdk/tree/main</url>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<jackson.version>2.18.1</jackson.version>
<junit.version>5.10.2</junit.version>
</properties>
<dependencies>
<!-- JSON. java.net.http is built-in. -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- Test. -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<release>17</release>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.10.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<doclint>none</doclint>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<!--
`release` profile: GPG-sign all artifacts and deploy to the Sonatype
Central Portal (Maven Central). Activated by `mvn -Prelease deploy`,
or implicitly by the publish.yml workflow.
One-time setup before this works:
1. Register the `io.newsdata` namespace at https://central.sonatype.com/
and verify domain ownership of newsdata.io via DNS TXT.
2. Generate a GPG key pair, upload the public key to
`keys.openpgp.org`, and store the private key as the GitHub
secret `GPG_PRIVATE_KEY` (+ `GPG_PASSPHRASE`).
3. Create a user token on https://central.sonatype.com/account
and store it as secrets `MAVEN_USERNAME` / `MAVEN_PASSWORD`.
See README.md for the full walkthrough.
-->
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals><goal>sign</goal></goals>
<configuration>
<!-- Don't prompt; passphrase from env / GPG agent. -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.6.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<!-- autoPublish=true: skip the manual approval step
on https://central.sonatype.com/ and release
directly. Set to false for dry-runs. -->
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>