Disable DevTools during AOT processing

Closes gh-32517
This commit is contained in:
Andy Wilkinson 2022-09-27 11:13:38 +01:00
parent 5449397463
commit 243075d3b2
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2022 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -20,6 +20,8 @@ import java.util.Collections;
import java.util.LinkedHashSet; import java.util.LinkedHashSet;
import java.util.Set; import java.util.Set;
import org.springframework.boot.AotProcessor;
/** /**
* Utility to deduce if DevTools should be enabled in the current context. * Utility to deduce if DevTools should be enabled in the current context.
* *
@ -35,6 +37,7 @@ public final class DevToolsEnablementDeducer {
skipped.add("org.junit.runners."); skipped.add("org.junit.runners.");
skipped.add("org.junit.platform."); skipped.add("org.junit.platform.");
skipped.add("org.springframework.boot.test."); skipped.add("org.springframework.boot.test.");
skipped.add(AotProcessor.class.getName());
skipped.add("cucumber.runtime."); skipped.add("cucumber.runtime.");
SKIPPED_STACK_ELEMENTS = Collections.unmodifiableSet(skipped); SKIPPED_STACK_ELEMENTS = Collections.unmodifiableSet(skipped);
} }