[gradle] 18/22: generate_pom.gradle: Add publishCompile and publishRuntime dependencies to the POMs

Kai-Chung Yan seamlik-guest at moszumanska.debian.org
Wed Nov 2 10:13:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

seamlik-guest pushed a commit to branch master
in repository gradle.

commit f274892571ab3a7b9392c8376155f717ee082f13
Author: Kai-Chung Yan (殷啟聰) <seamlikok at gmail.com>
Date:   Mon Oct 31 23:41:00 2016 +0800

    generate_pom.gradle: Add publishCompile and publishRuntime dependencies to the POMs
---
 debian/generate_pom.gradle | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/debian/generate_pom.gradle b/debian/generate_pom.gradle
index 3ad6090..a90864e 100644
--- a/debian/generate_pom.gradle
+++ b/debian/generate_pom.gradle
@@ -31,6 +31,20 @@ task debianMavenPom {
           }
         })
       }
+      if (configurations.findByName('publishCompile') != null) {
+        scopeMappings.addMapping(
+          300,
+          configurations.publishCompile,
+          Conf2ScopeMappingContainer.COMPILE
+        )
+      }
+      if (configurations.findByName('publishRuntime') != null) {
+        scopeMappings.addMapping(
+          300,
+          configurations.publishCompile,
+          Conf2ScopeMappingContainer.RUNTIME
+        )
+      }
     }.writeTo pomPath
   }
 }
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/gradle.git



More information about the pkg-java-commits mailing list