Skip to content

Commit ca992f6

Browse files
committed
Merge pull request matyb#58 from takaczapka/master
gradle build support thanks @takaczapka
2 parents 84d7c32 + aea8e21 commit ca992f6

7 files changed

Lines changed: 291 additions & 23 deletions

File tree

‎.gitignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ koans/data
88
koans/data*
99
.classpath
1010
.project
11+
.settings
1112
koans/app/data
1213
lib/file-compiler/bin
1314
koans/app/config/file_hashes.dat
15+
.gradle
16+
*.iml
17+
*.ipr
18+
*.iws

‎koans/README.md‎

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
11
#Java Koans [![Build Status](https://travis-ci.org/darsen/java-koans.png?branch=master)](https://travis-ci.org/darsen/java-koans)
22

3-
Running Instructions:
4-
=====================
3+
## Quick Start
54
* Download and unarchive the contents of the most recent java-koans in development from:
6-
https://github.com/matyb/java-koans/archive/master.zip
7-
* Open a terminal and cd to the directory you unarchived:
8-
```cd <the directory you just unarchived>```
9-
* Within it you'll find:
10-
* *koans*: this directory contains the application and its lessons, it is all that is needed to advance through the koans themselves and **it can be distributed independently**
11-
* *lib/koans-lib*: the directory for source code for the engine that executes the koans
12-
* *lib/koans-tests*: the directory for tests to check the sanity of the application
13-
* *lib/file-compiler*: the dynamic compiler module that loads newly saved java files into the JVM as classes
14-
* *lib/file-monitor*: the file monitoring module for notifying the app when files are saved
15-
* *lib/util*: application agnostic interfaces and utilities shared in projects
5+
https://github.com/takaczapka/java-koans/archive/master.zip
6+
* Open a console (termina) and cd to the directory you unarchived:
7+
```cd <the directory you just unarchived>```
168
* Change directory to the koans directory: ```cd koans```
17-
* If you are using windows enter: ```run.bat``` or ```./run.sh``` if you are using Mac or Linux.
18-
19-
Developing a Koan:
20-
==================
21-
* Follow any of the existing koans as an example to create a new class with koan methods (indicated by the @Koan annotation, they're public and specify no arguments)
22-
* Define the order the koan suite (if it's new) will run in the koans/app/config/PathToEnlightenment.xml file
23-
* Optionally you may use dynamic content in your lesson, examples are located in the XmlVariableInjector class (and Test) and the AboutKoans.java file
24-
25-
Something's wrong:
26-
==================
27-
* If the koans app is constantly timing out compiling a koan, your computer may be too slow to compile the koan classes with the default timeout value. Update the compile_timeout_in_ms property in koans/app/config/config.properties with a larger value and try again.
9+
* To export koans to run below command and open in IDE:
10+
* IDEA IntelliJ: ```./gradlew idea (WINDOWS: gradlew.bat idea)```
11+
* Eclipse ```./gradlew eclipse (WINDOWS: gradlew.bat eclipse)```
12+
* Back to the console and run ```./run.sh``` (WINDOS: ```run.bat```)
13+
* Follow the instructions and start hacking

‎koans/build.gradle‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apply plugin: 'java'
2+
apply plugin: 'idea'
3+
apply plugin: 'eclipse'
4+
5+
repositories {
6+
flatDir {
7+
dirs 'app/lib'
8+
}
9+
}
10+
11+
sourceSets {
12+
main {
13+
java {
14+
srcDir 'src'
15+
}
16+
}
17+
}
18+
19+
dependencies {
20+
compile name: 'koans'
21+
}
52.4 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Sat Mar 26 18:10:52 GMT 2016
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-bin.zip

‎koans/gradlew‎

Lines changed: 160 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎koans/gradlew.bat‎

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)