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

deepak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 4e9b85ad6a Fixed gradle deprecation warning related to 
application.mainClassName
4e9b85ad6a is described below

commit 4e9b85ad6aab25fdb7a7e4c83ea87f4569a9f083
Author: Deepak Dixit <deepak.di...@hotwax.co>
AuthorDate: Fri Jul 14 12:49:48 2023 +0530

    Fixed gradle deprecation warning related to application.mainClassName
---
 build.gradle | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/build.gradle b/build.gradle
index 9f8cc385c1..f052b43d1a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -81,7 +81,7 @@ ext.gradlew = os.contains('windows') ? 'gradlew.bat' : 
'./gradlew'
 ext.pluginsDir = "${rootDir}/plugins"
 
 application {
-    mainClassName = 'org.apache.ofbiz.base.start.Start'
+    mainClass = 'org.apache.ofbiz.base.start.Start'
     applicationDefaultJvmArgs = project.hasProperty('jvmArgs')
             ? jvmArgs.tokenize()
             : ['-Xms128M','-Xmx1024M',
@@ -367,7 +367,7 @@ tasks.named('compileGroovyScriptsGroovy') {
 
 jar.manifest.attributes(
     'Implementation-Title': project.name,
-    'Main-Class': application.mainClassName,
+    'Main-Class': application.mainClass,
     'Class-Path': getJarClasspath()
 )
 
@@ -1108,7 +1108,7 @@ def createOfbizCommandTask(taskName, arguments) {
     task(type: JavaExec, dependsOn: classes, taskName) {
         jvmArgs(application.applicationDefaultJvmArgs)
         classpath = sourceSets.main.runtimeClasspath
-        main = application.mainClassName
+        mainClass = application.mainClass
         args arguments
         if (taskName ==~ /^ofbiz.*(--test|-t).*/) {
             finalizedBy(createTestReports)

Reply via email to