Skip to content

Commit

Permalink
release: 3.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
shalousun committed Aug 17, 2024
1 parent a749700 commit 9cba2c8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@

# Define a task to publish artifacts to the local Maven repository
# The -PskipSigning parameter is used to skip the signing process as it's not required for local use
publishToMavenLocal:
gradle publishToMavenLocal -PskipSigning
gradle publishToMavenLocal -PskipSigning

# Define a task to publish plugins to a portal/repository
# Similarly, the -PskipSigning parameter skips the signing process, simplifying the publishing workflow
publishToPortal:
gradle publishPlugins -PskipSigning
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ gradle publish
发布到https://plugins.gradle.org/

```groovy
gradlew publishPlugins
gradle publishPlugins
```

## Releases
Expand Down
16 changes: 9 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ plugins {
}

group 'com.ly.smart-doc'
version '3.0.6'
version '3.0.7'

sourceCompatibility = 1.8

Expand All @@ -30,7 +30,7 @@ repositories {
}

dependencies {
implementation group: 'com.ly.smart-doc', name: 'smart-doc', version: '3.0.6'
implementation group: 'com.ly.smart-doc', name: 'smart-doc', version: '3.0.7'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
Expand Down Expand Up @@ -100,11 +100,13 @@ publishing {
}

signing {
// Sign all publications by default
sign publishing.publications
}

if (project.hasProperty('skipSigning') || project.gradle.startParameter.taskNames.any { it.contentEquals("publishToMavenLocal") }) {
signing {
required { false }
// Skip signing when certain tasks are executed
required {
!project.hasProperty('skipSigning') &&
!project.gradle.startParameter.taskNames.any { it.contentEquals("publishToMavenLocal") } &&
!project.gradle.startParameter.taskNames.any { it.contentEquals("publishPlugins") }
}
}
}

0 comments on commit 9cba2c8

Please sign in to comment.