From 049f8d3029b30dc58221e90aa8ddf69b3aa3b61e Mon Sep 17 00:00:00 2001 From: Thibault Gagnaux Date: Wed, 23 Feb 2022 19:29:54 +0100 Subject: feat: simplifies the replFrege task The replFregeTask has the following new logic: 1. Compiles the specified fregeRepl module (either in the `build.gradle` via command line option `--replModule=...`) and all its dependencies. 2. Sets up the correct classpath so that dependent modules don't have to be imported manually. In addition, it solves the shadowing problem by removing the replModule java and class file from the classpath. 3. It prints one single command to directly start the repl and load the specified module. Bonus: I designed the task so that you can even automate step 3 with the following bash command: `eval $(./gradlew -q replFrege)`. --- example-project/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example-project') diff --git a/example-project/build.gradle b/example-project/build.gradle index 6fefaec..ae7217b 100644 --- a/example-project/build.gradle +++ b/example-project/build.gradle @@ -6,5 +6,5 @@ frege { version = '3.25.84' release = '3.25alpha' mainModule = 'ch.fhnw.thga.Test' - replSource = 'ch.fhnw.thga.Test' + replModule = 'ch.fhnw.thga.Test' } \ No newline at end of file -- cgit