Skip to content

Commit

Permalink
Migrate deprecated buildDir
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Aug 24, 2023
1 parent 7b2d7a2 commit f739270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diffuse/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def fatJarProvider = tasks.register('fatJar', Jar) { task ->
}
}

def r8File = new File("$buildDir/libs/$archivesBaseName-$version-r8.jar")
def r8File = layout.buildDirectory.file("libs/$archivesBaseName-$version-r8.jar").get().asFile
def rulesFile = project.file("src/main/rules.txt")
def r8JarProvider = tasks.register('r8Jar', JavaExec) { task ->
def fatJar = fatJarProvider.get()
Expand All @@ -75,7 +75,7 @@ def r8JarProvider = tasks.register('r8Jar', JavaExec) { task ->
]
}

def binaryFile = new File(buildDir, "libs/$archivesBaseName-$version-binary.jar")
def binaryFile = layout.buildDirectory.file("libs/$archivesBaseName-$version-binary.jar").get().asFile
def binaryJar = tasks.register('binaryDiffuseJar') { task ->
task.dependsOn(r8JarProvider)

Expand Down

0 comments on commit f739270

Please sign in to comment.