You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by vl...@apache.org on 2021/10/15 19:15:56 UTC

[jmeter] branch master updated: Fix Gradle deprecation: replace main -> mainClass in BatchTestServer build logic

This is an automated email from the ASF dual-hosted git repository.

vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 8edfaa0  Fix Gradle deprecation: replace main -> mainClass in BatchTestServer build logic
8edfaa0 is described below

commit 8edfaa0a0eb89d01b83af1f9ba15a74ce596f9ed
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Fri Oct 15 22:15:53 2021 +0300

    Fix Gradle deprecation: replace main -> mainClass in BatchTestServer build logic
---
 .../kotlin/org/apache/jmeter/buildtools/batchtest/BatchTestServer.kt    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildSrc/subprojects/batchtest/src/main/kotlin/org/apache/jmeter/buildtools/batchtest/BatchTestServer.kt b/buildSrc/subprojects/batchtest/src/main/kotlin/org/apache/jmeter/buildtools/batchtest/BatchTestServer.kt
index 5618f3e..b48369d 100644
--- a/buildSrc/subprojects/batchtest/src/main/kotlin/org/apache/jmeter/buildtools/batchtest/BatchTestServer.kt
+++ b/buildSrc/subprojects/batchtest/src/main/kotlin/org/apache/jmeter/buildtools/batchtest/BatchTestServer.kt
@@ -108,7 +108,7 @@ open class BatchTestServer @Inject constructor(objects: ObjectFactory) : BatchTe
         val server = executor.submit {
             project.javaexec {
                 workingDir = File(project.rootDir, "bin")
-                main = "org.apache.jmeter.NewDriver"
+                mainClass.set("org.apache.jmeter.NewDriver")
                 classpath(client.classpath)
                 standardOutput = System.out.writer().withPrefix("[server] ")
                 errorOutput = System.err.writer().withPrefix("[server] ")