Skip to content

Commit

Permalink
Replace deprecated Gradle APIs (#6451)
Browse files Browse the repository at this point in the history
Co-authored-by: Aosen Xiong <82676488+Ao-senXiong@users.noreply.github.com>
  • Loading branch information
mernst and Ao-senXiong authored Mar 21, 2024
1 parent 5ef9163 commit d20348d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion checker/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'java-library'

id 'base'
// https://github.com/n0mer/gradle-git-properties
// Generates file build/resources/main/git.properties when the `classes` task runs.
id 'com.gorylenko.gradle-git-properties' version '2.4.1'
Expand Down Expand Up @@ -168,6 +168,9 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
task checkerJar(type: ShadowJar, dependsOn: compileJava, group: 'Build') {
description "Builds checker-${project.version}.jar with all dependencies except checker-qual and checker-util."
includeEmptyDirs = false
base {
archivesName = 'checker'
}

from shadowJar.source
configurations = shadowJar.configurations
Expand Down
5 changes: 4 additions & 1 deletion dataflow/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'java-library'
id 'base'
}

dependencies {
Expand Down Expand Up @@ -28,7 +29,9 @@ def createDataflowShaded(shadedPkgName) {
tasks.create(name: "dataflow${shadedPkgName}Jar", type: ShadowJar, dependsOn: compileJava, group: 'Build') {
description "Builds dataflow-${shadedPkgName}.jar."
includeEmptyDirs = false
archiveBaseName.set("dataflow-${shadedPkgName}")
base {
archivesName = "dataflow-${shadedPkgName}"
}
// Without this line, the Maven artifact will have the classifier "all".
archiveClassifier.set('')

Expand Down

0 comments on commit d20348d

Please sign in to comment.