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

Commit 9cba2c8

Browse files
committed
release: 3.0.7
1 parent a749700 commit 9cba2c8

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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
23
publishToMavenLocal:
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

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

build.gradle

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ plugins {
1919
}
2020

2121
group 'com.ly.smart-doc'
22-
version '3.0.6'
22+
version '3.0.7'
2323

2424
sourceCompatibility = 1.8
2525

@@ -30,7 +30,7 @@ repositories {
3030
}
3131

3232
dependencies {
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
}
3535
tasks.withType(JavaCompile) {
3636
options.encoding = "UTF-8"
@@ -100,11 +100,13 @@ publishing {
100100
}
101101

102102
signing {
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+
}

0 commit comments

Comments
 (0)