@@ -25,7 +25,7 @@ public AccessTransformersProblems() {
2525 void reportIllegalTargetDependency (Dependency dependency ) {
2626 var dependencyToString = Util .toString (dependency );
2727 this .getLogger ().error ("ERROR: Cannot access transform target dependency: {}" , dependencyToString );
28- this .getReporter (). report (this . id ( "access-transformer-illegal-dependency-target" , "Cannot access transform target dependency" ) , spec -> spec
28+ this .report ("access-transformer-illegal-dependency-target" , "Cannot access transform target dependency" , spec -> spec
2929 .details ("""
3030 Cannot apply Access Transformers to a dependency that cannot be configured with attributes.
3131 Dependency: %s"""
@@ -48,7 +48,7 @@ RuntimeException accessTransformerConfigNotDefined(Exception e, Attribute<Boolea
4848 }
4949
5050 RuntimeException accessTransformerConfigMissing (Exception e , Attribute <Boolean > attribute , String atFilePath ) {
51- return this .getReporter (). throwing (e , this . id ( "access-transformer-config-missing" , "Access transformer config file not found" ) , spec -> spec
51+ return this .throwing (e , "access-transformer-config-missing" , "Access transformer config file not found" , spec -> spec
5252 .details ("""
5353 The access transformer cannot transform the input artifact because the configuration file could not be found.
5454 Attribute: %s
@@ -60,7 +60,7 @@ RuntimeException accessTransformerConfigMissing(Exception e, Attribute<Boolean>
6060 }
6161
6262 RuntimeException accessTransformerConfigUnreadable (Throwable e , Attribute <Boolean > attribute , String atFilePath ) {
63- return this .getReporter (). throwing (e , this . id ( "access-transformer-config-unreadable" , "Access transformer config file not read" ) , spec -> spec
63+ return this .throwing (e , "access-transformer-config-unreadable" , "Access transformer config file not read" , spec -> spec
6464 .details ("""
6565 The access transformer cannot transform the input artifact because the configuration file could not be read.
6666 This may be due to insufficient file permissions or a corrupted file.
@@ -72,7 +72,7 @@ RuntimeException accessTransformerConfigUnreadable(Throwable e, Attribute<Boolea
7272 }
7373
7474 RuntimeException accessTransformerConfigEmpty (Exception e , Attribute <Boolean > attribute , String atFilePath ) {
75- return this .getReporter (). throwing (e , this . id ( "access-transformer-config-empty" , "Access transformer config missing or empty" ) , spec -> spec
75+ return this .throwing (e , "access-transformer-config-empty" , "Access transformer config missing or empty" , spec -> spec
7676 .details ("""
7777 The access transformer cannot transform the input artifact because the configuration file is empty or blank.
7878 Attribute: %s
@@ -85,7 +85,7 @@ RuntimeException accessTransformerConfigEmpty(Exception e, Attribute<Boolean> at
8585
8686 void reportAccessTransformerCannotValidateOutput (Exception e , File inJar , File atFile , File outJar , File logFile ) {
8787 this .getLogger ().warn ("WARNING: Access transformer completed, but failed to validate the output. Output jar: {}" , outJar .getAbsolutePath ());
88- this .getReporter (). report (this . id ( "access-transformer-output-validation-failed" , "Failed to validate the access transformed output" ) , spec -> spec
88+ this .report ("access-transformer-output-validation-failed" , "Failed to validate the access transformed output" , spec -> spec
8989 .details ("""
9090 The access transformer completed the transformation, but failed to validate the output.
9191 While the output JAR may have been created successfully, it cannot be determined if any transformations were made.
@@ -103,7 +103,7 @@ void reportAccessTransformerCannotValidateOutput(Exception e, File inJar, File a
103103 }
104104
105105 RuntimeException accessTransformerCannotWriteOutput (Exception e , Path output ) {
106- return this .getReporter (). throwing (e , this . id ( "access-transformer-output-write-failed" , "Failed to write the access transformed output" ) , spec -> spec
106+ return this .throwing (e , "access-transformer-output-write-failed" , "Failed to write the access transformed output" , spec -> spec
107107 .details ("""
108108 The access transformer completed the transformation, but failed to write the output to Gradle.
109109 This could potentially be caused the lack of read/write permissions in the build folder or Gradle caches (`~/.gradle`).
@@ -116,7 +116,7 @@ RuntimeException accessTransformerCannotWriteOutput(Exception e, Path output) {
116116
117117 void reportAccessTransformerOutputIdentical (File inJar , File atFile , File outJar , File logFile ) {
118118 this .getLogger ().warn ("WARNING: Access transformer completed, but the output bytes are the same as the input. Output jar: {}" , outJar .getAbsolutePath ());
119- this .getReporter (). report (this . id ( "access-transformer-output-identical" , "Access transformer output identical to input" ) , spec -> spec
119+ this .report ("access-transformer-output-identical" , "Access transformer output identical to input" , spec -> spec
120120 .details ("""
121121 The access transformer completed the transformation, but the output bytes are the same as the input.
122122 This could potentially be caused by an empty or invalid access transformer configuration.
@@ -132,7 +132,7 @@ void reportAccessTransformerOutputIdentical(File inJar, File atFile, File outJar
132132 }
133133
134134 RuntimeException accessTransformerFailed (RuntimeException e , File inJar , File atFile , File logFile ) {
135- return this .getReporter (). throwing (e , this . id ( "access-transformer-failed" , "Access transformer failed" ) , spec -> spec
135+ return this .throwing (e , "access-transformer-failed" , "Access transformer failed" , spec -> spec
136136 .details ("""
137137 The access transformer failed to apply the transformations.
138138 This could potentially be caused by an invalid access transformer configuration.
0 commit comments