summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-06-27 17:34:58 +0200
committerJulien Lepiller <julien@lepiller.eu>2020-07-17 04:18:21 +0200
commit94261e7ce2c640a074e25a0c976bb5ac546ff429 (patch)
tree2eff394c7c1a76dd4d1d909b942f675c2e2e8cb2 /gnu
parentc3951015d79ce7410fbd66d889acc88be9192d32 (diff)
downloadguix-94261e7ce2c640a074e25a0c976bb5ac546ff429.tar.gz
gnu: Add maven-enforcer-rules.
* gnu/packages-maven.scm (maven-enforcer-rules): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/maven.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index fb0cb9eac4..0eb5db3c13 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2705,3 +2705,30 @@ Maven project dependencies.")
            (install-pom-file "pom.xml")))))
     (propagated-inputs
      `(("maven-parent-pom" ,maven-parent-pom-30)))))
+
+(define-public maven-enforcer-rules
+  (package
+    (inherit maven-enforcer-api)
+    (name "maven-enforcer-rules")
+    (arguments
+     `(#:tests? #f; requires maven-plugin-testing-harness
+       #:jar-name "maven-enforcer-rules.jar"
+       #:source-dir "enforcer-rules/src/main/java"
+       #:test-dir "enforcer-rules/src/test"
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'install
+           (install-from-pom "enforcer-rules/pom.xml")))))
+    (propagated-inputs
+     `(("maven-artifact" ,maven-artifact)
+       ("maven-plugin-api" ,maven-plugin-api)
+       ("maven-core" ,maven-core)
+       ("maven-common-artifact-filters" ,maven-common-artifact-filters)
+       ("java-commons-codec" ,java-commons-codec)
+       ("java-commons-lang3" ,java-commons-lang3)
+       ("maven-enforcer-api" ,maven-enforcer-api)
+       ("maven-resolver-util" ,maven-resolver-util)
+       ("java-bsh" ,java-bsh)
+       ("maven-dependency-tree" ,maven-dependency-tree)
+       ("maven-compat" ,maven-3.0-compat)
+       ("maven-enforcer-parent-pom" ,maven-enforcer-parent-pom)))))