Skip to content

Commit a9e2741

Browse files
committedApr 21, 2022
项目初始化
0 parents  commit a9e2741

14 files changed

+745
-0
lines changed
 

‎.documentation/JAVADOC-README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# EasyConfiguration Javadoc
2+
3+
基于 [Github Pages](https://pages.github.com/) 搭建,请访问 [JavaDoc](https://carmjos.github.io/EasyConfiguration)
4+
5+
## 如何实现?
6+
7+
若您也想通过 [Github Actions](https://docs.github.com/en/actions/learn-github-actions)
8+
自动部署项目的Javadoc到 [Github Pages](https://pages.github.com/)
9+
可以参考我的文章 [《自动部署Javadoc到Github Pages》](https://pages.carm.cc/doc/javadoc-in-github.html)

‎.github/FUNDING.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: [ CarmJos ]
2+
custom: [ 'https://donate.carm.cc' ]

‎.github/ISSUE_TEMPLATE/bugs_report.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: 问题提交
3+
about: 描述问题并提交,帮助我们对其进行检查与修复。
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
### **问题简述**
11+
12+
用简短的话语描述一下大概问题。
13+
14+
### **问题来源**
15+
16+
描述一下通过哪些操作才发现的问题,如:
17+
18+
1. 使用了 '...'
19+
2. 输入了 '....'
20+
3. 出现了报错 '....'
21+
22+
### **预期结果** (可选)
23+
24+
如果问题不发生,应该是什么情况
25+
26+
### **问题截图/问题报错**
27+
28+
如果有报错或输出,请提供截图。
29+
30+
### **操作环境**
31+
32+
- 系统环境: `Windows 10` / `Ubuntu` / `...`
33+
- Java版本: `JDK11` / `OPENJDK8` / `JRE8` / `...`
34+
35+
### **其他补充**
36+
37+
如有其他补充,可以在这里描述。
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: 功能需求
3+
about: 希望我们提供更多的功能。
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
### **功能简述**
10+
11+
简单的描述一下你想要的功能
12+
13+
### **需求来源**
14+
15+
简单的描述一下为什么需要这个功能。
16+
17+
### **功能参考**(可选)
18+
19+
如果有相关功能的参考,如文本、截图,请提供给我们。
20+
21+
### **附加内容**
22+
23+
如果有什么小细节需要重点注意,请在这里告诉我们。

‎.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "maven" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

‎.github/gpg_public.key

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
-----BEGIN PGP PUBLIC KEY BLOCK-----
2+
3+
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
39+
OK7d0W/LdJ3iFeselROADHgPQn14sg==
40+
=rRA5
41+
-----END PGP PUBLIC KEY BLOCK-----

‎.github/workflows/codacy-analysis.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# This workflow checks out code, performs a Codacy security scan
7+
# and integrates the results with the
8+
# GitHub Advanced Security code scanning feature. For more information on
9+
# the Codacy security scan action usage and parameters, see
10+
# https://github.com/codacy/codacy-analysis-cli-action.
11+
# For more information on Codacy Analysis CLI in general, see
12+
# https://github.com/codacy/codacy-analysis-cli.
13+
14+
name: "Codacy Security Scan"
15+
16+
on:
17+
push:
18+
branches: [ master ]
19+
pull_request:
20+
# The branches below must be a subset of the branches above
21+
branches: [ master ]
22+
schedule:
23+
- cron: '27 16 * * 5'
24+
25+
jobs:
26+
codacy-security-scan:
27+
name: Codacy Security Scan
28+
runs-on: ubuntu-latest
29+
steps:
30+
# Checkout the repository to the GitHub Actions runner
31+
- name: Checkout code
32+
uses: actions/checkout@v2
33+
34+
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
35+
- name: Run Codacy Analysis CLI
36+
uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b
37+
with:
38+
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
39+
# You can also omit the token and run the tools that support default configurations
40+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
41+
verbose: true
42+
output: results.sarif
43+
format: sarif
44+
# Adjust severity of non-security issues
45+
gh-code-scanning-compat: true
46+
# Force 0 exit code to allow SARIF file generation
47+
# This will handover control about PR rejection to the GitHub side
48+
max-allowed-issues: 2147483647
49+
50+
# Upload the SARIF file generated in the previous step
51+
- name: Upload SARIF results file
52+
uses: github/codeql-action/upload-sarif@v1
53+
with:
54+
sarif_file: results.sarif

‎.github/workflows/codeql-analysis.yml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL Analysis"
13+
14+
on:
15+
push:
16+
branches: [ master ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ master ]
20+
schedule:
21+
- cron: '45 12 * * 1'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'java' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v2
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v1
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
52+
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v1
57+
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 https://git.io/JvXDl
60+
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
64+
65+
#- run: |
66+
# make bootstrap
67+
# make release
68+
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v1

‎.github/workflows/deploy.yml

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: "Project Deploy"
5+
6+
on:
7+
# 支持手动触发构建
8+
workflow_dispatch:
9+
release:
10+
# 创建release的时候触发
11+
types: [ published ]
12+
13+
jobs:
14+
gh-deploy:
15+
name: "Publish Project (GitHub)"
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: "Set up JDK"
21+
uses: actions/setup-java@v2
22+
with:
23+
java-version: '11'
24+
distribution: 'adopt'
25+
cache: maven
26+
server-id: github
27+
server-username: MAVEN_USERNAME
28+
server-password: MAVEN_TOKEN
29+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
30+
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
31+
32+
- name: "Maven Deploy With Javadoc"
33+
run: mvn -B -Pgithub deploy --file pom.xml -DskipTests
34+
env:
35+
MAVEN_USERNAME: ${{ github.repository_owner }}
36+
MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}}
37+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
38+
39+
- name: "Copy Javadoc to Location"
40+
run: |
41+
rm -rf docs
42+
mkdir -vp docs
43+
cp -vrf core/target/apidocs/* docs/
44+
cp -vrf .documentation/JAVADOC-README.md docs/README.md
45+
46+
- name: "Generate the Javadoc sitemap"
47+
id: sitemap
48+
uses: cicirello/generate-sitemap@v1
49+
with:
50+
base-url-path: https://CarmJos.github.io/EasyConfiguration
51+
path-to-root: docs
52+
53+
- name: "Output stats"
54+
run: |
55+
echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}"
56+
echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
57+
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
58+
59+
- name: "Configure Git"
60+
env:
61+
DEPLOY_PRI: ${{secrets.DEPLOY_PRI}}
62+
run: |
63+
sudo timedatectl set-timezone "Asia/Shanghai"
64+
mkdir -p ~/.ssh/
65+
echo "$DEPLOY_PRI" > ~/.ssh/id_rsa
66+
chmod 600 ~/.ssh/id_rsa
67+
ssh-keyscan github.com >> ~/.ssh/known_hosts
68+
git config --global user.name 'CarmJos'
69+
git config --global user.email 'carm@carm.cc'
70+
71+
- name: "Commit documentations"
72+
run: |
73+
cd docs
74+
git init
75+
git remote add origin git@github.com:CarmJos/EasyConfiguration.git
76+
git checkout -b gh-pages
77+
git add -A
78+
git commit -m "API Document generated."
79+
80+
- name: "Push javadocs"
81+
run: |
82+
cd docs
83+
git push origin HEAD:gh-pages --force
84+
85+
central-deploy:
86+
name: "Deploy Project (Central Repository)"
87+
runs-on: ubuntu-latest
88+
89+
steps:
90+
- uses: actions/checkout@v2
91+
- name: "Set up JDK"
92+
uses: actions/setup-java@v2
93+
with:
94+
java-version: '11'
95+
distribution: 'adopt'
96+
cache: maven
97+
server-id: ossrh
98+
server-username: MAVEN_USERNAME
99+
server-password: MAVEN_PASSWORD
100+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
101+
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
102+
103+
- name: "Central Deploy"
104+
run: mvn -B -Possrh deploy --file pom.xml -DskipTests
105+
env:
106+
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
107+
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASS }}
108+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

‎.github/workflows/maven.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Project Build & Tests
5+
6+
on:
7+
# 支持手动触发构建
8+
workflow_dispatch:
9+
pull_request:
10+
push:
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: "Set up JDK"
20+
uses: actions/setup-java@v2
21+
with:
22+
java-version: '11'
23+
distribution: 'adopt'
24+
- name: "Package"
25+
run: mvn -B package --file pom.xml -Dgpg.skip
26+
- name: "Target Stage"
27+
run: mkdir staging && cp */target/*.jar staging
28+
- name: "Upload artifact"
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: Artifact
32+
path: staging

‎.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.idea/
2+
**/target/
3+
**.iml

‎LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Carm
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎README.md

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
```text
2+
__ ____ _____ ____ __ _
3+
/ |/ (_)__ ___ / ___/__ ___ / _(_)__ ___ _________ _/ /_(_)__ ___
4+
/ /|_/ / / _ \/ -_) /__/ _ \/ _ \/ _/ / _ `/ // / __/ _ `/ __/ / _ \/ _ \
5+
/_/ /_/_/_//_/\__/\___/\___/_//_/_//_/\_, /\_,_/_/ \_,_/\__/_/\___/_//_/
6+
/___/
7+
```
8+
9+
# MineConfiguration
10+
11+
[![version](https://img.shields.io/github/v/release/CarmJos/MineConfiguration)](https://github.com/CarmJos/MineConfiguration/releases)
12+
[![License](https://img.shields.io/github/license/CarmJos/MineConfiguration)](https://opensource.org/licenses/MIT)
13+
[![workflow](https://github.com/CarmJos/MineConfiguration/actions/workflows/maven.yml/badge.svg?branch=master)](https://github.com/CarmJos/MineConfiguration/actions/workflows/maven.yml)
14+
![CodeSize](https://img.shields.io/github/languages/code-size/CarmJos/MineConfiguration)
15+
![](https://visitor-badge.glitch.me/badge?page_id=MineConfiguration.readme)
16+
17+
EasyConfiguration for MineCraft!
18+
19+
开始在 MineCraft 相关服务器平台上**轻松(做)配置**吧!
20+
21+
## 支持与捐赠
22+
23+
若您觉得本插件做的不错,您可以通过捐赠支持我!
24+
25+
感谢您对开源项目的支持!
26+
27+
<img height=25% width=25% src="https://raw.githubusercontent.com/CarmJos/CarmJos/main/img/donate-code.jpg" alt=""/>
28+
29+
## 开源协议
30+
31+
本项目源码采用 [The MIT License](https://opensource.org/licenses/MIT) 开源协议。
32+
33+
<details>
34+
<summary>关于 MIT 协议</summary>
35+
36+
> MIT 协议可能是几大开源协议中最宽松的一个,核心条款是:
37+
>
38+
> 该软件及其相关文档对所有人免费,可以任意处置,包括使用,复制,修改,合并,发表,分发,再授权,或者销售。唯一的限制是,软件中必须包含上述版 权和许可提示。
39+
>
40+
> 这意味着:
41+
>
42+
> - 你可以自由使用,复制,修改,可以用于自己的项目。
43+
> - 可以免费分发或用来盈利。
44+
> - 唯一的限制是必须包含许可声明。
45+
>
46+
> MIT 协议是所有开源许可中最宽松的一个,除了必须包含许可声明外,再无任何限制。
47+
>
48+
> *以上文字来自 [五种开源协议GPL,LGPL,BSD,MIT,Apache](https://www.oschina.net/question/54100_9455)*
49+
50+
</details>

‎pom.xml

+284
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,284 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<properties>
7+
<java.version>1.8</java.version>
8+
<maven.compiler.source>${java.version}</maven.compiler.source>
9+
<maven.compiler.target>${java.version}</maven.compiler.target>
10+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11+
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
12+
</properties>
13+
<groupId>cc.carm.lib</groupId>
14+
<artifactId>MineConfiguration</artifactId>
15+
<version>1.0.0</version>
16+
<packaging>pom</packaging>
17+
18+
<developers>
19+
<developer>
20+
<id>CarmJos</id>
21+
<name>Carm Jos</name>
22+
<email>carm@carm.cc</email>
23+
<url>https://www.carm.cc</url>
24+
<timezone>Asia/Shanghai</timezone>
25+
</developer>
26+
</developers>
27+
28+
<scm>
29+
<connection>scm:git:git@github.com:CarmJos/Easy.MineConfiguration</connection>
30+
<developerConnection>scm:git:git@github.com:CarmJos/MineConfiguration.git</developerConnection>
31+
<url>https://github.com/CarmJos/MineConfiguration</url>
32+
<tag>HEAD</tag>
33+
</scm>
34+
35+
<licenses>
36+
<license>
37+
<name>The MIT License</name>
38+
<url>https://opensource.org/licenses/MIT</url>
39+
</license>
40+
</licenses>
41+
42+
<issueManagement>
43+
<system>GitHub Issues</system>
44+
<url>https://github.com/CarmJos/MineConfiguration/issues</url>
45+
</issueManagement>
46+
47+
<ciManagement>
48+
<system>GitHub Actions</system>
49+
<url>https://github.com/CarmJos/MineConfiguration/actions/workflows/maven.yml</url>
50+
</ciManagement>
51+
52+
<repositories>
53+
54+
<repository>
55+
<id>carm-repo</id>
56+
<name>Carm's Repo</name>
57+
<url>https://repo.carm.cc/repository/maven-public/</url>
58+
</repository>
59+
60+
<repository>
61+
<id>nexus</id>
62+
<url>https://mvn.lumine.io/repository/maven-public/</url>
63+
</repository>
64+
65+
<repository>
66+
<id>central</id>
67+
<url>https://repo1.maven.org/maven2/</url>
68+
</repository>
69+
70+
<repository>
71+
<id>github</id>
72+
<name>GitHub Packages</name>
73+
<url>https://maven.pkg.github.com/CarmJos/*</url>
74+
</repository>
75+
76+
</repositories>
77+
78+
<distributionManagement>
79+
<downloadUrl>https://github.com/CarmJos/MineConfiguration/releases</downloadUrl>
80+
<site>
81+
<id>javadoc</id>
82+
<name>EasySQL JavaDoc (on Github Pages)</name>
83+
<url>https://CarmJos.github.io/MineConfiguration</url>
84+
</site>
85+
</distributionManagement>
86+
87+
<dependencies>
88+
89+
<dependency>
90+
<groupId>junit</groupId>
91+
<artifactId>junit</artifactId>
92+
<version>4.13.2</version>
93+
<scope>test</scope>
94+
</dependency>
95+
96+
<dependency>
97+
<groupId>org.jetbrains</groupId>
98+
<artifactId>annotations</artifactId>
99+
<version>23.0.0</version>
100+
<scope>provided</scope>
101+
</dependency>
102+
103+
</dependencies>
104+
105+
106+
<build>
107+
108+
<plugins>
109+
<plugin>
110+
<groupId>org.apache.maven.plugins</groupId>
111+
<artifactId>maven-surefire-plugin</artifactId>
112+
<version>2.22.2</version>
113+
<configuration>
114+
<useSystemClassLoader>false</useSystemClassLoader>
115+
</configuration>
116+
</plugin>
117+
<plugin>
118+
<groupId>org.apache.maven.plugins</groupId>
119+
<artifactId>maven-gpg-plugin</artifactId>
120+
<version>3.0.1</version>
121+
<executions>
122+
<execution>
123+
<id>sign-artifacts</id>
124+
<phase>verify</phase>
125+
<goals>
126+
<goal>sign</goal>
127+
</goals>
128+
</execution>
129+
</executions>
130+
<configuration>
131+
<gpgArguments>
132+
<arg>--pinentry-mode</arg>
133+
<arg>loopback</arg>
134+
</gpgArguments>
135+
</configuration>
136+
</plugin>
137+
<plugin>
138+
<groupId>org.apache.maven.plugins</groupId>
139+
<artifactId>maven-release-plugin</artifactId>
140+
<version>2.5.3</version>
141+
<configuration>
142+
<autoVersionSubmodules>true</autoVersionSubmodules>
143+
<useReleaseProfile>false</useReleaseProfile>
144+
<releaseProfiles>release</releaseProfiles>
145+
<goals>deploy</goals>
146+
</configuration>
147+
</plugin>
148+
</plugins>
149+
150+
<pluginManagement>
151+
<plugins>
152+
153+
<plugin>
154+
<groupId>org.apache.maven.plugins</groupId>
155+
<artifactId>maven-javadoc-plugin</artifactId>
156+
<version>3.3.2</version>
157+
<configuration>
158+
<classifier>javadoc</classifier>
159+
<detectJavaApiLink>false</detectJavaApiLink>
160+
<encoding>UTF-8</encoding>
161+
<charset>UTF-8</charset>
162+
<docencoding>UTF-8</docencoding>
163+
<locale>zh_CN</locale>
164+
165+
<includeDependencySources>true</includeDependencySources>
166+
<dependencySourceIncludes>
167+
<dependencySourceInclude>cc.carm.lib:*</dependencySourceInclude>
168+
</dependencySourceIncludes>
169+
</configuration>
170+
<executions>
171+
<execution>
172+
<id>attach-javadocs</id>
173+
<goals>
174+
<goal>jar</goal>
175+
</goals>
176+
</execution>
177+
</executions>
178+
</plugin>
179+
180+
<plugin>
181+
<groupId>org.apache.maven.plugins</groupId>
182+
<artifactId>maven-compiler-plugin</artifactId>
183+
<version>3.10.1</version>
184+
<configuration>
185+
<source>${java.version}</source>
186+
<target>${java.version}</target>
187+
<encoding>UTF-8</encoding>
188+
<compilerArgument>-parameters</compilerArgument>
189+
</configuration>
190+
</plugin>
191+
192+
<plugin>
193+
<groupId>org.apache.maven.plugins</groupId>
194+
<artifactId>maven-jar-plugin</artifactId>
195+
<version>3.2.2</version>
196+
</plugin>
197+
198+
<plugin>
199+
<groupId>org.apache.maven.plugins</groupId>
200+
<artifactId>maven-source-plugin</artifactId>
201+
<version>3.2.1</version>
202+
<executions>
203+
<execution>
204+
<phase>package</phase>
205+
<goals>
206+
<goal>jar-no-fork</goal>
207+
</goals>
208+
</execution>
209+
</executions>
210+
</plugin>
211+
212+
<plugin>
213+
<groupId>org.apache.maven.plugins</groupId>
214+
<artifactId>maven-shade-plugin</artifactId>
215+
<version>3.3.0</version>
216+
<executions>
217+
<execution>
218+
<phase>package</phase>
219+
<goals>
220+
<goal>shade</goal>
221+
</goals>
222+
<configuration>
223+
<createDependencyReducedPom>false</createDependencyReducedPom>
224+
</configuration>
225+
</execution>
226+
</executions>
227+
<configuration>
228+
<filters>
229+
<filter>
230+
<artifact>*:*</artifact>
231+
<excludes>
232+
<exclude>META-INF/MANIFEST.MF</exclude>
233+
<exclude>META-INF/*.txt</exclude>
234+
</excludes>
235+
</filter>
236+
</filters>
237+
</configuration>
238+
</plugin>
239+
240+
241+
</plugins>
242+
</pluginManagement>
243+
244+
<resources>
245+
<resource>
246+
<directory>src/main/resources</directory>
247+
<filtering>true</filtering>
248+
</resource>
249+
</resources>
250+
251+
</build>
252+
253+
<profiles>
254+
255+
<profile>
256+
<id>ossrh</id>
257+
<distributionManagement>
258+
<snapshotRepository>
259+
<id>ossrh</id>
260+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
261+
</snapshotRepository>
262+
263+
<repository>
264+
<id>ossrh</id>
265+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
266+
</repository>
267+
</distributionManagement>
268+
</profile>
269+
270+
<profile>
271+
<id>github</id>
272+
<distributionManagement>
273+
<repository>
274+
<id>github</id>
275+
<name>GitHub Packages</name>
276+
<url>https://maven.pkg.github.com/CarmJos/MineConfiguration</url>
277+
</repository>
278+
</distributionManagement>
279+
</profile>
280+
281+
</profiles>
282+
283+
284+
</project>

0 commit comments

Comments
 (0)
Please sign in to comment.