Skip to content

Commit

Permalink
add shoutout to frc docs
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty committed Dec 26, 2023
1 parent 836419a commit 024f936
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/edu/wpi/first/gradlerio/GradleRIOPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import javax.inject.Inject;

import org.codehaus.groovy.runtime.StringGroovyMethods;
import org.gradle.BuildResult;
import org.gradle.api.Action;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
Expand Down Expand Up @@ -116,6 +117,20 @@ public void apply(Project project) {
getFlowScope().always(BuildListener.class, spec -> {
spec.getParameters().getBuildResult().set(getFlowProviders().getBuildWorkResult());
});

Action<BuildResult> shoutoutDocs = new Action<BuildResult>() {
@Override
public void execute(BuildResult buildResult){
System.out.println("==============================");
System.out.println("Want more information, resources, help, and tutorials on programming your robot? Check out frc-docs, the official documentation for FRC and WPILib.");
System.out.println("Visit frc-docs at:");
System.out.println("https://docs.wpilib.org");
System.out.println("==============================");
}
};

project.getGradle().buildFinished(shoutoutDocs);

}

public static Action<Manifest> javaManifest(String robotMainClass) {
Expand Down

0 comments on commit 024f936

Please sign in to comment.