Removed commented-out old code.
This commit is contained in:
parent
599fb919c7
commit
78bec0dd53
@ -141,29 +141,6 @@ public class SsgGradlePlugin implements Plugin<Project> {
|
|||||||
this.createDomainSourceSet(project, sourceSets, PAGES_SOURCE_SET, List.of("main", COMPONENTS_SOURCE_SET));
|
this.createDomainSourceSet(project, sourceSets, PAGES_SOURCE_SET, List.of("main", COMPONENTS_SOURCE_SET));
|
||||||
}
|
}
|
||||||
|
|
||||||
// protected void configureCompileSsgGroovyTask(Project project) {
|
|
||||||
// project.getTasks().named("compileSsgGroovy", GroovyCompile.class, groovyCompile -> {
|
|
||||||
// final File dotSsg = project.getLayout().getProjectDirectory().dir(".ssg").getAsFile();
|
|
||||||
// if (!dotSsg.exists()) {
|
|
||||||
// //noinspection ResultOfMethodCallIgnored
|
|
||||||
// dotSsg.mkdirs();
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// final File compileConfigurationScript = new File(dotSsg, "compileSsgGroovy.groovy");
|
|
||||||
// if (!compileConfigurationScript.exists()) {
|
|
||||||
// try (final OutputStream outputStream = new FileOutputStream(compileConfigurationScript)) {
|
|
||||||
// outputStream.write("""
|
|
||||||
// configuration.scriptBaseClass = 'com.jessebrault.ssg.buildscript.BuildScriptBase'
|
|
||||||
// """.stripIndent().trim().getBytes());
|
|
||||||
// } catch (IOException ioException) {
|
|
||||||
// throw new RuntimeException(ioException);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// groovyCompile.getGroovyOptions().setConfigurationScript(compileConfigurationScript);
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
protected void configureSourceSetConfigurations(Project project, Configuration ssgApiConfiguration) {
|
protected void configureSourceSetConfigurations(Project project, Configuration ssgApiConfiguration) {
|
||||||
final ConfigurationContainer configurations = project.getConfigurations();
|
final ConfigurationContainer configurations = project.getConfigurations();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user