File tree Expand file tree Collapse file tree 5 files changed +32
-9
lines changed
sentry-samples-netflix-dgs
sentry-samples-spring-boot-opentelemetry-noagent
sentry-samples-spring-boot-opentelemetry
sentry-samples-spring-boot-webflux
sentry-samples-spring-boot Expand file tree Collapse file tree 5 files changed +32
-9
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,10 @@ tasks.shadowJar {
5858
5959 doLast {
6060 val jar = archiveFile.get().asFile
61- val runtimeJars = project.configurations.getByName(" runtimeClasspath" ).resolve().filter { it.name.endsWith(" .jar" ) }
61+ val runtimeJars =
62+ project.configurations.getByName(" runtimeClasspath" ).resolve().filter {
63+ it.name.endsWith(" .jar" )
64+ }
6265 val uri = URI .create(" jar:${jar.toURI()} " )
6366 FileSystems .newFileSystem(uri, mapOf (" create" to " false" )).use { fs ->
6467 springMetadataFiles.forEach { entryPath ->
@@ -72,7 +75,9 @@ tasks.shadowJar {
7275 if (! merged.endsWith(" \n " )) merged.append(" \n " )
7376 }
7477 zip.close()
75- } catch (e: Exception ) { /* skip non-zip files */ }
78+ } catch (e: Exception ) {
79+ /* skip non-zip files */
80+ }
7681 }
7782 if (merged.isNotEmpty()) {
7883 val target = fs.getPath(entryPath)
Original file line number Diff line number Diff line change @@ -99,7 +99,10 @@ tasks.shadowJar {
9999
100100 doLast {
101101 val jar = archiveFile.get().asFile
102- val runtimeJars = project.configurations.getByName(" runtimeClasspath" ).resolve().filter { it.name.endsWith(" .jar" ) }
102+ val runtimeJars =
103+ project.configurations.getByName(" runtimeClasspath" ).resolve().filter {
104+ it.name.endsWith(" .jar" )
105+ }
103106 val uri = URI .create(" jar:${jar.toURI()} " )
104107 FileSystems .newFileSystem(uri, mapOf (" create" to " false" )).use { fs ->
105108 springMetadataFiles.forEach { entryPath ->
@@ -113,7 +116,9 @@ tasks.shadowJar {
113116 if (! merged.endsWith(" \n " )) merged.append(" \n " )
114117 }
115118 zip.close()
116- } catch (e: Exception ) { /* skip non-zip files */ }
119+ } catch (e: Exception ) {
120+ /* skip non-zip files */
121+ }
117122 }
118123 if (merged.isNotEmpty()) {
119124 val target = fs.getPath(entryPath)
Original file line number Diff line number Diff line change @@ -95,7 +95,10 @@ tasks.shadowJar {
9595
9696 doLast {
9797 val jar = archiveFile.get().asFile
98- val runtimeJars = project.configurations.getByName(" runtimeClasspath" ).resolve().filter { it.name.endsWith(" .jar" ) }
98+ val runtimeJars =
99+ project.configurations.getByName(" runtimeClasspath" ).resolve().filter {
100+ it.name.endsWith(" .jar" )
101+ }
99102 val uri = URI .create(" jar:${jar.toURI()} " )
100103 FileSystems .newFileSystem(uri, mapOf (" create" to " false" )).use { fs ->
101104 springMetadataFiles.forEach { entryPath ->
@@ -109,7 +112,9 @@ tasks.shadowJar {
109112 if (! merged.endsWith(" \n " )) merged.append(" \n " )
110113 }
111114 zip.close()
112- } catch (e: Exception ) { /* skip non-zip files */ }
115+ } catch (e: Exception ) {
116+ /* skip non-zip files */
117+ }
113118 }
114119 if (merged.isNotEmpty()) {
115120 val target = fs.getPath(entryPath)
Original file line number Diff line number Diff line change @@ -68,7 +68,10 @@ tasks.shadowJar {
6868
6969 doLast {
7070 val jar = archiveFile.get().asFile
71- val runtimeJars = project.configurations.getByName(" runtimeClasspath" ).resolve().filter { it.name.endsWith(" .jar" ) }
71+ val runtimeJars =
72+ project.configurations.getByName(" runtimeClasspath" ).resolve().filter {
73+ it.name.endsWith(" .jar" )
74+ }
7275 val uri = URI .create(" jar:${jar.toURI()} " )
7376 FileSystems .newFileSystem(uri, mapOf (" create" to " false" )).use { fs ->
7477 springMetadataFiles.forEach { entryPath ->
@@ -82,7 +85,9 @@ tasks.shadowJar {
8285 if (! merged.endsWith(" \n " )) merged.append(" \n " )
8386 }
8487 zip.close()
85- } catch (e: Exception ) { /* skip non-zip files */ }
88+ } catch (e: Exception ) {
89+ /* skip non-zip files */
90+ }
8691 }
8792 if (merged.isNotEmpty()) {
8893 val target = fs.getPath(entryPath)
Original file line number Diff line number Diff line change @@ -98,7 +98,10 @@ tasks.shadowJar {
9898
9999 doLast {
100100 val jar = archiveFile.get().asFile
101- val runtimeJars = project.configurations.getByName(" runtimeClasspath" ).resolve().filter { it.name.endsWith(" .jar" ) }
101+ val runtimeJars =
102+ project.configurations.getByName(" runtimeClasspath" ).resolve().filter {
103+ it.name.endsWith(" .jar" )
104+ }
102105 val uri = URI .create(" jar:${jar.toURI()} " )
103106 FileSystems .newFileSystem(uri, mapOf (" create" to " false" )).use { fs ->
104107 springMetadataFiles.forEach { entryPath ->
You can’t perform that action at this time.
0 commit comments