diff --git a/README.md b/README.md index c227e08..3598db4 100644 --- a/README.md +++ b/README.md @@ -23,19 +23,24 @@ The `Shaper` language is very basic and does not have safeguards. It should be u #### Source code -Clone the repo and run `./gradlew generateGrammarSource` and then `./gradlew shadowJar`. You'll find the uber-jar in `./build/libs/shaper-all.jar`. -Generate a file like this: `java -cp shaper-all.jar com.cosminsanda.shaper.compiler.Shaper2Image --source-code "img_dim:180,shp_dim:32>>>circle,square|triangle<<<" --out-filename test.png +* Clone the repo +* Run `./gradlew generateGrammarSource` +* Run `./gradlew shadowJar`. + +You'll find the uber-jar in `./build/libs/shaper.jar`. + +Generate a file like this: `java -cp shaper.jar com.cosminsanda.shaper.compiler.Shaper2Image --source-code "img_dim:180,shp_dim:32>>>circle,square|triangle<<<" --out-filename test.png ` #### Single file -`java -cp shaper-all.jar com.cosminsanda.shaper.compiler.Shaper2Image --source-file /Users/cosmin/test.shape` +`java -cp shaper.jar com.cosminsanda.shaper.compiler.Shaper2Image --source-file /Users/cosmin/test.shape` This will create an image `/Users/cosmin/test.shape.png` #### Directory -`java -cp shaper-all.jar com.cosminsanda.shaper.compiler.Shaper2Image --source-dir /Users/cosmin/shapes` +`java -cp shaper.jar com.cosminsanda.shaper.compiler.Shaper2Image --source-dir /Users/cosmin/shapes` This will create images with a file name pattern similar to the one for single file above. diff --git a/build.gradle b/build.gradle index b32b951..a1b3d8f 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlin_version = '1.2.21' + ext.kotlin_version = '1.3.61' ext.antlr_version = '4.7.1' ext.slf4j_version = '1.7.25' @@ -14,7 +14,7 @@ buildscript { dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1' + classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.3' } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 0927b1c..2894dfd 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip