This repository was archived by the owner on Dec 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-10
lines changed
Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 1-
1+ # Define a task to publish artifacts to the local Maven repository
2+ # The -PskipSigning parameter is used to skip the signing process as it's not required for local use
23publishToMavenLocal :
3- gradle publishToMavenLocal -PskipSigning
4+ gradle publishToMavenLocal -PskipSigning
5+
6+ # Define a task to publish plugins to a portal/repository
7+ # Similarly, the -PskipSigning parameter skips the signing process, simplifying the publishing workflow
8+ publishToPortal :
9+ gradle publishPlugins -PskipSigning
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ gradle publish
182182发布到https://plugins.gradle.org/
183183
184184``` groovy
185- gradlew publishPlugins
185+ gradle publishPlugins
186186```
187187
188188## Releases
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ plugins {
1919}
2020
2121group ' com.ly.smart-doc'
22- version ' 3.0.6 '
22+ version ' 3.0.7 '
2323
2424sourceCompatibility = 1.8
2525
@@ -30,7 +30,7 @@ repositories {
3030}
3131
3232dependencies {
33- implementation group : ' com.ly.smart-doc' , name : ' smart-doc' , version : ' 3.0.6 '
33+ implementation group : ' com.ly.smart-doc' , name : ' smart-doc' , version : ' 3.0.7 '
3434}
3535tasks. withType(JavaCompile ) {
3636 options. encoding = " UTF-8"
@@ -100,11 +100,13 @@ publishing {
100100}
101101
102102signing {
103+ // Sign all publications by default
103104 sign publishing. publications
104- }
105105
106- if (project. hasProperty(' skipSigning' ) || project. gradle. startParameter. taskNames. any { it. contentEquals(" publishToMavenLocal" ) }) {
107- signing {
108- required { false }
106+ // Skip signing when certain tasks are executed
107+ required {
108+ ! project. hasProperty(' skipSigning' ) &&
109+ ! project. gradle. startParameter. taskNames. any { it. contentEquals(" publishToMavenLocal" ) } &&
110+ ! project. gradle. startParameter. taskNames. any { it. contentEquals(" publishPlugins" ) }
109111 }
110- }
112+ }
You can’t perform that action at this time.
0 commit comments