File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 76
76
runs-on : ubuntu-20.04
77
77
steps :
78
78
- uses : actions/checkout@v3
79
- - name : Install style guide
80
- run : make install-styleguide
79
+ - name : Install checkstyle and style guide
80
+ run : make install-checkstyle
81
81
- name : Load Maven dependencies and CVE database cache
82
82
uses : actions/cache@v3
83
83
with :
Original file line number Diff line number Diff line change 44
44
gpg-passphrase : MAVEN_GPG_PASSPHRASE
45
45
gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
46
46
47
- - name : Publish to Apache Maven Central
48
- run : mvn deploy
47
+ - name : Clean, build and publish to Apache Maven Central
48
+ run : make install-styleguide publish pass=${{ secrets.MAVEN_GPG_PASSPHRASE }}
49
49
env :
50
50
MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
51
51
MAVEN_CENTRAL_TOKEN : ${{ secrets.MAVEN_CENTRAL_TOKEN }}
Original file line number Diff line number Diff line change 23
23
mvn install -DskipTests=true -Dgpg.skip=true -Dcheckstyle.skip=true -Ddependency-check.skip=true -Djacoco.skip=true
24
24
cp -R target/apidocs/ ./docs/
25
25
26
- # # install-styleguide - Install style guides and CheckStyle utilities (Unix only)
27
- install-styleguide : | update-examples-submodule
26
+ # # install-checkstyle - Install the Checkstyle tool (Unix only)
27
+ install-checkstyle : | install-styleguide
28
28
curl -LJs https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.3.1/checkstyle-10.3.1-all.jar -o checkstyle.jar
29
+
30
+ # # install-styleguide - Install style guides
31
+ install-styleguide : | init-examples-submodule
29
32
sh examples/symlink_directory_files.sh examples/style_guides/java .
30
33
31
34
# # init-examples-submodule - Initialize the examples submodule
@@ -34,7 +37,7 @@ init-examples-submodule:
34
37
git submodule update
35
38
36
39
# # install - Install requirements
37
- install : | init-examples-submodule
40
+ install : | install-checkstyle
38
41
39
42
# # lint - Lints the project
40
43
lint : checkstyle scan
@@ -70,4 +73,4 @@ update-examples-submodule:
70
73
git submodule init
71
74
git submodule update --remote
72
75
73
- .PHONY : help build clean coverage docs install-styleguide install lint publish publish-dry release scan scan-strict test update-examples-submodule
76
+ .PHONY : help build clean coverage docs install-checkstyle install- styleguide install lint publish publish-dry release scan scan-strict test update-examples-submodule
You can’t perform that action at this time.
0 commit comments