diff --git a/aggregator.pom b/aggregator.pom new file mode 100644 index 0000000..f48fa4d --- /dev/null +++ b/aggregator.pom @@ -0,0 +1,66 @@ + + 4.0.0 + org.openeuler.xmvn.junit5 + aggregator + 1.0.0 + pom + + junit-platform-commons + junit-platform-console + junit-platform-console-standalone + junit-platform-engine + junit-platform-launcher + junit-platform-runner + junit-platform-suite-api + junit-platform-surefire-provider + junit-jupiter-api + junit-jupiter-engine + junit-jupiter-migrationsupport + junit-jupiter-params + junit-vintage-engine + + + + + + maven-compiler-plugin + + 1.8 + 1.8 + + + + maven-jar-plugin + + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + + + + org.apache.felix + maven-bundle-plugin + 2.1.0 + + + bundle-manifest + process-classes + + manifest + + + + ${osgi.bsn} + ${osgi.bsn} + <_nouses>true + + + + + + + + diff --git a/junit-jupiter-api-5.3.1.pom b/junit-jupiter-api-5.3.1.pom new file mode 100644 index 0000000..8620768 --- /dev/null +++ b/junit-jupiter-api-5.3.1.pom @@ -0,0 +1,74 @@ + + + 4.0.0 + org.junit.jupiter + junit-jupiter-api + 5.3.1 + JUnit Jupiter API + Module "junit-jupiter-api" of JUnit 5. + http://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.opentest4j + opentest4j + 1.1.1 + compile + + + org.junit.platform + junit-platform-commons + 1.3.1 + compile + + + diff --git a/junit-jupiter-engine-5.3.1.pom b/junit-jupiter-engine-5.3.1.pom new file mode 100644 index 0000000..3a70927 --- /dev/null +++ b/junit-jupiter-engine-5.3.1.pom @@ -0,0 +1,74 @@ + + + 4.0.0 + org.junit.jupiter + junit-jupiter-engine + 5.3.1 + JUnit Jupiter Engine + Module "junit-jupiter-engine" of JUnit 5. + http://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-engine + 1.3.1 + compile + + + org.junit.jupiter + junit-jupiter-api + 5.3.1 + compile + + + diff --git a/junit-jupiter-migrationsupport-5.3.1.pom b/junit-jupiter-migrationsupport-5.3.1.pom new file mode 100644 index 0000000..551e821 --- /dev/null +++ b/junit-jupiter-migrationsupport-5.3.1.pom @@ -0,0 +1,74 @@ + + + 4.0.0 + org.junit.jupiter + junit-jupiter-migrationsupport + 5.3.1 + JUnit Jupiter Migration Support + Module "junit-jupiter-migrationsupport" of JUnit 5. + http://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + junit + junit + 4.12 + compile + + + org.junit.jupiter + junit-jupiter-api + 5.3.1 + compile + + + diff --git a/junit-jupiter-params-5.3.1.pom b/junit-jupiter-params-5.3.1.pom new file mode 100644 index 0000000..ef10482 --- /dev/null +++ b/junit-jupiter-params-5.3.1.pom @@ -0,0 +1,68 @@ + + + 4.0.0 + org.junit.jupiter + junit-jupiter-params + 5.3.1 + JUnit Jupiter Params + Module "junit-jupiter-params" of JUnit 5. + http://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.jupiter + junit-jupiter-api + 5.3.1 + compile + + + diff --git a/junit-platform-commons-1.3.1.pom b/junit-platform-commons-1.3.1.pom new file mode 100644 index 0000000..8b40da7 --- /dev/null +++ b/junit-platform-commons-1.3.1.pom @@ -0,0 +1,62 @@ + + + 4.0.0 + org.junit.platform + junit-platform-commons + 1.3.1 + JUnit Platform Commons + Module "junit-platform-commons" of JUnit 5. + http://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + diff --git a/junit-platform-console-1.3.1.pom b/junit-platform-console-1.3.1.pom new file mode 100644 index 0000000..60ddbf5 --- /dev/null +++ b/junit-platform-console-1.3.1.pom @@ -0,0 +1,68 @@ + + + 4.0.0 + org.junit.platform + junit-platform-console + 1.3.1 + JUnit Platform Console + Module "junit-platform-console" of JUnit 5. + http://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-launcher + 1.3.1 + compile + + + diff --git a/junit-platform-console-standalone-1.3.1.pom b/junit-platform-console-standalone-1.3.1.pom new file mode 100644 index 0000000..455f8e0 --- /dev/null +++ b/junit-platform-console-standalone-1.3.1.pom @@ -0,0 +1,62 @@ + + + 4.0.0 + org.junit.platform + junit-platform-console-standalone + 1.3.1 + JUnit Platform Console Standalone + Module "junit-platform-console-standalone" of JUnit 5. + http://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + diff --git a/junit-platform-engine-1.3.1.pom b/junit-platform-engine-1.3.1.pom new file mode 100644 index 0000000..b5c745c --- /dev/null +++ b/junit-platform-engine-1.3.1.pom @@ -0,0 +1,74 @@ + + + 4.0.0 + org.junit.platform + junit-platform-engine + 1.3.1 + JUnit Platform Engine API + Module "junit-platform-engine" of JUnit 5. + http://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-commons + 1.3.1 + compile + + + org.opentest4j + opentest4j + 1.1.1 + compile + + + diff --git a/junit-platform-launcher-1.3.1.pom b/junit-platform-launcher-1.3.1.pom new file mode 100644 index 0000000..c585ac2 --- /dev/null +++ b/junit-platform-launcher-1.3.1.pom @@ -0,0 +1,68 @@ + + + 4.0.0 + org.junit.platform + junit-platform-launcher + 1.3.1 + JUnit Platform Launcher + Module "junit-platform-launcher" of JUnit 5. + http://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-engine + 1.3.1 + compile + + + diff --git a/junit-platform-runner-1.3.1.pom b/junit-platform-runner-1.3.1.pom new file mode 100644 index 0000000..7c19e35 --- /dev/null +++ b/junit-platform-runner-1.3.1.pom @@ -0,0 +1,80 @@ + + + 4.0.0 + org.junit.platform + junit-platform-runner + 1.3.1 + JUnit Platform Runner + Module "junit-platform-runner" of JUnit 5. + http://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-launcher + 1.3.1 + compile + + + org.junit.platform + junit-platform-suite-api + 1.3.1 + compile + + + junit + junit + 4.12 + compile + + + diff --git a/junit-platform-suite-api-1.3.1.pom b/junit-platform-suite-api-1.3.1.pom new file mode 100644 index 0000000..5bd8eed --- /dev/null +++ b/junit-platform-suite-api-1.3.1.pom @@ -0,0 +1,68 @@ + + + 4.0.0 + org.junit.platform + junit-platform-suite-api + 1.3.1 + JUnit Platform Suite API + Module "junit-platform-suite-api" of JUnit 5. + http://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-commons + 1.3.1 + compile + + + diff --git a/junit-platform-surefire-provider-1.3.1.pom b/junit-platform-surefire-provider-1.3.1.pom new file mode 100644 index 0000000..bae82ba --- /dev/null +++ b/junit-platform-surefire-provider-1.3.1.pom @@ -0,0 +1,80 @@ + + + 4.0.0 + org.junit.platform + junit-platform-surefire-provider + 1.3.1 + JUnit Platform Surefire Provider + Module "junit-platform-surefire-provider" of JUnit 5. + http://junit.org/junit5/ + + + The Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-launcher + 1.3.1 + compile + + + org.apache.maven.surefire + surefire-api + 2.22.0 + runtime + + + org.apache.maven.surefire + common-java5 + 2.22.0 + runtime + + + diff --git a/junit-vintage-engine-5.3.1.pom b/junit-vintage-engine-5.3.1.pom new file mode 100644 index 0000000..3eda4fa --- /dev/null +++ b/junit-vintage-engine-5.3.1.pom @@ -0,0 +1,74 @@ + + + 4.0.0 + org.junit.vintage + junit-vintage-engine + 5.3.1 + JUnit Vintage Engine + Module "junit-vintage-engine" of JUnit 5. + http://junit.org/junit5/ + + + Eclipse Public License v2.0 + http://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + Matthias.Merdes@heidelberg-mobil.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + org.apiguardian + apiguardian-api + 1.0.0 + compile + + + org.junit.platform + junit-platform-engine + 1.3.1 + compile + + + junit + junit + 4.12 + runtime + + + diff --git a/junit5.spec b/junit5.spec new file mode 100644 index 0000000..64692cf --- /dev/null +++ b/junit5.spec @@ -0,0 +1,121 @@ +#Global macro or variable +%global junit_url https://repo1.maven.org/maven2/org/junit +%global platform junit-platform +%global platform_version 1.3.1 +%global jupiter junit-jupiter +%global vintage junit-vintage + +#Basic Information +Name: junit5 +Version: 5.3.1 +Release: 3 +Summary: Java regression testing framework +License: EPL-2.0 and ASL 2.0 +URL: http://junit.org/junit5/ +Source0: https://github.com/junit-team/junit5/archive/r%{version}.tar.gz +Source100: aggregator.pom +Source200: %{junit_url}/platform/%{platform}-commons/%{platform_version}/%{platform}-commons-%{platform_version}.pom +Source201: %{junit_url}/platform/%{platform}-console/%{platform_version}/%{platform}-console-%{platform_version}.pom +Source202: %{junit_url}/platform/%{platform}-console-standalone/%{platform_version}/%{platform}-console-standalone-%{platform_version}.pom +Source203: %{junit_url}/platform/%{platform}-engine/%{platform_version}/%{platform}-engine-%{platform_version}.pom +Source205: %{junit_url}/platform/%{platform}-launcher/%{platform_version}/%{platform}-launcher-%{platform_version}.pom +Source206: %{junit_url}/platform/%{platform}-runner/%{platform_version}/%{platform}-runner-%{platform_version}.pom +Source207: %{junit_url}/platform/%{platform}-suite-api/%{platform_version}/%{platform}-suite-api-%{platform_version}.pom +Source208: %{junit_url}/platform/%{platform}-surefire-provider/%{platform_version}/%{platform}-surefire-provider-%{platform_version}.pom +Source301: %{junit_url}/jupiter/%{jupiter}-api/%{version}/%{jupiter}-api-%{version}.pom +Source302: %{junit_url}/jupiter/%{jupiter}-engine/%{version}/%{jupiter}-engine-%{version}.pom +Source303: %{junit_url}/jupiter/%{jupiter}-migrationsupport/%{version}/%{jupiter}-migrationsupport-%{version}.pom +Source304: %{junit_url}/jupiter/%{jupiter}-params/%{version}/%{jupiter}-params-%{version}.pom +Source400: %{junit_url}/vintage/%{vintage}-engine/%{version}/%{vintage}-engine-%{version}.pom +BuildArch: noarch + +#Dependency +BuildRequires: maven-local +BuildRequires: mvn(com.univocity:univocity-parsers) +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.apache.maven.surefire:common-java5) +BuildRequires: mvn(org.apache.maven.surefire:surefire-api) +BuildRequires: mvn(org.apiguardian:apiguardian-api) +BuildRequires: mvn(org.opentest4j:opentest4j) +BuildRequires: asciidoc + + +%description +JUnit is a popular regression testing framework for Java platform. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +Junit5 API documentation. + +%package_help + +#Build sections +%prep +%setup -q -n %{name}-r%{version} +find -name \*.jar -delete + +cp -p %{jupiter}-api/LICENSE.md LICENSE-Eclipse.md +cp -p %{platform}-surefire-provider/LICENSE.md LICENSE-Apache.md + +cp -p %{SOURCE100} pom.xml +cp -p %{SOURCE200} %{platform}-commons/pom.xml +cp -p %{SOURCE201} %{platform}-console/pom.xml +cp -p %{SOURCE202} %{platform}-console-standalone/pom.xml +cp -p %{SOURCE203} %{platform}-engine/pom.xml +cp -p %{SOURCE205} %{platform}-launcher/pom.xml +cp -p %{SOURCE206} %{platform}-runner/pom.xml +cp -p %{SOURCE207} %{platform}-suite-api/pom.xml +cp -p %{SOURCE208} %{platform}-surefire-provider/pom.xml +cp -p %{SOURCE301} %{jupiter}-api/pom.xml +cp -p %{SOURCE302} %{jupiter}-engine/pom.xml +cp -p %{SOURCE303} %{jupiter}-migrationsupport/pom.xml +cp -p %{SOURCE304} %{jupiter}-params/pom.xml +cp -p %{SOURCE400} %{vintage}-engine/pom.xml + +for pom in $(find -mindepth 2 -name pom.xml); do + # Set parent to aggregator + %pom_xpath_inject pom:project "org.openeuler.xmvn.junit5aggregator1.0.0" $pom + # OSGi BSN + bsn=$(sed 's|/pom.xml$||;s|.*/|org.|;s|-|.|g' <<<"$pom") + %pom_xpath_inject pom:project "${bsn}" $pom + # Incorrect scope - API guardian is just annotation, needed only during compilation + %pom_xpath_set -f "pom:dependency[pom:artifactId='apiguardian-api']/pom:scope" provided $pom +done + +%pom_add_dep net.sf.jopt-simple:jopt-simple:5.0.4 %{platform}-console +%pom_add_dep com.univocity:univocity-parsers:2.5.4 %{jupiter}-params + +%pom_xpath_set "pom:dependency[pom:groupId='org.apache.maven.surefire']/pom:scope" provided %{platform}-surefire-provider + +%pom_xpath_set "pom:dependency[pom:artifactId='junit']/pom:scope" compile %{vintage}-engine + +%pom_disable_module %{platform}-console +%pom_disable_module %{platform}-console-standalone + +%mvn_package :aggregator __noinstall + +%build +%mvn_build -f + +asciidoc documentation/src/docs/asciidoc/index.adoc || : +ln -s ../../javadoc/junit5 documentation/src/docs/api + +%install +%mvn_install + +#Files list +%files -f .mfiles +%license LICENSE.md LICENSE-Eclipse.md LICENSE-Apache.md + +%files javadoc -f .mfiles-javadoc +%license LICENSE.md LICENSE-Eclipse.md LICENSE-Apache.md + +%files help +%doc documentation/src/docs/* + +%changelog +* Thu Feb 27 2020 Jiangping Hu - 5.3.1-3 +- Package init diff --git a/r5.3.1.tar.gz b/r5.3.1.tar.gz new file mode 100644 index 0000000..6b68620 Binary files /dev/null and b/r5.3.1.tar.gz differ