[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/18: gnu: Add java-byte-buddy-dep.
From: |
guix-commits |
Subject: |
17/18: gnu: Add java-byte-buddy-dep. |
Date: |
Sat, 20 Apr 2024 12:36:03 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit bb3a631f247ec56bbba6474b0280c16f8a3a9907
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Sat Feb 25 21:30:41 2023 +0100
gnu: Add java-byte-buddy-dep.
* gnu/packages/java.scm (java-byte-buddy-dep): New variable.
Change-Id: I7907fffe783d6edec65d8b0c496b6e16db53c24d
---
gnu/packages/java.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 53451e5ed6..f4669f8d6d 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -11395,6 +11395,48 @@ everything as database, including class objects, text
format data, data
streams, etc.")
(license license:asl2.0)))
+(define-public java-byte-buddy-dep
+ (package
+ (name "java-byte-buddy-dep")
+ (version "1.14.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/raphw/byte-buddy")
+ (commit (string-append "byte-buddy-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "03jmsnkjb9d3z9brqs8fc512hhs5b5iab3a5wbax9zi03dskgvh2"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "byte-buddy-dep.jar"
+ #:source-dir "byte-buddy-dep/src/main/java"
+ #:test-dir "byte-buddy-dep/src/test"
+ #:tests? #f; would build java files that are incompatible with current
jdk
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'remove-annotations
+ (lambda _
+ (with-directory-excursion
"byte-buddy-dep/src/main/java/net/bytebuddy"
+ (substitute* (find-files "." ".*.java")
+ (("@EqualsAndHashCode.*") "")
+ (("import lombok.EqualsAndHashCode;") "")
+ (("@SuppressFBWarnings.*") "")
+ (("import
edu.umd.cs.findbugs.annotations.SuppressFBWarnings;") ""))
+ (substitute* '("description/type/TypeDescription.java"
+ "dynamic/loading/ClassInjector.java")
+ (("^ *value = .*") "")
+ (("^ *justification = .*") ""))))))))
+ (inputs
+ (list java-asm-9 java-asm-commons-9 java-jsr305 java-native-access))
+ (home-page "http://bytebuddy.net/")
+ (synopsis "Runtime code generation for the Java virtual machine")
+ (description "Byte Buddy is a code generation and manipulation library for
+creating and modifying Java classes during the runtime of a Java application
+and without the help of a compiler.")
+ (license license:asl2.0)))
+
(define-public java-powermock-reflect
(package
(name "java-powermock-reflect")
- 07/18: gnu: Add maven-parent-pom-39., (continued)
- 07/18: gnu: Add maven-parent-pom-39., guix-commits, 2024/04/20
- 08/18: gnu: Add apache-parent-pom-27., guix-commits, 2024/04/20
- 05/18: gnu: java-guava: Update to 31.1., guix-commits, 2024/04/20
- 03/18: gnu: Add java-error-prone-annotations., guix-commits, 2024/04/20
- 06/18: gnu: Add apache-parent-pom-29., guix-commits, 2024/04/20
- 11/18: gnu: Add java-asm-9., guix-commits, 2024/04/20
- 14/18: gnu: Add java-asm-analysis-9., guix-commits, 2024/04/20
- 15/18: gnu: Add java-asm-util-9., guix-commits, 2024/04/20
- 09/18: gnu: Add maven-parent-pom-37., guix-commits, 2024/04/20
- 10/18: gnu: maven-resolver-api: Update to 1.9.4., guix-commits, 2024/04/20
- 17/18: gnu: Add java-byte-buddy-dep.,
guix-commits <=
- 13/18: gnu: maven: Update to 3.9.0., guix-commits, 2024/04/20
- 16/18: gnu: Add java-asm-commons-9., guix-commits, 2024/04/20
- 01/18: gnu: java-objenesis: Update to 3.3., guix-commits, 2024/04/20
- 04/18: gnu: java-cglib: Update to 3.3.0., guix-commits, 2024/04/20
- 12/18: gnu: Add java-asm-tree-9., guix-commits, 2024/04/20
- 18/18: gnu: java-powermock-reflect: Update to 2.0.9., guix-commits, 2024/04/20