Skip to content

Commit 18efbb2

Browse files
committed
Change groupId and version to prepare for release 1.0.0
1 parent 278c79a commit 18efbb2

File tree

3 files changed

+166
-12
lines changed

3 files changed

+166
-12
lines changed

NOTICE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2024 linghengqian ([email protected])
1+
Copyright 2024 Qiheng He
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

README.md

+79-7
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,95 @@ Use directly in Maven.
66

77
```xml
88
<dependency>
9-
<groupId>com.github.linghengqian.hive</groupId>
9+
<groupId>io.github.linghengqian</groupId>
1010
<artifactId>hive-server2-jdbc-driver</artifactId>
11-
<version>1.0-SNAPSHOT</version>
11+
<version>{latest.version}</version>
1212
</dependency>
1313
```
1414

1515
## Background
1616

17-
The current project is actually a third-party build of HiveServer2 JDBC Driver.
18-
The release rhythm of apache/hive is conservative,
19-
and the latest changes of the master branch are rarely included in the latest version,
20-
but commits are filtered from the master branch.
21-
In order to conduct faster testing in downstream projects,
17+
The current project is actually a third-party build of HiveServer2 JDBC Driver.
18+
The release rhythm of apache/hive is conservative,
19+
and the latest changes of the master branch are rarely included in the latest version,
20+
but commits are filtered from the master branch.
21+
In order to conduct faster testing in downstream projects,
2222
this project was created by an individual developer.
2323

2424
More background at https://lists.apache.org/thread/63lr45kyh78s64spwsjxjy8zdyzprnz1 .
2525

2626
## Release Note
2727

2828
The current project has not yet carried out any release work.
29+
30+
## contribute
31+
32+
Take Ubuntu WSL 22.04.4 as an example.
33+
It is assumed that `Git` is configured, and `SDKMAN!` and `Docker Engine` are installed.
34+
35+
```shell
36+
sdk install java 8.0.422-tem
37+
sdk install maven 3.9.8
38+
```
39+
40+
### How to test
41+
42+
- Execute the following command.
43+
44+
```shell
45+
sdk use java 8.0.422-tem
46+
git clone [email protected]:apache/hive.git
47+
cd ./hive/
48+
git reset --hard b09d76e68bfba6be19733d864b3207f95265d11f
49+
mvn clean install -DskipTests
50+
mvn clean package -pl packaging -DskipTests -Pdocker
51+
cd ../
52+
git clone [email protected]:linghengqian/hive-server2-jdbc-driver.git
53+
cd ./hive-server2-jdbc-driver/
54+
./mvnw clean test
55+
```
56+
57+
### How to publish via the central portal
58+
59+
First set up GPG. Take Ubuntu WSL 22.04.4 as an example.
60+
Take Ubuntu WSL 22.04.4 as an example and provide your real name and email address.
61+
62+
```shell
63+
gpg --gen-key
64+
gpg --list-keys
65+
gpg --keyserver keyserver.ubuntu.com --send-keys {Aloha, your keyid}
66+
```
67+
68+
According to https://central.sonatype.org/publish/publish-portal-maven/#credentials,
69+
use the following command to change the content of `~/.m2/setting.xml`.
70+
71+
```shell
72+
sudo apt install gnome-text-editor gimp vlc nautilus x11-apps -y
73+
gnome-text-editor ~/.m2/setting.xml
74+
```
75+
76+
```xml
77+
<settings>
78+
<servers>
79+
<server>
80+
<id>central</id>
81+
<username><!-- your token username --></username>
82+
<password><!-- your token password --></password>
83+
</server>
84+
</servers>
85+
</settings>
86+
```
87+
88+
Then execute the following command.
89+
90+
```shell
91+
sdk use java 8.0.422-tem
92+
git clone [email protected]:apache/hive.git
93+
cd ./hive/
94+
git reset --hard b09d76e68bfba6be19733d864b3207f95265d11f
95+
mvn clean install -DskipTests
96+
cd ../
97+
git clone [email protected]:linghengqian/hive-server2-jdbc-driver.git
98+
cd ./hive-server2-jdbc-driver/
99+
./mvnw -Ppublishing-via-the-central-portal -DskipTests clean deploy
100+
```

