Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add shoutout to frc docs #693

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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