File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed
resources/META-INF/spring Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 226226 <!--
227227 This plugin is used to generate AOT metadata during tests so that it can be
228228 compared against those in META-INF/native-image/org.kohsuke/github-api/*.
229- The tests are located in src/test/java/org.kohsuke.aot
229+ The tests are start with the name "Aot..."
230230 -->
231231 <plugin >
232232 <groupId >org.springframework.boot</groupId >
Original file line number Diff line number Diff line change 1- package org .kohsuke .aot ;
1+ package org .kohsuke .github ;
22
33import com .fasterxml .jackson .databind .JsonNode ;
44import com .fasterxml .jackson .databind .ObjectMapper ;
@@ -77,6 +77,7 @@ private Stream<String> readAotConfigToStreamOfClassNames(String reflectionConfig
7777 .map (jsonNode -> jsonNode .get ("name" ))
7878 .map (JsonNode ::toString )
7979 .map (reflectConfigEntryClassName -> reflectConfigEntryClassName .replace ("\" " , "" ))
80- .filter (x -> x .contains ("org.kohsuke.github" ));
80+ .filter (x -> x .contains ("org.kohsuke.github" ))
81+ .filter (x -> !x .contains ("org.kohsuke.github.AotTest" ));
8182 }
8283}
Original file line number Diff line number Diff line change 1- package org .kohsuke .aot ;
1+ package org .kohsuke .github ;
22
33import org .springframework .boot .autoconfigure .SpringBootApplication ;
44import org .springframework .boot .builder .SpringApplicationBuilder ;
88 * required for test purpose.
99 */
1010@ SpringBootApplication
11- public class AotTestApplication {
11+ class AotTestApplication {
1212
1313 /**
1414 * Runs a spring boot application to generate AOT hints
Original file line number Diff line number Diff line change 1- package org .kohsuke .aot ;
1+ package org .kohsuke .github ;
22
33import org .jetbrains .annotations .NotNull ;
44import org .springframework .aot .hint .MemberCategory ;
Original file line number Diff line number Diff line change 1- org.springframework.aot.hint.RuntimeHintsRegistrar=org.kohsuke.aot .AotTestRuntimeHints
1+ org.springframework.aot.hint.RuntimeHintsRegistrar=org.kohsuke.github .AotTestRuntimeHints
You can’t perform that action at this time.
0 commit comments