Skip to content

Commit

Permalink
Gradle - Fix init-script for gradle extractor 4.13.0 compatibility. (#…
Browse files Browse the repository at this point in the history
…568)

* Added table of contents to README.

* CR changes

* Add signing for JFrog CLI's Windows binary.

* Added more inline descriptions.

* CR fixes

* Upgrade maven and gradle extractors.

* Gradle - Fix init-script for gradle extractor 4.13.0 compatibility.

Co-authored-by: Eyal Brosh <[email protected]>
  • Loading branch information
eyalbe4 and eyalb4doc authored Jan 16, 2020
1 parent 44bd21c commit 3a94533
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions artifactory/utils/gradleinitscript.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ class BuildInfoPluginListener extends BuildAdapter {
}
}
// Set the "archives" configuration to all Artifactory tasks.
// Set the "mavenJava" and "ivyJava" publications or
// "archives" configuration to all Artifactory tasks.
for (Project p : root.getAllprojects()) {
Task t = p.getTasks().findByName(ArtifactoryTask.ARTIFACTORY_PUBLISH_TASK_NAME)
if (t != null) {
ArtifactoryTask task = (ArtifactoryTask)t
task.setAddArchivesConfigToTask(true)
ArtifactoryTask task = (ArtifactoryTask) t
task.setCiServerBuild()
}
}
}
Expand Down

0 comments on commit 3a94533

Please sign in to comment.