Skip to content

Commit

Permalink
Gradle Tooling API Support (#42)
Browse files Browse the repository at this point in the history
* WIP: explore custom frege project model

* fix: canBuild should return the client class

* fix: get frege main source dir as absolute path

* refactor: shorter names

* refactor: clean up package structure
  • Loading branch information
tricktron authored Aug 8, 2022
1 parent 461227f commit 4368636
Show file tree
Hide file tree
Showing 32 changed files with 214 additions and 107 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ dependencies
{
def junit5Group = 'org.junit.jupiter'
def junit5Version = '5.8.2'
testImplementation group: junit5Group, name: 'junit-jupiter-api', version: junit5Version
testImplementation group: 'net.jqwik', name: 'jqwik', version: '1.6.5'
testRuntimeOnly group: junit5Group, name: 'junit-jupiter-engine', version: junit5Version
testImplementation group: junit5Group, name: 'junit-jupiter-api', version: junit5Version
testImplementation group: 'net.jqwik', name: 'jqwik', version: '1.6.5'
testRuntimeOnly group: junit5Group, name: 'junit-jupiter-engine', version: junit5Version
testImplementation(enforcedPlatform("org.junit:junit-bom:${junit5Version}"))
}

Expand Down Expand Up @@ -44,7 +44,7 @@ gradlePlugin
fregePlugin
{
id = 'ch.fhnw.thga.frege'
implementationClass = 'ch.fhnw.thga.gradleplugins.FregePlugin'
implementationClass = 'ch.fhnw.thga.fregegradleplugin.FregePlugin'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
group = ch.fhnw.thga
version = 4.1.0-alpha
version = 4.2.0-alpha
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package ch.fhnw.thga.gradleplugins;
package ch.fhnw.thga.fregegradleplugin;

import static ch.fhnw.thga.gradleplugins.FregeExtension.DEFAULT_RELATIVE_SOURCE_DIR;
import static ch.fhnw.thga.gradleplugins.FregePlugin.FREGE_EXTENSION_NAME;
import static ch.fhnw.thga.fregegradleplugin.FregeExtension.DEFAULT_RELATIVE_SOURCE_DIR;
import static ch.fhnw.thga.fregegradleplugin.FregePlugin.FREGE_EXTENSION_NAME;
import static ch.fhnw.thga.fregegradleplugin.SharedTaskLogic.NEW_LINE;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static ch.fhnw.thga.gradleplugins.SharedTaskLogic.NEW_LINE;

import java.io.File;

import org.gradle.testkit.runner.BuildResult;
import org.gradle.testkit.runner.GradleRunner;

import ch.fhnw.thga.gradleplugins.fregeproject.FregeSourceFile;
import ch.fhnw.thga.fregegradleplugin.project.FregeSourceFile;

public class SharedFunctionalTestLogic
{
Expand Down Expand Up @@ -65,7 +65,7 @@ public static final void assertFileDoesNotExist(
assertFalse(fileExists(testProjectDir, relativeFilePath));
}

static String createFregeSection(FregeDTO fregeDTO)
public static String createFregeSection(FregeDTO fregeDTO)
{
return String.format(
"%s {%s %s%s}",
Expand All @@ -75,7 +75,7 @@ static String createFregeSection(FregeDTO fregeDTO)
System.lineSeparator());
}

static BuildResult runGradleTask(File testProjectDir, String... args)
public static BuildResult runGradleTask(File testProjectDir, String... args)
{
return GradleRunner
.create()
Expand All @@ -85,7 +85,7 @@ static BuildResult runGradleTask(File testProjectDir, String... args)
.build();
}

static BuildResult runAndFailGradleTask(File testProjectDir, String... args)
public static BuildResult runAndFailGradleTask(File testProjectDir, String... args)
{
return GradleRunner
.create()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ch.fhnw.thga.gradleplugins.fregeproject;
package ch.fhnw.thga.fregegradleplugin.project;

import java.io.IOException;
import java.util.function.Supplier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ch.fhnw.thga.gradleplugins.fregeproject;
package ch.fhnw.thga.fregegradleplugin.project;

public interface BuildFile
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ch.fhnw.thga.gradleplugins.fregeproject;
package ch.fhnw.thga.fregegradleplugin.project;

import java.io.File;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package ch.fhnw.thga.gradleplugins.fregeproject;
package ch.fhnw.thga.fregegradleplugin.project;

import static ch.fhnw.thga.gradleplugins.FregeExtension.DEFAULT_RELATIVE_COMPILER_DOWNLOAD_DIR;
import static ch.fhnw.thga.gradleplugins.FregePlugin.FREGE_PLUGIN_ID;
import static ch.fhnw.thga.gradleplugins.GradleBuildFileConversionTest.createPluginsSection;
import static ch.fhnw.thga.fregegradleplugin.FregeExtension.DEFAULT_RELATIVE_COMPILER_DOWNLOAD_DIR;
import static ch.fhnw.thga.fregegradleplugin.FregePlugin.FREGE_PLUGIN_ID;
import static ch.fhnw.thga.fregegradleplugin.GradleBuildFileConversionTest.createPluginsSection;

import java.io.BufferedWriter;
import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ch.fhnw.thga.gradleplugins.fregeproject;
package ch.fhnw.thga.fregegradleplugin.project;

public class FregeSourceFile
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package ch.fhnw.thga.gradleplugins.fregeproject;
package ch.fhnw.thga.fregegradleplugin.project;

import java.io.File;

public interface ProjectRoot
{
BuildFile projectRoot(File projectRoot);

}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package ch.fhnw.thga.gradleplugins;
package ch.fhnw.thga.fregegradleplugin.tasks;

import static ch.fhnw.thga.gradleplugins.FregeExtension.DEFAULT_RELATIVE_SOURCE_DIR;
import static ch.fhnw.thga.gradleplugins.FregePlugin.COMPILE_FREGE_TASK_NAME;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.COMPLETION_FR;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.MINIMAL_BUILD_FILE_CONFIG;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.assertFileExists;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.createFregeSection;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.runAndFailGradleTask;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.runGradleTask;
import static ch.fhnw.thga.gradleplugins.SharedTaskLogic.NEW_LINE;
import static ch.fhnw.thga.fregegradleplugin.FregeExtension.DEFAULT_RELATIVE_SOURCE_DIR;
import static ch.fhnw.thga.fregegradleplugin.FregePlugin.COMPILE_FREGE_TASK_NAME;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.COMPLETION_FR;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.MINIMAL_BUILD_FILE_CONFIG;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.assertFileExists;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.createFregeSection;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.runAndFailGradleTask;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.runGradleTask;
import static ch.fhnw.thga.fregegradleplugin.SharedTaskLogic.NEW_LINE;
import static org.gradle.testkit.runner.TaskOutcome.FAILED;
import static org.gradle.testkit.runner.TaskOutcome.FROM_CACHE;
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS;
Expand All @@ -27,8 +27,9 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;

import ch.fhnw.thga.gradleplugins.fregeproject.FregeProjectBuilder;
import ch.fhnw.thga.gradleplugins.fregeproject.FregeSourceFile;
import ch.fhnw.thga.fregegradleplugin.FregeDTOBuilder;
import ch.fhnw.thga.fregegradleplugin.project.FregeProjectBuilder;
import ch.fhnw.thga.fregegradleplugin.project.FregeSourceFile;

public class CompileFregeTaskFunctionalTest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package ch.fhnw.thga.gradleplugins;
package ch.fhnw.thga.fregegradleplugin.tasks;

import static ch.fhnw.thga.gradleplugins.FregeExtension.DEFAULT_RELATIVE_SOURCE_DIR;
import static ch.fhnw.thga.gradleplugins.FregePlugin.COMPILE_FREGE_TASK_NAME;
import static ch.fhnw.thga.gradleplugins.FregePlugin.INIT_FREGE_TASK_NAME;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.MINIMAL_BUILD_FILE_CONFIG;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.assertFileExists;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.runGradleTask;
import static ch.fhnw.thga.fregegradleplugin.FregeExtension.DEFAULT_RELATIVE_SOURCE_DIR;
import static ch.fhnw.thga.fregegradleplugin.FregePlugin.COMPILE_FREGE_TASK_NAME;
import static ch.fhnw.thga.fregegradleplugin.FregePlugin.INIT_FREGE_TASK_NAME;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.MINIMAL_BUILD_FILE_CONFIG;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.assertFileExists;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.runGradleTask;
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
Expand All @@ -20,8 +20,8 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;

import ch.fhnw.thga.gradleplugins.fregeproject.FregeProjectBuilder;
import ch.fhnw.thga.gradleplugins.fregeproject.ProjectRoot;
import ch.fhnw.thga.fregegradleplugin.project.FregeProjectBuilder;
import ch.fhnw.thga.fregegradleplugin.project.ProjectRoot;

public class InitFregeTaskFunctionalTest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package ch.fhnw.thga.gradleplugins;
package ch.fhnw.thga.fregegradleplugin.tasks;

import static ch.fhnw.thga.gradleplugins.FregeExtension.DEFAULT_RELATIVE_SOURCE_DIR;
import static ch.fhnw.thga.gradleplugins.FregePlugin.REPL_FREGE_TASK_NAME;
import static ch.fhnw.thga.gradleplugins.FregePlugin.COMPILE_FREGE_TASK_NAME;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.COMPLETION_FR;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.MINIMAL_BUILD_FILE_CONFIG;
import static ch.fhnw.thga.gradleplugins.SharedTaskLogic.NEW_LINE;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.assertFileDoesNotExist;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.assertFileExists;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.createFregeSection;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.runAndFailGradleTask;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.runGradleTask;
import static ch.fhnw.thga.fregegradleplugin.FregeExtension.DEFAULT_RELATIVE_SOURCE_DIR;
import static ch.fhnw.thga.fregegradleplugin.FregePlugin.COMPILE_FREGE_TASK_NAME;
import static ch.fhnw.thga.fregegradleplugin.FregePlugin.REPL_FREGE_TASK_NAME;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.COMPLETION_FR;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.MINIMAL_BUILD_FILE_CONFIG;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.assertFileDoesNotExist;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.assertFileExists;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.createFregeSection;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.runAndFailGradleTask;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.runGradleTask;
import static ch.fhnw.thga.fregegradleplugin.SharedTaskLogic.NEW_LINE;
import static org.gradle.testkit.runner.TaskOutcome.FAILED;
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS;
import static org.junit.jupiter.api.Assertions.assertEquals;
Expand All @@ -28,8 +28,9 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;

import ch.fhnw.thga.gradleplugins.fregeproject.FregeProjectBuilder;
import ch.fhnw.thga.gradleplugins.fregeproject.FregeSourceFile;
import ch.fhnw.thga.fregegradleplugin.FregeDTOBuilder;
import ch.fhnw.thga.fregegradleplugin.project.FregeProjectBuilder;
import ch.fhnw.thga.fregegradleplugin.project.FregeSourceFile;

public class ReplFregeTaskFunctionalTest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package ch.fhnw.thga.gradleplugins;
package ch.fhnw.thga.fregegradleplugin.tasks;

import static ch.fhnw.thga.gradleplugins.FregeExtension.DEFAULT_RELATIVE_SOURCE_DIR;
import static ch.fhnw.thga.gradleplugins.FregePlugin.RUN_FREGE_TASK_NAME;
import static ch.fhnw.thga.gradleplugins.SharedTaskLogic.NEW_LINE;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.createFregeSection;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.runAndFailGradleTask;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.runGradleTask;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.MINIMAL_BUILD_FILE_CONFIG;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.COMPLETION_FR;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.assertFileDoesNotExist;
import static ch.fhnw.thga.fregegradleplugin.FregeExtension.DEFAULT_RELATIVE_SOURCE_DIR;
import static ch.fhnw.thga.fregegradleplugin.FregePlugin.RUN_FREGE_TASK_NAME;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.COMPLETION_FR;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.MINIMAL_BUILD_FILE_CONFIG;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.assertFileDoesNotExist;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.createFregeSection;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.runAndFailGradleTask;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.runGradleTask;
import static ch.fhnw.thga.fregegradleplugin.SharedTaskLogic.NEW_LINE;
import static org.gradle.testkit.runner.TaskOutcome.FAILED;
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS;
import static org.junit.jupiter.api.Assertions.assertEquals;
Expand All @@ -25,8 +25,9 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;

import ch.fhnw.thga.gradleplugins.fregeproject.FregeProjectBuilder;
import ch.fhnw.thga.gradleplugins.fregeproject.FregeSourceFile;
import ch.fhnw.thga.fregegradleplugin.FregeDTOBuilder;
import ch.fhnw.thga.fregegradleplugin.project.FregeProjectBuilder;
import ch.fhnw.thga.fregegradleplugin.project.FregeSourceFile;

public class RunFregeTaskFunctionalTest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package ch.fhnw.thga.gradleplugins;
package ch.fhnw.thga.fregegradleplugin.tasks;

import static ch.fhnw.thga.gradleplugins.FregeExtension.DEFAULT_RELATIVE_COMPILER_DOWNLOAD_DIR;
import static ch.fhnw.thga.gradleplugins.FregePlugin.SETUP_FREGE_TASK_NAME;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.assertFileExists;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.createFregeSection;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.runGradleTask;
import static ch.fhnw.thga.fregegradleplugin.FregeExtension.DEFAULT_RELATIVE_COMPILER_DOWNLOAD_DIR;
import static ch.fhnw.thga.fregegradleplugin.FregePlugin.SETUP_FREGE_TASK_NAME;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.assertFileExists;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.createFregeSection;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.runGradleTask;
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
Expand All @@ -21,8 +21,9 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;

import ch.fhnw.thga.gradleplugins.fregeproject.FregeProjectBuilder;
import ch.fhnw.thga.gradleplugins.fregeproject.ProjectRoot;
import ch.fhnw.thga.fregegradleplugin.FregeDTOBuilder;
import ch.fhnw.thga.fregegradleplugin.project.FregeProjectBuilder;
import ch.fhnw.thga.fregegradleplugin.project.ProjectRoot;

@Tag("network")
class SetupFregeTaskFunctionalTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package ch.fhnw.thga.gradleplugins;
package ch.fhnw.thga.fregegradleplugin.tasks;

import static ch.fhnw.thga.gradleplugins.FregeExtension.DEFAULT_RELATIVE_SOURCE_DIR;
import static ch.fhnw.thga.gradleplugins.FregePlugin.TEST_FREGE_TASK_NAME;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.createFregeSection;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.runAndFailGradleTask;
import static ch.fhnw.thga.gradleplugins.SharedFunctionalTestLogic.runGradleTask;
import static ch.fhnw.thga.gradleplugins.SharedTaskLogic.EMPTY_LINE;
import static ch.fhnw.thga.gradleplugins.SharedTaskLogic.NEW_LINE;
import static ch.fhnw.thga.fregegradleplugin.FregeExtension.DEFAULT_RELATIVE_SOURCE_DIR;
import static ch.fhnw.thga.fregegradleplugin.FregePlugin.TEST_FREGE_TASK_NAME;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.createFregeSection;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.runAndFailGradleTask;
import static ch.fhnw.thga.fregegradleplugin.SharedFunctionalTestLogic.runGradleTask;
import static ch.fhnw.thga.fregegradleplugin.SharedTaskLogic.EMPTY_LINE;
import static ch.fhnw.thga.fregegradleplugin.SharedTaskLogic.NEW_LINE;
import static org.gradle.testkit.runner.TaskOutcome.FAILED;
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS;
import static org.junit.jupiter.api.Assertions.assertEquals;
Expand All @@ -23,8 +23,9 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;

import ch.fhnw.thga.gradleplugins.fregeproject.FregeProjectBuilder;
import ch.fhnw.thga.gradleplugins.fregeproject.FregeSourceFile;
import ch.fhnw.thga.fregegradleplugin.FregeDTOBuilder;
import ch.fhnw.thga.fregegradleplugin.project.FregeProjectBuilder;
import ch.fhnw.thga.fregegradleplugin.project.FregeSourceFile;

public class TestFregeFunctionalTest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ch.fhnw.thga.gradleplugins;
package ch.fhnw.thga.fregegradleplugin;

import java.util.Collections;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package ch.fhnw.thga.gradleplugins;
package ch.fhnw.thga.fregegradleplugin;

import javax.inject.Inject;

import org.gradle.api.NamedDomainObjectProvider;
import org.gradle.api.Plugin;
Expand All @@ -7,6 +9,15 @@
import org.gradle.api.logging.LogLevel;
import org.gradle.api.plugins.BasePlugin;
import org.gradle.api.tasks.TaskProvider;
import org.gradle.tooling.provider.model.ToolingModelBuilderRegistry;

import ch.fhnw.thga.fregegradleplugin.tasks.CompileFregeTask;
import ch.fhnw.thga.fregegradleplugin.tasks.InitFregeTask;
import ch.fhnw.thga.fregegradleplugin.tasks.ReplFregeTask;
import ch.fhnw.thga.fregegradleplugin.tasks.RunFregeTask;
import ch.fhnw.thga.fregegradleplugin.tasks.SetupFregeTask;
import ch.fhnw.thga.fregegradleplugin.tasks.TestFregeTask;
import ch.fhnw.thga.fregegradleplugin.tooling.FregeToolingModelBuilder;

public class FregePlugin implements Plugin<Project>
{
Expand All @@ -24,9 +35,18 @@ public class FregePlugin implements Plugin<Project>
public static final String FREGE_TEST_MODULE_NAME = "frege.tools.Quick";
public static final String FREGE_TEST_DEFAULT_ARGS = "-v";

private final ToolingModelBuilderRegistry registry;

@Inject
public FregePlugin(ToolingModelBuilderRegistry registry)
{
this.registry = registry;
}

@Override
public void apply(Project project)
{
registry.register(new FregeToolingModelBuilder());
NamedDomainObjectProvider<Configuration> fregeConfiguration = project
.getConfigurations()
.register
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ch.fhnw.thga.gradleplugins;
package ch.fhnw.thga.fregegradleplugin;

import java.io.BufferedWriter;
import java.io.File;
Expand Down Expand Up @@ -47,7 +47,7 @@ private static void writeFile(

}

static File writeToFile(File destination, String content) throws IOException
public static File writeToFile(File destination, String content) throws IOException
{
writeFile(destination, content, false);
return destination;
Expand Down
Loading

0 comments on commit 4368636

Please sign in to comment.