Skip to content

Commit

Permalink
chore: Replace JavaExec.main property with JavaExec.mainClass
Browse files Browse the repository at this point in the history
The main property is deprecated and should be replaced with mainClass
which takes a Property<String> instance (created behind the scenes by
using '=') instead of a string.
  • Loading branch information
ptomato committed Aug 24, 2023
1 parent 06ffe51 commit 748f176
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-app/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ task runSbg(type: BuildToolTask) {
inputs.dir(extractedDependenciesDir)

workingDir "$BUILD_TOOLS_PATH"
main "-jar"
mainClass = "-jar"

def paramz = new ArrayList<String>()
paramz.add("static-binding-generator.jar")
Expand Down Expand Up @@ -769,7 +769,7 @@ task buildMetadata(type: BuildToolTask) {
outputs.files("$METADATA_OUT_PATH/treeNodeStream.dat", "$METADATA_OUT_PATH/treeStringsStream.dat", "$METADATA_OUT_PATH/treeValueStream.dat")

workingDir "$BUILD_TOOLS_PATH"
main "-jar"
mainClass = "-jar"

doFirst {
// get compiled classes to pass to metadata generator
Expand Down Expand Up @@ -864,7 +864,7 @@ task generateTypescriptDefinitions(type: BuildToolTask) {
def includeDirs = ["com.android.support", "/platforms/" + android.compileSdkVersion]

workingDir "$BUILD_TOOLS_PATH"
main "-jar"
mainClass = "-jar"

doFirst {
delete "$TYPINGS_PATH"
Expand Down

0 comments on commit 748f176

Please sign in to comment.