Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmincatalin committed Feb 8, 2020
1 parent e9d2787 commit c3af44e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -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'
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c3af44e

Please sign in to comment.