[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/13: gnu: Add java-sisu-build-api.
From: |
julien lepiller |
Subject: |
07/13: gnu: Add java-sisu-build-api. |
Date: |
Sun, 25 Feb 2018 06:04:43 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit 8f524749bc26601d4dc781978104718adb7addc8
Author: Julien Lepiller <address@hidden>
Date: Sat Feb 10 22:42:43 2018 +0100
gnu: Add java-sisu-build-api.
* gnu/packages/java.scm (java-sisu-build-api): New variable.
---
gnu/packages/java.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index dc85233..bbc3983 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2759,6 +2759,61 @@ compilers.")
(description "This package contains the Javac Compiler support for Plexus
Compiler component.")))
+(define-public java-sisu-build-api
+ (package
+ (name "java-sisu-build-api")
+ (version "0.0.7")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/sonatype/sisu-build-api/"
+ "archive/plexus-build-api-" version
".tar.gz"))
+ (sha256
+ (base32
+ "1c3rrpma3x634xp2rm2p5iskfhzdyc7qfbhjzr70agrl1jwghgy2"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "sisu-build-api.jar"
+ #:source-dir "src/main/java"
+ #:jdk ,icedtea-8
+ #:tests? #f; FIXME: how to run the tests?
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'copy-resources
+ (lambda _
+ (copy-recursively "src/main/resources" "build/classes")
+ (substitute* (find-files "build/classes")
+ (("\\$\\{project.version\\}") ,version))
+ #t))
+ (add-before 'build 'generate-plexus-compontent
+ (lambda _
+ (mkdir-p "build/classes/META-INF/plexus")
+ ;; This file is required for plexus to inject this package.
+ ;; FIXME: how is it generated?
+ (with-output-to-file
"build/classes/META-INF/plexus/components.xml"
+ (lambda _
+ (display
+ "<component-set>\n
+ <components>\n
+ <component>\n
+ <role>org.sonatype.plexus.build.incremental.BuildContext</role>\n
+ <role-hint>default</role-hint>\n
+
<implementation>org.sonatype.plexus.build.incremental.DefaultBuildContext</implementation>\n
+ <description>Filesystem based non-incremental build context
implementation\n
+which behaves as if all files were just created.</description>\n
+ </component>\n
+ </components>\n
+</component-set>\n")))
+ #t)))))
+ (inputs
+ `(("java-plexus-utils" ,java-plexus-utils)
+ ("java-plexus-container-default" ,java-plexus-container-default)))
+ (home-page "https://github.com/sonatype/sisu-build-api/")
+ (synopsis "Base build API for maven")
+ (description "This package contains the base build API for maven and
+a default implementation of it. This API is about scanning files in a
+project and determining what files need to be rebuilt.")
+ (license license:asl2.0)))
+
(define-public java-asm
(package
(name "java-asm")
- branch master updated (0181df5 -> 0aa8508), julien lepiller, 2018/02/25
- 01/13: gnu: Update java-testng to 6.14.3., julien lepiller, 2018/02/25
- 04/13: gnu: Add java-plexus-cipher., julien lepiller, 2018/02/25
- 03/13: gnu: Make java-plexus-container-default-bootstrap private., julien lepiller, 2018/02/25
- 06/13: gnu: Add java-plexus-compiler-javac., julien lepiller, 2018/02/25
- 08/13: gnu: Add java-modello-core., julien lepiller, 2018/02/25
- 09/13: gnu: Add java-modello-plugins-java., julien lepiller, 2018/02/25
- 05/13: gnu: Add java-plexus-compiler-api., julien lepiller, 2018/02/25
- 02/13: gnu: Add java-plexus-component-annotations., julien lepiller, 2018/02/25
- 10/13: gnu: Add java-modello-plugins-xml., julien lepiller, 2018/02/25
- 07/13: gnu: Add java-sisu-build-api.,
julien lepiller <=
- 13/13: gnu: Add java-plexus-sec-dispatcher., julien lepiller, 2018/02/25
- 11/13: gnu: Add java-modello-test., julien lepiller, 2018/02/25
- 12/13: gnu: Add java-modello-plugins-xpp3., julien lepiller, 2018/02/25