Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Restore CacheConfigurationImportSelector substitution
Browse files Browse the repository at this point in the history
Build fails on some samples otherwise

See gh-465
  • Loading branch information
sdeleuze committed Mar 9, 2021
1 parent 63ccfcc commit 107e9b8
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.springframework.nativex.substitutions.boot;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

import org.springframework.core.type.AnnotationMetadata;
import org.springframework.nativex.substitutions.OnlyIfPresent;

@TargetClass(className = "org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration", innerClass = "CacheConfigurationImportSelector", onlyWith = OnlyIfPresent.class)
final class Target_CacheConfigurationImportSelector {

// TODO Import dynamically the required caching configuration as described in https://github.com/spring-projects-experimental/spring-native/issues/465
@Substitute
public String[] selectImports(AnnotationMetadata importingClassMetadata) {
return new String[0];
}
}

0 comments on commit 107e9b8

Please sign in to comment.