Skip to content

Commit 5ef6e65

Browse files
committed
feat: add oss deploy, add README
1 parent 0c7607f commit 5ef6e65

File tree

2 files changed

+87
-12
lines changed

2 files changed

+87
-12
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,16 @@ You can import the SDK into your project as follows:
1414
<artifactId>java-lmstfy-client</artifactId>
1515
<version>1.0.0</version>
1616
</dependency>
17+
```
18+
19+
### Building From Source
20+
21+
You can build it from source using Maven:
22+
23+
```
24+
mvn clean install
25+
26+
# Skip tests, checkstyles, findbugs, etc for quick build
27+
mvn clean install -P quick
28+
1729
```

pom.xml

Lines changed: 75 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,18 @@
66

77
<groupId>com.meitu</groupId>
88
<artifactId>java-lmstfy-client</artifactId>
9+
<name>java-lmstfy-client</name>
910
<version>1.0.0</version>
11+
<description>Java client for LMSTFY</description>
12+
<url>https://github.com/meitu/java-lmstfy-client</url>
13+
14+
<developers>
15+
<developer>
16+
<name>Yesphet</name>
17+
<email>pyk@meitu.com</email>
18+
</developer>
19+
</developers>
20+
1021
<dependencies>
1122
<dependency>
1223
<groupId>com.squareup.okhttp3</groupId>
@@ -24,18 +35,6 @@
2435
<version>4.12</version>
2536
<scope>test</scope>
2637
</dependency>
27-
<dependency>
28-
<groupId>junit</groupId>
29-
<artifactId>junit</artifactId>
30-
<version>4.12</version>
31-
<scope>test</scope>
32-
</dependency>
33-
<dependency>
34-
<groupId>junit</groupId>
35-
<artifactId>junit</artifactId>
36-
<version>4.12</version>
37-
<scope>test</scope>
38-
</dependency>
3938
</dependencies>
4039

4140
<build>
@@ -61,7 +60,71 @@
6160
</execution>
6261
</executions>
6362
</plugin>
63+
64+
<plugin>
65+
<groupId>org.apache.maven.plugins</groupId>
66+
<artifactId>maven-gpg-plugin</artifactId>
67+
<version>1.5</version>
68+
<executions>
69+
<execution>
70+
<id>sign-artifacts</id>
71+
<phase>verify</phase>
72+
<goals>
73+
<goal>sign</goal>
74+
</goals>
75+
</execution>
76+
</executions>
77+
</plugin>
78+
79+
<plugin>
80+
<groupId>org.apache.maven.plugins</groupId>
81+
<artifactId>maven-javadoc-plugin</artifactId>
82+
<version>2.9.1</version>
83+
<configuration>
84+
<show>private</show>
85+
<nohelp>true</nohelp>
86+
<charset>UTF-8</charset>
87+
<encoding>UTF-8</encoding>
88+
<docencoding>UTF-8</docencoding>
89+
<!-- disable doc lint -->
90+
<additionalparam>-Xdoclint:none</additionalparam>
91+
</configuration>
92+
<executions>
93+
<execution>
94+
<phase>package</phase>
95+
<goals>
96+
<goal>jar</goal>
97+
</goals>
98+
</execution>
99+
</executions>
100+
</plugin>
64101
</plugins>
65102
</build>
66103

104+
<licenses>
105+
<license>
106+
<name>MIT License</name>
107+
<url>https://opensource.org/licenses/MIT</url>
108+
<distribution>repo</distribution>
109+
</license>
110+
</licenses>
111+
112+
<distributionManagement>
113+
<repository>
114+
<id>oss</id>
115+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
116+
</repository>
117+
<snapshotRepository>
118+
<id>oss</id>
119+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
120+
</snapshotRepository>
121+
</distributionManagement>
122+
123+
<scm>
124+
<connection>scm:git:https://github.com/meitu/java-lmstfy-client</connection>
125+
<developerConnection>scm:git:https://github.com/meitu/java-lmstfy-client</developerConnection>
126+
<url>https://github.com/meitu/java-lmstfy-client</url>
127+
</scm>
128+
129+
67130
</project>

0 commit comments

Comments
 (0)