File tree Expand file tree Collapse file tree
modules/jooby-gradle-plugin/src/main/java/io/jooby/gradle Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313import java .util .HashMap ;
1414import java .util .Map ;
1515
16+ /**
17+ * Configure Gradle plugins for Jooby.
18+ *
19+ * @author edgar
20+ * @since 2.0.0
21+ */
1622public class JoobyPlugin implements Plugin <Project > {
23+
1724 @ Override public void apply (Project project ) {
1825 project .getExtensions ().create ("joobyRun" , JoobyRunOptions .class );
1926
Original file line number Diff line number Diff line change 3333import java .util .function .Predicate ;
3434import java .util .stream .Collectors ;
3535
36+ /**
37+ * Gradle plugin for Jooby run.
38+ *
39+ * @author edgar
40+ * @since 2.0.0
41+ */
3642public class RunTask extends DefaultTask {
3743
3844 static {
@@ -41,6 +47,11 @@ public class RunTask extends DefaultTask {
4147
4248 private ProjectConnection connection ;
4349
50+ /**
51+ * Run task.
52+ *
53+ * @throws Throwable If something goes wrong.
54+ */
4455 @ TaskAction
4556 public void run () throws Throwable {
4657 try {
@@ -171,7 +182,7 @@ private SourceSet sourceSet(final Project project) {
171182 .getByName (SourceSet .MAIN_SOURCE_SET_NAME );
172183 }
173184
174- public JavaPluginConvention getJavaConvention (final Project project ) {
185+ private JavaPluginConvention getJavaConvention (final Project project ) {
175186 return project .getConvention ().getPlugin (JavaPluginConvention .class );
176187 }
177188}
You can’t perform that action at this time.
0 commit comments