summaryrefslogtreecommitdiff
path: root/dev-java/opentest4j/opentest4j-1.3.0-r1.ebuild
blob: 1fd5072d0edfe581c17aac6d41930480896f63da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

JAVA_PKG_IUSE="doc source test"
MAVEN_ID="org.opentest4j:opentest4j:1.3.0"
JAVA_TESTING_FRAMEWORKS="junit-4"

inherit java-pkg-2 java-pkg-simple

DESCRIPTION="Open Test Alliance for the JVM"
HOMEPAGE="https://github.com/ota4j-team/opentest4j"
SRC_URI="https://github.com/ota4j-team/opentest4j/archive/r${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-r${PV}"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"

DEPEND=">=virtual/jdk-11:*"	# module-info
RDEPEND=">=virtual/jre-1.8:*"	#939580

JAVA_SRC_DIR=( src/{main,module}/java )

JAVA_TEST_GENTOO_CLASSPATH="junit-4"
JAVA_TEST_SRC_DIR=( src/test/java )
JAVA_TEST_RESOURCE_DIRS=( src/test/resources )

src_test() {
	# src/test/java/org/opentest4j/FileInfoTests.java:52: error: cannot find symbol
	# 		var out = new ByteArrayOutputStream();
	# 		^
	#   symbol:   class var
	#   location: class FileInfoTests
	# src/test/java/org/opentest4j/FileInfoTests.java:55: error: cannot find symbol
	# 		var deserialized = (AssertionFailedError) new ObjectInputStream(
	# 		^
	#   symbol:   class var
	#   location: class FileInfoTests
	# src/test/java/org/opentest4j/FileInfoTests.java:64: error: cannot find symbol
	# 		var contents = "contents".getBytes(UTF_8);
	# 		^
	#   symbol:   class var
	#   location: class FileInfoTests
	# src/test/java/org/opentest4j/FileInfoTests.java:65: error: cannot find symbol
	# 		var fileInfo = new FileInfo("path", contents);
	# 		^
	#   symbol:   class var
	#   location: class FileInfoTests
	JAVAC_ARGS="--source 11 --target 11" java-pkg-simple_src_test
}