Skip to content

Commit d333675

Browse files
committed
feat: implement primary features and challenges
------------ # Locales - **[zh-cn]** 实现主要功能
1 parent a7a1834 commit d333675

File tree

86 files changed

+4220
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+4220
-0
lines changed

.editorconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[*]
2+
charset = utf-8
3+
end_of_line = crlf
4+
indent_size = 4
5+
indent_style = space
6+
insert_final_newline = true
7+
max_line_length = 180
8+
tab_width = 4
9+
10+
[{*.sh, mvnw, gradlew}]
11+
end_of_line = lf
12+
13+
[{*.yml, *.yaml}]
14+
indent_size = 2
15+
16+
[*.xml]
17+
indent_size = 2
18+
19+
[*.json]
20+
indent_size = 2
21+
22+
[*.md.mustache]
23+
indent_size = 0
24+
insert_final_newline = false

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.sh text eol=lf
2+
gradlew text eol=lf
3+
mvnw text eol=lf
4+
secret.txt text eol=lf

.github/workflows/publish.yml

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
name: rsql-querydsl
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
7+
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
8+
OSSRH_GPG_SECRET_ID: ${{ secrets.OSSRH_GPG_SECRET_ID }}
9+
OSSRH_GPG_SECRET_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_PASSWORD }}
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
if: startsWith(github.event.head_commit.message, 'bumped version to ') != true
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK 1.8
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.8
23+
24+
- name: Cache dependencies
25+
uses: actions/cache@v1
26+
with:
27+
path: ~/.gradle/caches
28+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
29+
restore-keys: ${{ runner.os }}-gradle-
30+
31+
- name: Prepare to build
32+
run: chmod +x ./gradlew
33+
34+
- name: Build project
35+
run: ./gradlew build -x test
36+
37+
test:
38+
needs: [build]
39+
runs-on: ubuntu-latest
40+
41+
if: startsWith(github.event.head_commit.message, 'bumped version to ') != true
42+
43+
steps:
44+
- uses: actions/checkout@v2
45+
- name: Set up JDK 1.8
46+
uses: actions/setup-java@v1
47+
with:
48+
java-version: 1.8
49+
50+
- name: Cache dependencies
51+
uses: actions/cache@v1
52+
with:
53+
path: ~/.gradle/caches
54+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
55+
restore-keys: ${{ runner.os }}-gradle-
56+
57+
- name: Prepare to build
58+
run: chmod +x ./gradlew
59+
60+
- name: Run tests
61+
run: ./gradlew check test -S
62+
63+
deploy_snapshot:
64+
needs: [build, test]
65+
runs-on: ubuntu-latest
66+
67+
if: (github.ref == 'refs/heads/master') && startsWith(github.event.head_commit.message, 'bumped version to ') != true && startsWith(github.event.head_commit.message, 'release:') != true
68+
69+
steps:
70+
- uses: actions/checkout@v2
71+
- name: Set up JDK 1.8
72+
uses: actions/setup-java@v1
73+
with:
74+
java-version: 1.8
75+
76+
- name: Cache dependencies
77+
uses: actions/cache@v1
78+
with:
79+
path: ~/.gradle/caches
80+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
81+
restore-keys: ${{ runner.os }}-gradle-
82+
83+
- name: Prepare to build
84+
run: chmod +x ./gradlew
85+
86+
- id: install-secret-key
87+
name: Install gpg secret key
88+
run: echo "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 -d > ./secret.gpg
89+
90+
- id: publish
91+
name: Publish snapshot
92+
run: |
93+
newVersion=`./gradlew derive --preRelease='SNAPSHOT' -i | grep 'NEXT_VERSION:==' | sed 's/^.*NEXT_VERSION:==//g'`
94+
95+
echo "newVersion: ${newVersion}"
96+
echo "::set-output name=newVersion::${newVersion}"
97+
echo "::set-output name=newVersion::${newVersion}"
98+
99+
./gradlew setNewVersion -P newVersion=${newVersion} 1>/dev/null 2>/dev/null
100+
./gradlew clean publish -x test -P OSSRH_GPG_SECRET_KEY=./secret.gpg
101+
102+
rm -rf ./secret.gpg
103+
104+
- name: Generate and push CHANGELOG.md
105+
run: |
106+
./gradlew changelog --toRef=master
107+
108+
gitCommit="bumped version to ${{ steps.publish.outputs.newVersion }}"
109+
110+
git config --global user.name 'ymind'
111+
git config --global user.email '[email protected]'
112+
git add ./CHANGELOG* || true
113+
git add ./build.gradle.kts || true
114+
git commit -m "${gitCommit}" && git push origin || true
115+
116+
deploy_release:
117+
needs: [build, test]
118+
runs-on: ubuntu-latest
119+
120+
if: startsWith(github.ref, 'refs/tags/') && startsWith(github.event.head_commit.message, 'release')
121+
122+
steps:
123+
- uses: actions/checkout@v2
124+
- name: Set up JDK 1.8
125+
uses: actions/setup-java@v1
126+
with:
127+
java-version: 1.8
128+
129+
- name: Cache dependencies
130+
uses: actions/cache@v1
131+
with:
132+
path: ~/.gradle/caches
133+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
134+
restore-keys: ${{ runner.os }}-gradle-
135+
136+
- name: Prepare to build
137+
run: chmod +x ./gradlew
138+
139+
- id: install-secret-key
140+
name: Install gpg secret key
141+
run: echo "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 -d > ./secret.gpg
142+
143+
- name: Publish release
144+
run: ./gradlew clean publish -x test -P OSSRH_GPG_SECRET_KEY=./secret.gpg

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
HELP.md
2+
target/
3+
!.mvn/wrapper/maven-wrapper.jar
4+
!**/src/main/**
5+
!**/src/test/**
6+
/gradle.properties
7+
8+
### STS ###
9+
.apt_generated
10+
.classpath
11+
.factorypath
12+
.project
13+
.settings
14+
.springBeans
15+
.sts4-cache
16+
17+
### IntelliJ IDEA ###
18+
.idea
19+
*.iws
20+
*.iml
21+
*.ipr
22+
23+
### NetBeans ###
24+
/nbproject/private/
25+
/nbbuild/
26+
/dist/
27+
/nbdist/
28+
/.nb-gradle/
29+
build/
30+
31+
### VS Code ###
32+
.vscode/
33+
34+
### PROJECT ###
35+
logs/
36+
pom.xml.versionsBackup
37+
38+
### CUSTOM CONFIG ###
39+
.gradle
40+
.okhttpcache
41+
secret.gpg
42+
secret.gpg.txt
43+
secret.txt

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
1+
![rsql-querydsl](https://github.com/ymind/rsql-querydsl/workflows/rsql-querydsl/badge.svg?branch=master)
2+
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/ymind/rsql-querydsl)](https://github.com/ymind/rsql-querydsl/releases)
3+
[![Maven Central](https://img.shields.io/maven-central/v/team.yi.rsql/rsql-querydsl)](https://search.maven.org/artifact/team.yi.rsql/rsql-querydsl)
4+
[![Semantic Versioning 2.0.0](https://img.shields.io/badge/Semantic%20Versioning-2.0.0-brightgreen)](https://semver.org/)
5+
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
6+
[![GitHub](https://img.shields.io/github/license/ymind/rsql-querydsl)](https://github.com/ymind/rsql-querydsl/blob/master/LICENSE)
7+
18
# rsql-querydsl
9+
210
Integration RSQL query language and Querydsl framework.
11+
12+
# Author
13+
14+
[@ymind][6], full stack engineer.
15+
16+
# License
17+
18+
This is open-sourced software licensed under the [MIT license][9].
19+
20+
[6]: https://github.com/ymind
21+
[9]: https://opensource.org/licenses/MIT

0 commit comments

Comments
 (0)