Skip to content

Commit

Permalink
Replace deprecated Gradle APIs (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ao-senXiong authored Aug 17, 2023
1 parent 3e84376 commit 02e2f45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {

plugins {
// https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow
id 'com.github.johnrengelman.shadow' version '8.1.0'
id 'com.github.johnrengelman.shadow' version '8.1.1'
// https://plugins.gradle.org/plugin/de.undercouch.download
id 'de.undercouch.download' version '5.4.0'
id 'java'
Expand Down
6 changes: 4 additions & 2 deletions 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 ; target is: generateGitProperties
id 'com.gorylenko.gradle-git-properties' version '2.4.1'
}
Expand Down Expand Up @@ -172,7 +172,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
archivesBaseName = 'checker'
base {
archivesName = 'checker'
}
archiveClassifier = ''

from shadowJar.source
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
archivesBaseName = "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 02e2f45

Please sign in to comment.