From 59a9ecbf8e87cff889650290d2cf2e475b500a94 Mon Sep 17 00:00:00 2001 From: Luke Bemish Date: Sun, 19 Nov 2023 01:54:20 +0000 Subject: [PATCH] [no ci] Update README.md --- README.md | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 20e0980..ca1c07b 100644 --- a/README.md +++ b/README.md @@ -37,11 +37,13 @@ dependencies { ### Java -OpenSesame provides a javac plugin. Note that this will not work with eclipse's ecj compiler. To use, simply add the `opensesame-javac` dependency and specify the plugin in the compiler arguments: +OpenSesame provides a javac plugin. Note that this will not work with eclipse's ecj compiler. To use, simply add the `opensesame-javac` dependency and specify the plugin in the compiler arguments. As there is almost no reason to have the compiler +plugin present at runtime, you will likely want to split it into its runtime and compile time components: ```gradle dependencies { - implementation 'dev.lukebemish.opensesame:opensesame-javac:' + compileOnly 'dev.lukebemish.opensesame:opensesame-javac:' + runtimeOnly 'dev.lukebemish.opensesame:opensesame-runtime:' } tasks.named('compileJava', JavaCompile).configure { @@ -49,15 +51,6 @@ tasks.named('compileJava', JavaCompile).configure { } ``` -Once again, the dependency can be split up into it's runtime and compile time components: - -```gradle -dependencies { - compileOnly 'dev.lukebemish.opensesame:opensesame-javac:' - runtimeOnly 'dev.lukebemish.opensesame:opensesame-runtime:' -} -``` - ## Use ### General Use