@@ -60,21 +60,12 @@ jobs:
60
60
ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.GPG_KEY_CONTENTS }}
61
61
62
62
steps :
63
- - name : Debug Signing Setup
64
- run : |
65
- echo "Environment variables:"
66
- echo "Username set: $([[ -n "$ORG_GRADLE_PROJECT_mavenCentralUsername" ]] && echo "✅" || echo "❌")"
67
- echo "Password set: $([[ -n "$ORG_GRADLE_PROJECT_mavenCentralPassword" ]] && echo "✅" || echo "❌")"
68
- echo "Key ID set: $([[ -n "$ORG_GRADLE_PROJECT_signingInMemoryKeyId" ]] && echo "✅" || echo "❌")"
69
- echo "Key Password set: $([[ -n "$ORG_GRADLE_PROJECT_signingInMemoryKeyPassword" ]] && echo "✅" || echo "❌")"
70
- echo "GPG Key set: $([[ -n "$ORG_GRADLE_PROJECT_signingInMemoryKey" ]] && echo "✅" || echo "❌")"
71
- echo ""
72
- echo "Testing Gradle can see the properties:"
73
- ./gradlew properties | grep signingInMemoryKey || echo "❌ signingInMemoryKey not found"
74
-
75
63
- name : Check out code
76
64
uses : actions/checkout@v4
77
65
66
+ - name : Make gradlew executable
67
+ run : chmod +x ./gradlew
68
+
78
69
- name : Validate Gradle Wrapper
79
70
uses : gradle/actions/wrapper-validation@v3
80
71
@@ -93,11 +84,25 @@ jobs:
93
84
distribution : ' temurin'
94
85
java-version : ' 17'
95
86
87
+ - name : Debug Signing Setup
88
+ run : |
89
+ echo "Environment variables:"
90
+ echo "Username set: $([[ -n "$ORG_GRADLE_PROJECT_mavenCentralUsername" ]] && echo "✅" || echo "❌")"
91
+ echo "Password set: $([[ -n "$ORG_GRADLE_PROJECT_mavenCentralPassword" ]] && echo "✅" || echo "❌")"
92
+ echo "Key ID set: $([[ -n "$ORG_GRADLE_PROJECT_signingInMemoryKeyId" ]] && echo "✅" || echo "❌")"
93
+ echo "Key Password set: $([[ -n "$ORG_GRADLE_PROJECT_signingInMemoryKeyPassword" ]] && echo "✅" || echo "❌")"
94
+ echo "GPG Key set: $([[ -n "$ORG_GRADLE_PROJECT_signingInMemoryKey" ]] && echo "✅" || echo "❌")"
95
+ echo ""
96
+ echo "Testing Gradle can see the properties:"
97
+ ./gradlew properties | grep signingInMemoryKey || echo "❌ signingInMemoryKey not found"
98
+ ./gradlew properties | grep signingInMemoryKeyId || echo "❌ signingInMemoryKeyId not found"
99
+ ./gradlew properties | grep signingInMemoryKeyPassword || echo "❌ signingInMemoryKeyPassword not found"
100
+
96
101
- name : Publish Core Module to Maven Central
97
- run : ./gradlew :decimal-formatter-core:publishToMavenCentral --no-configuration-cache # Publishing releases to Maven Central is not supported yet with configuration caching enabled, because of this missing Gradle feature: https://github.com/gradle/gradle/issues/22779
102
+ run : ./gradlew :decimal-formatter-core:publishToMavenCentral --no-configuration-cache -PsigningInMemoryKeyId="${ORG_GRADLE_PROJECT_signingInMemoryKeyId}" -PsigningInMemoryKey="${ORG_GRADLE_PROJECT_signingInMemoryKey}" -PsigningInMemoryKeyPassword="${ORG_GRADLE_PROJECT_signingInMemoryKeyPassword}" -PmavenCentralUsername="${ORG_GRADLE_PROJECT_mavenCentralUsername}" -PmavenCentralPassword="${ORG_GRADLE_PROJECT_mavenCentralPassword}"
98
103
99
104
- name : Publish Compose Module to Maven Central
100
- run : ./gradlew :decimal-formatter-compose:publishToMavenCentral --no-configuration-cache # Publishing releases to Maven Central is not supported yet with configuration caching enabled, because of this missing Gradle feature: https://github.com/gradle/gradle/issues/22779
105
+ run : ./gradlew :decimal-formatter-compose:publishToMavenCentral --no-configuration-cache -PsigningInMemoryKeyId="${ORG_GRADLE_PROJECT_signingInMemoryKeyId}" -PsigningInMemoryKey="${ORG_GRADLE_PROJECT_signingInMemoryKey}" -PsigningInMemoryKeyPassword="${ORG_GRADLE_PROJECT_signingInMemoryKeyPassword}" -PmavenCentralUsername="${ORG_GRADLE_PROJECT_mavenCentralUsername}" -PmavenCentralPassword="${ORG_GRADLE_PROJECT_mavenCentralPassword}"
101
106
102
107
- name : Verify Publications
103
108
run : |
0 commit comments