Class FrameworkDetector
java.lang.Object
io.github.josemodi97.sageactive4j.scaffold.FrameworkDetector
Guesses which
Framework a project uses from the coordinates it
declares. Each build tool's plugin collects those coordinates without
resolving anything: Maven passes its dependencies, managed dependencies
(a Spring Boot BOM import) and parent POM; Gradle passes every
configuration's declared dependencies plus the Spring Boot Gradle plugin,
if applied, with its version.
A heuristic: anything unrecognised falls back to Framework.PLAIN,
and the reason is always returned so the plugins can log their guess.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA declaredgroup:artifact:version; the version may benull.static final class -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandeclaresArtifact(Collection<FrameworkDetector.Coordinate> declared, Framework framework) Whether the project already declaresframework's sageactive4j artifact.static FrameworkDetector.Detectiondetect(Collection<FrameworkDetector.Coordinate> declared)
-
Method Details
-
detect
-
declaresArtifact
public static boolean declaresArtifact(Collection<FrameworkDetector.Coordinate> declared, Framework framework) Whether the project already declaresframework's sageactive4j artifact.
-