Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 96d2ce7

Browse files
author
Matthew Dolan
committed
Publishing to MavenCentral
1 parent e3d469d commit 96d2ce7

File tree

19 files changed

+583
-261
lines changed

19 files changed

+583
-261
lines changed

.editorconfig

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
insert_final_newline = true
7+
max_line_length = 145
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.gradle]
12+
ij_continuation_indent_size = 8
13+
14+
[{*.kt, *.kts}]
15+
ij_continuation_indent_size = 8
16+
ij_kotlin_assignment_wrap = normal
17+
ij_kotlin_call_parameters_new_line_after_left_paren = true
18+
ij_kotlin_call_parameters_right_paren_on_new_line = true
19+
ij_kotlin_call_parameters_wrap = on_every_item
20+
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
21+
ij_kotlin_continuation_indent_for_chained_calls = false
22+
ij_kotlin_continuation_indent_for_expression_bodies = false
23+
ij_kotlin_continuation_indent_in_argument_lists = false
24+
ij_kotlin_continuation_indent_in_elvis = false
25+
ij_kotlin_continuation_indent_in_if_conditions = false
26+
ij_kotlin_continuation_indent_in_parameter_lists = false
27+
ij_kotlin_continuation_indent_in_supertype_lists = false
28+
ij_kotlin_extends_list_wrap = normal
29+
ij_kotlin_if_rparen_on_new_line = true
30+
ij_kotlin_keep_blank_lines_before_right_brace = 0
31+
ij_kotlin_keep_blank_lines_in_code = 1
32+
ij_kotlin_keep_blank_lines_in_declarations = 1
33+
ij_kotlin_method_call_chain_wrap = normal
34+
ij_kotlin_method_parameters_new_line_after_left_paren = true
35+
ij_kotlin_method_parameters_right_paren_on_new_line = true
36+
ij_kotlin_method_parameters_wrap = on_every_item
37+
ij_kotlin_name_count_to_use_star_import = 2147483647
38+
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
39+
ij_kotlin_wrap_expression_body_functions = 1

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 25 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,55 +10,46 @@ on:
1010
branches:
1111
- main
1212

13-
env:
14-
CI: "true"
15-
1613
jobs:
14+
15+
validation:
16+
name: "Validation"
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: gradle/wrapper-validation-action@v1
21+
1722
build:
23+
needs: [validation]
1824
runs-on: ubuntu-latest
1925

2026
steps:
2127
- uses: actions/checkout@v2
22-
28+
2329
- name: set up JDK 1.8
2430
uses: actions/setup-java@v1
2531
with:
2632
java-version: 1.8
2733

28-
- name: gradle cache
29-
uses: actions/cache@v1
30-
with:
31-
path: ~/.gradle/caches
32-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
33-
restore-keys: |
34-
${{ runner.os }}-gradle-
35-
- name: gradle wrapper cache
36-
uses: actions/cache@v1
37-
with:
38-
path: ~/.gradle/wrapper/dists
39-
key: ${{ runner.os }}-gradlewrapper
40-
41-
- name: NVD CVE cache
42-
uses: actions/cache@v1
43-
with:
44-
path: ~/.gradle/dependency-check-data
45-
key: ${{ runner.os }}-dependency-check-data
46-
4734
- name: Build with Gradle
4835
run: ./gradlew build --stacktrace
4936

50-
- name: Set tag version
51-
run: echo ::set-env name=CIRCLE_TAG::$(echo ${GITHUB_REF:10})
37+
- name: Upload coverage to Codecov
38+
uses: codecov/[email protected]
39+
with:
40+
token: ${{secrets.CODECOV_TOKEN}}
41+
42+
- name: Prepare tag properties
43+
run: |
44+
echo "${{secrets.GPG_SIGNING_SECRET_KEY_RING_FILE_BASE64}}" > ~/.gradle/sonatype-appmattus-keys.gpg.b64
45+
base64 -d ~/.gradle/sonatype-appmattus-keys.gpg.b64 > ~/.gradle/sonatype-appmattus-keys.gpg
46+
echo "${{secrets.GPG_GRADLE_PROPERTIES}}" > ~/.gradle/gradle.properties
5247
if: startsWith(github.ref, 'refs/tags/')
53-
48+
5449
- name: Upload tag
55-
env:
56-
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
57-
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
58-
run: ./gradlew bintrayUpload
50+
run: ./gradlew publish --no-daemon --no-parallel -Psigning.secretKeyRingFile=$(echo ~/.gradle/sonatype-appmattus-keys.gpg)
5951
if: startsWith(github.ref, 'refs/tags/')
6052

61-
- name: Upload coverage to Codecov
62-
uses: codecov/[email protected]
63-
with:
64-
token: ${{secrets.CODECOV_TOKEN}}
53+
- name: Close and release tag
54+
run: ./gradlew closeAndReleaseRepository
55+
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)