Skip to content

Commit e390c0a

Browse files
committed
fixed vertx_classpath.txt and runMod
the classpath file was missing build/{classes,resources}/main. runMod was lacking a 'classes' dependency. Fixed the deprecation warning for the vertx runmod command call.
1 parent 226953f commit e390c0a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

gradle/vertx.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ task collectDeps(type: Copy) {
167167
}
168168
}
169169

170-
task runMod(description: 'Run the module', dependsOn: collectDeps) << {
170+
task runMod(description: 'Run the module', dependsOn: [collectDeps, classes]) << {
171171
setSysProps()
172172
// We also init here - this means for single module builds the user doesn't have to explicitly init -
173173
// they can just do runMod
174174
doInit()
175-
args = ['runmod', moduleName]
175+
def args = ['runmod', moduleName]
176176
def args2 = runModArgs.split("\\s+")
177177
args.addAll(args2)
178178
Starter.main(args as String[])
@@ -187,7 +187,9 @@ def doInit() {
187187
"bin\r\n" +
188188
"out/production/${project.name}\r\n" +
189189
"out/test/${project.name}\r\n" +
190-
"build/deps\r\n";
190+
"build/deps\r\n" +
191+
"build/classes/main\r\n" +
192+
"build/resources/main\r\n";
191193
cpFile << defaultCp;
192194
}
193195
def args = ['create-module-link', moduleName]

0 commit comments

Comments
 (0)