Skip to content

Commit

Permalink
update readme files for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
akolomentsev committed Apr 5, 2018
1 parent a24263f commit 2a2d8aa
Show file tree
Hide file tree
Showing 31 changed files with 64 additions and 127 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ subprojects {
println "creating default project structure for project '${project.name}'..."

// create directories for all source sets
sourceSets.all { sourceSet ->
sourceSets.forEach { sourceSet ->
sourceSet.java.srcDirs.forEach {
def pathToCreate = new File(it, pckgDir)
println "creating sources path for '${sourceSet.name}': '$pathToCreate'"
Expand Down
2 changes: 2 additions & 0 deletions mods-examples/barrier-queue/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'application'
apply from: '../examples.gradle'

description "barrier queue"

mainClassName = 'com.satori.mods.examples.App'
applicationName = projectDir.name

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions mods-examples/barrier-queue/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!-- generated, do not modify -->
## 'barrier queue' example
![diagram](docs/files/diagram.png)

##### build app
```
gradle installDist
Expand Down
2 changes: 2 additions & 0 deletions mods-examples/barrier/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'application'
apply from: '../examples.gradle'

description "barrier"

mainClassName = 'com.satori.mods.examples.App'
applicationName = projectDir.name

Expand Down
Binary file added mods-examples/barrier/docs/files/diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions mods-examples/barrier/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!-- generated, do not modify -->
## 'barrier' example
![diagram](docs/files/diagram.png)

##### build app
```
gradle installDist
Expand Down
2 changes: 2 additions & 0 deletions mods-examples/big-blue-bus/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'application'
apply from: '../examples.gradle'

description "big blue bus"

mainClassName = 'com.satori.mods.examples.BigBlueBus'
applicationName = projectDir.name

Expand Down
Binary file added mods-examples/big-blue-bus/docs/files/diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions mods-examples/big-blue-bus/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!-- generated, do not modify -->
## 'big blue bus' example
![diagram](docs/files/diagram.png)

##### build app
```
gradle installDist
Expand Down
2 changes: 2 additions & 0 deletions mods-examples/clock/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'application'
apply from: '../examples.gradle'

description "clock"

mainClassName = 'com.satori.mods.examples.ClockApp'
applicationName = projectDir.name

Expand Down
Binary file added mods-examples/clock/docs/files/diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions mods-examples/clock/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!-- generated, do not modify -->
## 'clock' example
![diagram](docs/files/diagram.png)

##### build app
```
gradle installDist
Expand Down
24 changes: 0 additions & 24 deletions mods-examples/clock2/Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion mods-examples/clock2/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'application'
apply from: '../examples.gradle'

mainClassName = 'com.satori.mods.examples.ClocksApp2'
applicationName = projectDir.name
Expand Down
36 changes: 0 additions & 36 deletions mods-examples/clock2/readme.md

This file was deleted.

6 changes: 2 additions & 4 deletions mods-examples/composition-drawer/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import com.satori.libs.composition.drawer.*

buildscript{
repositories {
mavenCentral()
Expand All @@ -8,7 +6,7 @@ buildscript{
}
}
dependencies {
classpath "com.satori:satori-libs-composition-drawer:0.5.13-SNAPSHOT"
classpath "com.satori:satori-libs-composition-drawer:0.5.14-SNAPSHOT"
}
}

Expand All @@ -24,7 +22,7 @@ generateCode.dependsOn generateCompositionImage

configurations{compositionDrawer}
dependencies {
compositionDrawer "com.satori:satori-libs-composition-drawer:0.5.13-SNAPSHOT"
compositionDrawer "com.satori:satori-libs-composition-drawer:0.5.14-SNAPSHOT"
}

task generateCompositionImage2(type: JavaExec) {
Expand Down
23 changes: 23 additions & 0 deletions mods-examples/examples.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
import groovy.text.*

buildscript{
repositories {
mavenCentral()
maven {
url('https://oss.sonatype.org/content/repositories/snapshots/')
}
}
dependencies {
classpath "com.satori:satori-libs-composition-drawer:0.5.14-SNAPSHOT"
}
}

task generateCompositionImage(type: GenerateCompositionDiagramTask) {
group "codegen"
cfgPath = file("res/com/satori/mods/resources/config.json")
imgPath = file("docs/files/diagram.png")
blockWidth = 220
blockHeight = 45
}

startScripts {
//applicationName = 'app'
defaultJvmOpts = ["-server", "-d64"]
Expand All @@ -18,6 +38,9 @@ task generateReadme(type: TransformTask) {
output file("readme.md")
outputs.upToDateWhen { false }
}
generateReadme.dependsOn generateCompositionImage
generateCode.dependsOn generateReadme


task generateLogProperties(type: TransformTask) {
group 'codegen'
Expand Down
24 changes: 0 additions & 24 deletions mods-examples/hello-world/Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion mods-examples/hello-world/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'application'
apply from: '../examples.gradle'

mainClassName = 'com.satori.mods.examples.HelloWorldApp'
applicationName = projectDir.name
Expand Down
36 changes: 0 additions & 36 deletions mods-examples/hello-world/readme.md

This file was deleted.

2 changes: 2 additions & 0 deletions mods-examples/nws-usa-alerts/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'application'
apply from: '../examples.gradle'

description "nws usa alerts"

mainClassName = 'com.satori.mods.examples.NwsUsaAlerts'
applicationName = projectDir.name

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions mods-examples/nws-usa-alerts/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!-- generated, do not modify -->
## 'nws usa alerts' example
![diagram](docs/files/diagram.png)

##### build app
```
gradle installDist
Expand Down
2 changes: 2 additions & 0 deletions mods-examples/queue/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'application'
apply from: '../examples.gradle'

description "queue"

mainClassName = 'com.satori.mods.examples.App'
applicationName = projectDir.name

Expand Down
Binary file added mods-examples/queue/docs/files/diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions mods-examples/queue/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!-- generated, do not modify -->
## 'queue' example
![diagram](docs/files/diagram.png)

##### build app
```
gradle installDist
Expand Down
3 changes: 3 additions & 0 deletions mods-examples/readme.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ def appScript = project.startScripts.applicationName
def appName = project.applicationName
def projName = project.name
%>-->
## '<%=project.description%>' example
![diagram](docs/files/diagram.png)

##### build app
```
gradle installDist
Expand Down
2 changes: 2 additions & 0 deletions mods-examples/rtm-filter/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'application'
apply from: '../examples.gradle'

description "rtm filter"

mainClassName = 'com.satori.mods.examples.NwsUsaAlerts'
applicationName = projectDir.name

Expand Down
Binary file added mods-examples/rtm-filter/docs/files/diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions mods-examples/rtm-filter/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!-- generated, do not modify -->
## 'rtm filter' example
![diagram](docs/files/diagram.png)

##### build app
```
gradle installDist
Expand Down

0 comments on commit 2a2d8aa

Please sign in to comment.