Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1471aa4

Browse files
committedNov 29, 2024·
Refactor code organization and setup maven publishing (#3)
Fixes #4
1 parent 42640d2 commit 1471aa4

Some content is hidden

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

60 files changed

+435
-344
lines changed
 

‎.github/workflows/release.yml

+45-45
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release App Sizer
22

33
on:
44
release:
5-
types: [created]
5+
types: [ created ]
66

77
env:
88
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
@@ -56,47 +56,47 @@ jobs:
5656
asset_name: app-sizer-cli-${{ env.VERSION }}.jar.sha256
5757
asset_content_type: text/plain
5858

59-
release-plugin:
60-
runs-on: ubuntu-latest
61-
permissions:
62-
contents: write
63-
packages: write
64-
65-
steps:
66-
- uses: actions/checkout@v4
67-
with:
68-
fetch-depth: 0
69-
70-
- name: Set up JDK 11
71-
uses: actions/setup-java@v4
72-
with:
73-
distribution: "zulu"
74-
java-version: "11"
75-
cache: 'gradle'
76-
77-
- name: Get version
78-
id: get_version
79-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
80-
81-
- name: Import GPG key
82-
uses: crazy-max/ghaction-import-gpg@v5
83-
with:
84-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
85-
passphrase: ${{ secrets.GPG_PASSPHRASE }}
86-
87-
- name: Validate Gradle wrapper
88-
uses: gradle/wrapper-validation-action@v1
89-
90-
- name: Publish to Maven Central
91-
env:
92-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
93-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
94-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
95-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
96-
VERSION: ${{ env.VERSION }}
97-
run: |
98-
./gradlew :gradle-plugin:publish \
99-
-Pversion=${VERSION} \
100-
--no-daemon \
101-
--no-parallel \
102-
--stacktrace
59+
# release-plugin:
60+
# runs-on: ubuntu-latest
61+
# permissions:
62+
# contents: write
63+
# packages: write
64+
#
65+
# steps:
66+
# - uses: actions/checkout@v4
67+
# with:
68+
# fetch-depth: 0
69+
#
70+
# - name: Set up JDK 11
71+
# uses: actions/setup-java@v4
72+
# with:
73+
# distribution: "zulu"
74+
# java-version: "11"
75+
# cache: 'gradle'
76+
#
77+
# - name: Get version
78+
# id: get_version
79+
# run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
80+
#
81+
# - name: Import GPG key
82+
# uses: crazy-max/ghaction-import-gpg@v5
83+
# with:
84+
# gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
85+
# passphrase: ${{ secrets.GPG_PASSPHRASE }}
86+
#
87+
# - name: Validate Gradle wrapper
88+
# uses: gradle/wrapper-validation-action@v1
89+
#
90+
# - name: Publish to Maven Central
91+
# env:
92+
# OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
93+
# OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
94+
# GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
95+
# GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
96+
# VERSION: ${{ env.VERSION }}
97+
# run: |
98+
# ./gradlew :gradle-plugin:publish \
99+
# -Pversion=${VERSION} \
100+
# --no-daemon \
101+
# --no-parallel \
102+
# --stacktrace

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ sample/.idea/*
77
.DS_Store
88
/build/
99
build/
10+
!**/src/**/build/
1011
/captures
1112

1213

0 commit comments

Comments
 (0)
Please sign in to comment.