File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
src/main/java/org/hibernate/search/develocity Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 44
55import org .hibernate .search .develocity .GoalMetadataProvider ;
66import org .hibernate .search .develocity .SimpleConfiguredPlugin ;
7+ import org .hibernate .search .develocity .scan .BuildScanMetadata ;
78import org .hibernate .search .develocity .util .JavaVersions ;
89
910public class CompilerConfiguredPlugin extends SimpleConfiguredPlugin {
@@ -28,5 +29,6 @@ private static void configureCompile(GoalMetadataProvider.Context context) {
2829 context .configuration ().getBoolean ( "skip" ),
2930 JavaVersions ::forJavacExecutable );
3031 } );
32+ BuildScanMetadata .addCompilerMetadata ( context );
3133 }
3234}
Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ public static void addMainMetadata(BuildScanApi buildScanApi) {
3838 buildScanApi .tag ( "hibernate-search" );
3939 }
4040
41+ public static void addCompilerMetadata (GoalMetadataProvider .Context context ) {
42+ var buildScanApi = context .buildScan ();
43+ String compilerId = context .configuration ().getString ( "compilerId" );
44+ if ( !Strings .isBlank ( compilerId ) ) {
45+ buildScanApi .tag ( "compiler-%s" .formatted ( compilerId ) );
46+ }
47+ }
48+
4149 public static void addJavaExecutableVersion (GoalMetadataProvider .Context context ,
4250 String javaExecutable , String javaVersion ,
4351 boolean canCacheExactVersion ) {
You can’t perform that action at this time.
0 commit comments