Skip to content

Commit 26e747d

Browse files
committed
Fix package tangle in spring-boot-gradle-plugin
Closes gh-32814
1 parent 04d6840 commit 26e747d

File tree

1 file changed

+3
-2
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/aot

1 file changed

+3
-2
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/aot/ProcessTestAot.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import org.gradle.api.tasks.JavaExec;
3232
import org.gradle.api.tasks.TaskAction;
3333

34-
import org.springframework.boot.gradle.plugin.SpringBootPlugin;
34+
import org.springframework.boot.gradle.util.VersionExtractor;
3535

3636
/**
3737
* Custom {@link JavaExec} task for processing test code ahead-of-time.
@@ -53,7 +53,8 @@ private Configuration createJUnitPlatformLauncher() {
5353
Configuration configuration = getProject().getConfigurations().create(getName() + "JUnitPlatformLauncher");
5454
DependencyHandler dependencyHandler = getProject().getDependencies();
5555
Dependency springBootDependencies = dependencyHandler
56-
.create(dependencyHandler.platform(SpringBootPlugin.BOM_COORDINATES));
56+
.create(dependencyHandler.platform("org.springframework.boot:spring-boot-dependencies:"
57+
+ VersionExtractor.forClass(ProcessTestAot.class)));
5758
DependencySet dependencies = configuration.getDependencies();
5859
dependencies.add(springBootDependencies);
5960
dependencies.add(dependencyHandler.create("org.junit.platform:junit-platform-launcher"));

0 commit comments

Comments
 (0)