File tree Expand file tree Collapse file tree
src/main/groovy/ru/vyarus/gradle/plugin/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * Fix gradle 9 compatibility
2+
13### 3.0.0 (2024-03-10)
24* (BREAKING) Drop gradle 5 and 6 support
35* (BREAKING) Always use native javadoc and source jars tasks (withJavadocJar() and withSourcesJar())
Original file line number Diff line number Diff line change @@ -181,12 +181,15 @@ class JavaLibPlugin implements Plugin<Project> {
181181 }
182182
183183 private void configureJar (Project project , MavenPublication publication ) {
184+ Provider<String > version = project. provider { project. version }
185+ Provider<String > group = project. provider { project. group }
186+ Provider<String > name = project. provider { project. name }
184187 project. tasks. register(' generatePomPropertiesFile' ) {
185188 it. with {
186189 inputs. properties([
187- ' version' : " ${ -> project. version } " ,
188- ' groupId' : " ${ -> project. group } " ,
189- ' artifactId' : " ${ -> project. name } " ,
190+ ' version' : " ${ -> version.get() } " ,
191+ ' groupId' : " ${ -> group.get() } " ,
192+ ' artifactId' : " ${ -> name.get() } " ,
190193 ])
191194 outputs. file project. layout. buildDirectory. file(' generatePomPropertiesFile/pom.properties' )
192195 doLast {
You can’t perform that action at this time.
0 commit comments