File tree 3 files changed +16
-17
lines changed
3 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -107,17 +107,22 @@ model {
107
107
artifactId project. ext. artifactId
108
108
version project. version
109
109
110
+ def projectExtArtifactId = project. ext. artifactId
111
+ def projectDescription = project. description
112
+ def projectOrg = project. org
113
+ def rootProjectName = rootProject. name
114
+
110
115
pom. withXml {
111
116
// add MavenCentral requirements to the POM
112
117
asNode(). children(). last() + {
113
118
resolveStrategy = Closure . DELEGATE_FIRST
114
- name project . ext . artifactId
115
- description project . description
116
- url " https://github.com/${ project.org } /${ rootProject.name } "
119
+ name projectExtArtifactId
120
+ description projectDescription
121
+ url " https://github.com/${ projectOrg } /${ rootProjectName } "
117
122
scm {
118
- url " https://github.com/${ project.org } /${ rootProject.name } "
119
- connection " scm:git:https://github.com/${ project.org } /${ rootProject.name } .git"
120
- developerConnection " scm:git:ssh:git@github.com/${ project.org } /${ rootProject.name } .git"
123
+ url " https://github.com/${ projectOrg } /${ rootProjectName } "
124
+ connection " scm:git:https://github.com/${ projectOrg } /${ rootProjectName } .git"
125
+ developerConnection " scm:git:ssh:git@github.com/${ projectOrg } /${ rootProjectName } .git"
121
126
}
122
127
licenses {
123
128
if (isExt) {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
4
4
5
5
## [ Unreleased]
6
6
* Support for ` clang-format ` ([ #2406 ] ( https://github.com/diffplug/spotless/pull/2406 ) )
7
+ * Adopt new version of ` maven-plugin-development ` from GradleX ([ #2395 ] ( https://github.com/diffplug/spotless/pull/2395 ) )
7
8
8
9
## [ 2.44.2] - 2025-01-14
9
10
* Eclipse-based tasks can now handle parallel configuration ([ #2389 ] ( https://github.com/diffplug/spotless/issues/2389 ) )
Original file line number Diff line number Diff line change 1
- import de.benediktritter .maven.plugin.development.task.GenerateHelpMojoSourcesTask
2
- import de.benediktritter .maven.plugin.development.task.GenerateMavenPluginDescriptorTask
1
+ import org.gradlex .maven.plugin.development.task.GenerateHelpMojoSourcesTask
2
+ import org.gradlex .maven.plugin.development.task.GenerateMavenPluginDescriptorTask
3
3
4
4
plugins {
5
- // https://www.benediktritter.de/ maven-plugin-development/#release-history
6
- id ' de.benediktritter .maven-plugin-development' version ' 0.4 .3'
5
+ // https://github.com/gradlex-org/ maven-plugin-development
6
+ id ' org.gradlex .maven-plugin-development' version ' 1.0 .3'
7
7
}
8
8
9
9
apply from : rootProject. file(' gradle/changelog.gradle' )
@@ -19,13 +19,6 @@ mavenPlugin {
19
19
description = project. description
20
20
}
21
21
22
- tasks. withType(GenerateMavenPluginDescriptorTask ). configureEach {
23
- notCompatibleWithConfigurationCache(' https://github.com/britter/maven-plugin-development/issues/8' )
24
- }
25
- tasks. withType(GenerateHelpMojoSourcesTask ). configureEach {
26
- notCompatibleWithConfigurationCache(' https://github.com/britter/maven-plugin-development/issues/8' )
27
- }
28
-
29
22
String VER_MAVEN_API = ' 3.0'
30
23
String VER_ECLIPSE_AETHER = ' 1.1.0'
31
24
String VER_PLEXUS_RESOURCES = ' 1.3.0'
You can’t perform that action at this time.
0 commit comments