@@ -121,8 +121,8 @@ tasks.register("addLicenseFilesToJar") {
121121 throw GradleException (" Project NOTICE file not found at: ${projectNoticeFile.absolutePath} " )
122122 }
123123
124- println (" Processing jar: ${jarFile.absolutePath} " )
125- println (" Using temp directory: ${tempDir.absolutePath} " )
124+ logger.info (" Processing jar: ${jarFile.absolutePath} " )
125+ logger.info (" Using temp directory: ${tempDir.absolutePath} " )
126126
127127 // Clean up temp directory
128128 if (tempDir.exists()) {
@@ -144,7 +144,7 @@ tasks.register("addLicenseFilesToJar") {
144144 include(" META-INF/NOTICE*" )
145145 }
146146 .forEach { file ->
147- println (" Removing license file: ${file.relativeTo(tempDir)} " )
147+ logger.info (" Removing license file: ${file.relativeTo(tempDir)} " )
148148 file.delete()
149149 }
150150
@@ -153,13 +153,13 @@ tasks.register("addLicenseFilesToJar") {
153153 from(projectLicenseFile)
154154 into(tempDir)
155155 }
156- println (" Added project LICENSE file" )
156+ logger.info (" Added project LICENSE file" )
157157
158158 copy {
159159 from(projectNoticeFile)
160160 into(tempDir)
161161 }
162- println (" Added project NOTICE file" )
162+ logger.info (" Added project NOTICE file" )
163163
164164 // Delete the original jar
165165 jarFile.delete()
@@ -169,7 +169,7 @@ tasks.register("addLicenseFilesToJar") {
169169 " jar" (" destfile" to jarFile.absolutePath) { " fileset" (" dir" to tempDir.absolutePath) }
170170 }
171171
172- println (" Recreated jar with only project LICENSE and NOTICE files" )
172+ logger.info (" Recreated jar with only project LICENSE and NOTICE files" )
173173
174174 // Clean up temp directory
175175 tempDir.deleteRecursively()
0 commit comments