mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: java-jmh: Switch to maven-build-system.
* gnu/packages/java.scm (java-jmh): Switch to maven-build-system.
This commit is contained in:
parent
901d48cc17
commit
1b1eeb3b12
1 changed files with 18 additions and 16 deletions
|
@ -44,6 +44,7 @@
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
#:use-module (guix build-system ant)
|
#:use-module (guix build-system ant)
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
|
#:use-module (guix build-system maven)
|
||||||
#:use-module (guix build-system trivial)
|
#:use-module (guix build-system trivial)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (gnu packages attr)
|
#:use-module (gnu packages attr)
|
||||||
|
@ -5879,26 +5880,27 @@ available in the Java programming language or Commons Lang.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0i7fa7l3gdqkkgz5ddayp6m46dgbj9rqlz35xffrcbyiz3gpljy0"))))
|
"0i7fa7l3gdqkkgz5ddayp6m46dgbj9rqlz35xffrcbyiz3gpljy0"))))
|
||||||
(build-system ant-build-system)
|
(build-system maven-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:jar-name "jmh-core.jar"
|
`(#:exclude
|
||||||
#:source-dir "jmh-core/src/main"
|
(("org.apache.maven.plugins" .
|
||||||
#:test-dir "jmh-core/src/test"
|
("maven-source-plugin" "maven-archetype-plugin" "maven-shade-plugin"
|
||||||
|
"maven-site-plugin" "maven-javadoc-plugin" "maven-eclipse-plugin"))
|
||||||
|
("com.mycila.maven-license-plugin" . ("maven-license-plugin"))
|
||||||
|
("org.apache.maven.wagon" . ("wagon-ssh")))
|
||||||
|
#:maven-plugins
|
||||||
|
(("maven-enforcer-plugin" ,maven-enforcer-plugin)
|
||||||
|
,@(default-maven-plugins))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
;; This seems to be a bug in the JDK. It may not be necessary in
|
(add-after 'unpack 'remove-unnecessary
|
||||||
;; future versions of the JDK.
|
|
||||||
(add-after 'unpack 'fix-bug
|
|
||||||
(lambda _
|
(lambda _
|
||||||
(with-directory-excursion
|
;; requires org.apache.maven.archetype:archetype-packaging.
|
||||||
"jmh-core/src/main/java/org/openjdk/jmh/runner/options"
|
;; Its subprojects also require groovy, kotlin and scala,
|
||||||
(substitute* '("IntegerValueConverter.java"
|
;; respectively.
|
||||||
"ThreadsValueConverter.java")
|
(delete-file-recursively "jmh-archetypes"))))))
|
||||||
(("public Class<Integer> valueType")
|
(propagated-inputs
|
||||||
"public Class<? extends Integer> valueType")))
|
`(("java-jopt-simple" ,java-jopt-simple-4)
|
||||||
#t)))))
|
|
||||||
(inputs
|
|
||||||
`(("java-jopt-simple" ,java-jopt-simple)
|
|
||||||
("java-commons-math3" ,java-commons-math3)))
|
("java-commons-math3" ,java-commons-math3)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("java-junit" ,java-junit)
|
`(("java-junit" ,java-junit)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue