Skip to content

Commit aa57e56

Browse files
committed
chore: fix runMod task
* add explicit dependency of vertx-hazelcast * apply fix from vert-x#31, thanks to @minus7 and @avdv. * reformat indentation to 2 spaces
1 parent f1573bb commit aa57e56

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

gradle/vertx.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ repositories {
6060
dependencies {
6161
provided "io.vertx:vertx-core:$vertxVersion"
6262
provided "io.vertx:vertx-platform:$vertxVersion"
63+
provided "io.vertx:vertx-hazelcast:$vertxVersion"
6364
testCompile "junit:junit:$junitVersion"
6465
testCompile "io.vertx:testtools:$toolsVersion"
6566
}
@@ -127,7 +128,7 @@ task sourceJar(type: Jar) {
127128
}
128129

129130
javadoc {
130-
classpath = configurations.compile + configurations.provided
131+
classpath = configurations.compile + configurations.provided
131132
}
132133

133134
task javadocJar(type: Jar) {
@@ -171,7 +172,7 @@ task collectDeps(type: Copy) {
171172
}
172173

173174
// We also init here - this means for single module builds the user doesn't have to explicitly init -
174-
task runMod(description: 'Run the module', dependsOn: [collectDeps, init]) << {
175+
task runMod(description: 'Run the module', dependsOn: [collectDeps, copyMod, init]) << {
175176
def args = ['runmod', moduleName]
176177
def args2 = runModArgs.split("\\s+")
177178
args.addAll(args2)
@@ -187,7 +188,9 @@ def doInit() {
187188
"bin\r\n" +
188189
"out/production/${project.name}\r\n" +
189190
"out/test/${project.name}\r\n" +
190-
"build/deps\r\n";
191+
"build/deps\r\n" +
192+
"build/classes/main\r\n" +
193+
"build/resources/main\r\n";
191194
cpFile << defaultCp;
192195
}
193196
def args = ['create-module-link', moduleName]

0 commit comments

Comments
 (0)