Skip to content

Commit 757fc67

Browse files
feat: update to 1.2.1
feat property testServerPath to define the test server localtion. update default modulo version to 1.3.0. update documentation
1 parent 979e25b commit 757fc67

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To apply the plugin, please add this following part of code.
3131

3232
```groovy
3333
plugins {
34-
id 'com.chillycheesy.modulo-application' version '1.1.0'
34+
id 'com.chillycheesy.modulo-application' version '1.2.1'
3535
}
3636
3737
group 'your.group'
@@ -98,8 +98,8 @@ The following array was the exhaustive list of **module**'s parameters.
9898
| dependencies | Module dependencies. | dependencies | Empty list. |
9999
| softDependencies | Module soft dependencies. | softDependencies | Empty list. |
100100
| target | The output folder for the generated **module.yml** file. | none | 'src/main/resources' |
101-
| moduloVersion | The target version for the modulo server. | none | 'BINKS-0.1.1' |
102-
101+
| moduloVersion | The target version for the modulo server. | none | 'BINKS-0.3.0' |
102+
| testServerPath | The path to the test server. | none | 'modulo-server' |
103103

104104

105105
## Tasks section. <a id="tasks"></a>

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
id 'maven-publish'
66
}
77

8-
version = '1.2.0'
8+
version = '1.2.1'
99
group = 'com.chillycheesy'
1010

1111
sourceCompatibility = 16

src/main/groovy/com/chillycheesy/modulo/extensions/ModuleExtension.groovy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ class ModuleExtension {
4242
/**
4343
* Modulo api version.
4444
*/
45-
String moduloVersion = 'BINKS-0.1.1'
45+
String moduloVersion = 'BINKS-0.3.0'
46+
/**
47+
* Define the path where run the test server.
48+
*/
49+
String testServerPath = 'modulo-server'
50+
4651

4752
/**
4853
* Init the extension with default values.

src/main/groovy/com/chillycheesy/modulo/tasks/RunModuloServer.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class RunModuloServer implements ModuloTask {
3939
group = 'modulo'
4040
description = 'Run a Modulo server.'
4141
doLast {
42-
final file = new File("${project.rootDir.path}/modulo-server/modulo-server-${moduleExtension.moduloVersion}.jar")
42+
final file = new File("${project.rootDir.path}/${moduleExtension.testServerPath}/modulo-server-${moduleExtension.moduloVersion}.jar")
4343
assert file.parentFile.exists() || file.parentFile.mkdirs()
4444
project.delete(project.fileTree(file.parent) {
4545
include '*.jar'
@@ -48,7 +48,7 @@ class RunModuloServer implements ModuloTask {
4848
project.javaexec {
4949
main = '-jar'
5050
args = [file.absolutePath]
51-
workingDir = 'modulo'
51+
workingDir = moduleExtension.testServerPath
5252
standardInput = System.in
5353
standardOutput = System.out
5454
}

0 commit comments

Comments
 (0)