You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 14, 2020. It is now read-only.
- GroovyServ is no longer used. Gradle’s daemon is used instead. Unfortunately performance is about 800ms slower on avg.
- Ability to customize which packages get loaded
- Spring support
- Ability to code blocks into multiple files (all languages)
- Multi-file Java support
- Improved Java exception output
- Java build info is now presented within output
Code is executed within a Dockerized Ubuntu 14.04 container.
4
+
5
+
## Languages
6
+
7
+
- Java 8 (1.8.0_91)
8
+
9
+
## Loaded Dependencies
10
+
11
+
### The following depencies are always loaded
12
+
13
+
- junit 4.12
14
+
- lombok 1.16.18
15
+
- mockito-core 2.7.19
16
+
- assertj-core 3.8.0
17
+
18
+
### The following can be loaded through `@config reference` statements
19
+
20
+
- joda-time 2.2
21
+
- guava 20.0
22
+
- commons-lang3 3.6
23
+
- commons-math3 3.6.1
24
+
- jsoup 1.10.3
25
+
- dom4j 2.0.1
26
+
- assertj-guava 3.1.0
27
+
- hibernate-core 5.2.10.Final
28
+
- mongo-java-driver 3.4.2
29
+
- sqlite-jdbc 3.19.3
30
+
- postgresql 42.1.1
31
+
- spring-boot-starter-web 1.5.4
32
+
- spring-boot-starter-test 1.5.4
33
+
- spring-boot-starter-data-mongodb 1.5.4
34
+
- spring-boot-starter-data-redis 1.5.4
35
+
- spring-boot-starter-data-jpa 1.5.4
36
+
- spring-boot-starter-data-rest 1.5.4
37
+
- spring-boot-starter-validation 1.5.4
38
+
39
+
40
+
To make these packages available to the application, you must have access to the setup code block.
41
+
Within the setup code you can load any of these packages using reference config statements.
42
+
43
+
**Setup Example:**
44
+
```java
45
+
// @config reference guava
46
+
// @config reference commons-lang3
47
+
```
48
+
49
+
50
+
If you need to reference a package that is a dependency of one of the above packages, you will need to load those packages
51
+
in order to make that dependency available.
52
+
53
+
### Spring Boot Packages
54
+
55
+
If you require support for the Spring framework, you can include `spring-boot` as the reference name.
56
+
This will include both the web and test starter dependencies, as well as any additional requirements.
57
+
58
+
When including the Spring framework via `spring-boot`, if other services are configured, such as mongodb, then the required spring data packages will also be auto-included into the build.
59
+
60
+
# Build Process
61
+
62
+
Gradle is used as the build tool. Each time you run code, a fresh Docker container will be used. Under
63
+
typical conditions the Gradle daemon should have already loaded, causing build times to typically fall within
64
+
the 3 to 4 second range for trivial sized apps. However if the daemon has not finished loading then the build
65
+
process may take over 10 seconds to complete.
66
+
67
+
# Timeout
68
+
69
+
The sandbox environment will timeout the code within 20 seconds.
70
+
71
+
> For more information, view the [docker file](https://github.com/Codewars/codewars-runner-cli/blob/master/docker/jvm.docker)
0 commit comments