pom.xml

+86-4
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,42 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6-
<groupId>com.github.linghengqian.hive</groupId>
6+
<groupId>io.github.linghengqian</groupId>
77
<artifactId>hive-server2-jdbc-driver</artifactId>
8-
<version>1.0-SNAPSHOT</version>
8+
<version>1.0.0</version>
9+
10+
<packaging>jar</packaging>
11+
<name>${project.groupId}:${project.artifactId}</name>
12+
<description>Third-party builds of HiveServer2 JDBC Driver</description>
13+
<url>https://github.com/linghengqian/hive-server2-jdbc-driver</url>
14+
<licenses>
15+
<license>
16+
<name>The Apache License, Version 2.0</name>
17+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
18+
</license>
19+
</licenses>
20+
<developers>
21+
<developer>
22+
<name>Qiheng He</name>
23+
<email>[email protected]</email>
24+
<organizationUrl>https://github.com/linghengqian</organizationUrl>
25+
</developer>
26+
</developers>
27+
<scm>
28+
<connection>scm:git:git://github.com/linghengqian/hive-server2-jdbc-driver.git</connection>
29+
<developerConnection>scm:git:ssh://github.com:linghengqian/hive-server2-jdbc-driver.git</developerConnection>
30+
<url>https://github.com/linghengqian/hive-server2-jdbc-driver/tree/master</url>
31+
</scm>
932

1033
<properties>
1134
<maven.compiler.source>1.8</maven.compiler.source>
1235
<maven.compiler.target>1.8</maven.compiler.target>
1336
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1437
<apache-hive-jdbc.version>4.1.0-SNAPSHOT</apache-hive-jdbc.version>
1538
<junit-bom.version>5.10.3</junit-bom.version>
16-
<testcontainers-bom.version>1.20.0</testcontainers-bom.version>
39+
<testcontainers-bom.version>1.20.1</testcontainers-bom.version>
1740
<hikaricp.version>4.0.3</hikaricp.version>
18-
<awaitility.version>4.2.0</awaitility.version>
41+
<awaitility.version>4.2.2</awaitility.version>
1942
<logback-classic.version>1.2.13</logback-classic.version>
2043
</properties>
2144

@@ -75,4 +98,63 @@
7598
<scope>test</scope>
7699
</dependency>
77100
</dependencies>
101+
102+
<profiles>
103+
<profile>
104+
<id>publishing-via-the-central-portal</id>
105+
<build>
106+
<plugins>
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-source-plugin</artifactId>
110+
<version>3.3.1</version>
111+
<executions>
112+
<execution>
113+
<id>attach-sources</id>
114+
<goals>
115+
<goal>jar-no-fork</goal>
116+
</goals>
117+
</execution>
118+
</executions>
119+
</plugin>
120+
<plugin>
121+
<groupId>org.apache.maven.plugins</groupId>
122+
<artifactId>maven-javadoc-plugin</artifactId>
123+
<version>3.8.0</version>
124+
<executions>
125+
<execution>
126+
<id>attach-javadocs</id>
127+
<goals>
128+
<goal>jar</goal>
129+
</goals>
130+
</execution>
131+
</executions>
132+
</plugin>
133+
<plugin>
134+
<groupId>org.apache.maven.plugins</groupId>
135+
<artifactId>maven-gpg-plugin</artifactId>
136+
<version>3.2.5</version>
137+
<executions>
138+
<execution>
139+
<id>sign-artifacts</id>
140+
<phase>verify</phase>
141+
<goals>
142+
<goal>sign</goal>
143+
</goals>
144+
</execution>
145+
</executions>
146+
</plugin>
147+
<plugin>
148+
<groupId>org.sonatype.central</groupId>
149+
<artifactId>central-publishing-maven-plugin</artifactId>
150+
<version>0.5.0</version>
151+
<extensions>true</extensions>
152+
<configuration>
153+
<publishingServerId>central</publishingServerId>
154+
</configuration>
155+
</plugin>
156+
</plugins>
157+
</build>
158+
</profile>
159+
</profiles>
78160
</project>

0 commit comments

Comments
 (0)