commit maven-enforcer for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package maven-enforcer for openSUSE:Factory checked in at 2023-09-28 00:26:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/maven-enforcer (Old) and /work/SRC/openSUSE:Factory/.maven-enforcer.new.23327 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "maven-enforcer" Thu Sep 28 00:26:12 2023 rev:4 rq:1113886 version:3.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/maven-enforcer/maven-enforcer.changes 2022-03-22 19:40:47.747127396 +0100 +++ /work/SRC/openSUSE:Factory/.maven-enforcer.new.23327/maven-enforcer.changes 2023-09-28 00:38:35.541102574 +0200 @@ -1,0 +2,162 @@ +Wed Sep 27 11:39:13 UTC 2023 - Fridrich Strba <fstrba@suse.com> + +- Update to version 3.4.1 + * Bug + + MENFORCER-168: In a multi module project "bannedDependencies" + rule tries to resolve project artifacts from external + repository + + MENFORCER-185: Require Release Dependencies ignorant about + aggregator build + + MENFORCER-301: banDuplicatePomDependencyVersions does not + check managementDependencies + + MENFORCER-336: Beanshell rule is not thread-safe + + MENFORCER-346: RequireSnapshotVersion not compatible with CI + Friendly Versions (${revision}) + + MENFORCER-351: NPE when using new <?m2e execute ?> syntax with + maven-enforcer-plugin + + MENFORCER-352: Broken links on Maven Enforcer Plugin site + + MENFORCER-357: RequirePluginVersions not recognizing + versions-from-properties + + MENFORCER-359: [REGRESSION] RequirePluginVersions fails when + versions are inherited + + MENFORCER-364: requireFilesExist rule should be case sensitive + + MENFORCER-366: Broken Links on Project Home Page + + MENFORCER-373: TestRequireOS uses hamcrest via transitive + dependency + + MENFORCER-374: plexus-container-default in enforcer-api is + very outdated + + MENFORCER-381: classifier not included in output of failed + RequireUpperBoundDeps test + + MENFORCER-389: Exclusions are not considered when looking at + parent for requireReleaseDeps + + MENFORCER-391: requireUpperBoundDeps does not fail when + packaging is 'war' + + MENFORCER-394: DependencyConvergence in 3.0.0 fails on + provided scoped dependencies + + MENFORCER-395: NPE on requireReleaseDeps with non-matching + includes + + MENFORCER-402: RequireUpperBoundDeps now follow scope provided + transitive dependencies + + MENFORCER-421: Use currently build artifacts in IT tests + + MENFORCER-378: requireReleaseDeps does not support optional + dependencies or runtime scope + + MENFORCER-407: Enforcer 3.0.0 breaks with Maven 3.8.4 + + MENFORCER-434: Version 3.1.0 is not enforcing + bannedDependencies rules + + MENFORCER-437: DependencyConvergence treats provided + dependencies are runtime dependencies + + MENFORCER-459: Plugin shouldn't use NullPointerException for + non-exceptional code flow + + MENFORCER-461: NPE in RequirePluginVersions + + MENFORCER-462: ReactorModuleConvergence not cached in reactor + + MENFORCER-466: RequireUpperBoundDeps fails on provided + dependencies since 3.2.1 + + MENFORCER-467: Problematic dependency resolution by new + 'banDynamicVersions' rule + + MENFORCER-469: banTransitiveDependencies: failing if a + transitive dependencies has another version than the resolved + one + + MENFORCER-474: Filtering dependency tree by scope + + MENFORCER-393: Upgrading to 3.0.0 causes 'Could not build + dependency tree' with repositories some unknown protocol + + MENFORCER-426: DependencyConvergence in 3.1.0 fails when using + version ranges + + MENFORCER-480: Semantics of 'ignores' parameter of + 'banDynamicVersions' is inverted + + MENFORCER-481: Omission of 'excludedScopes' parameter of + 'banDynamicVersions' causes NPE + + MENFORCER-491: ENFORCER: plugin-info and mojo pages not found + * New Feature + + MENFORCER-358: requireUpperBounds deps should have includes + + MENFORCER-361: Introduce RequireTextFileChecksum with line + separator normalization + + MENFORCER-397: allow no rules + + MENFORCER-398: show rules processed + + MENFORCER-411: DependencyConvergence should support + including/excluding certain dependencies + + MENFORCER-422: Support declaring external banned dependencies + in an external file/URL + + MENFORCER-423: Maven enforcer rule which checks that all + dependencies have an explicit scope set + + MENFORCER-424: Maven enforcer rule which checks that all + dependencies in dependencyManagement don't have an explicit + scope set + + MENFORCER-427: Rule for no version ranges, version + placeholders or SNAPSHOT versions + + MENFORCER-430: Allow one of many files in RequireFiles rules + to pass + + MENFORCER-431: Skip specific rules + + MENFORCER-455: New Enforcer API + + MENFORCER-456: New Enforcer API - RuleConfigProvider + + MENFORCER-458: Move Built-In Rules to new API + * Improvement + + MENFORCER-211: wildcard ignore in requireReleaseDeps + + MENFORCER-245: Improve documentation about writing own + Enforcer Rule + + MENFORCER-257: RequireActiveProfile should respect inherited + activated profiles + + MENFORCER-277: Upgrade maven-dependency-tree to 3.x + + MENFORCER-304: Improve dependency resolving in multiple + modules project + + MENFORCER-313: requireUpperBoundDeps: add [<scope>] and colors + to the output + + MENFORCER-329: Example for writing a custom rule should be + upgraded + + MENFORCER-338: Along with JavaVersion, allow enforcement of + the JavaVendor + + MENFORCER-349: Include Java vendor in display-info output + + MENFORCER-350: requireMavenVersion x.y.z is processed as + (,x.y.z] instead of [x.y.z,) + + MENFORCER-353: Consistently format artifacts same as + dependency:tree + + MENFORCER-355: make build Reproducible + + MENFORCER-376: Add support for excludes/includes in + requireJavaVendor rule + + MENFORCER-384: Introduce Maven Enforcer Extension + + MENFORCER-388: Extends RequirePluginVersions with + banMavenDefaults + + MENFORCER-404: Shared GitHub Actions + + MENFORCER-409: Log at ERROR level when <fail> is set + + MENFORCER-420: Reuse getDependenciesToCheck results across + rules + + MENFORCER-415: Violation messages can be really hard to find + in a multi module project + + MENFORCER-425: Clarify class loading for custom Enforcer rules + + MENFORCER-428: Using junit jupiter bom instead of single + artifacts. + + MENFORCER-435: Get rid of maven-dependency-tree dependency + + MENFORCER-440: Allow 8 as JDK version for requireJavaVersion + + MENFORCER-444: Improve error message for rule + "requireJavaVersion" + + MENFORCER-445: Include Java Home in Message for Java Rule + Failures + + MENFORCER-452: Manage all Maven Core dependencies as provided + + MENFORCER-453: Mange rules configuration by plugin + + MENFORCER-454: Deprecate 'rules' property and introduce + 'enforcer.rules' as a replacement + + MENFORCER-463: Change success message from executed to passed + + MENFORCER-488: EnforcerLogger: Provide isDebugEnabled(), + isErrorEnabled(), isWarnEnabled() and isInfoEnabled() + + MENFORCER-490: Properly declare dependencies + * Test + + MENFORCER-408: Regression test for dependency convergence + problem fixed in 3.0.0 + * Task + + MENFORCER-377: Remove reference to travis or switch to + travis.com + + MENFORCER-380: Fix maven assembly links + + MENFORCER-387: Require Java 8 + + MENFORCER-447: Verify working with Maven 4 + + MENFORCER-450: Code cleanup + + MENFORCER-451: Refresh download page + + MENFORCER-460: Deprecate display-info mojo + + MENFORCER-464: Refresh site descriptors + + MENFORCER-465: Superfluous blanks in + BanDuplicatePomDependencyVersions + + MENFORCER-476: Rename ResolveUtil to ResolverUtil +- Removed patches: + * 0001-Port-to-Maven-3-API.patch + * 0002-Port-to-artifact-transfer-0.11.0.patch + + not needed with this version + +------------------------------------------------------------------- Old: ---- 0001-Port-to-Maven-3-API.patch 0002-Port-to-artifact-transfer-0.11.0.patch enforcer-1.4.1-source-release.zip New: ---- enforcer-3.4.1-source-release.zip ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ maven-enforcer.spec ++++++ --- /var/tmp/diff_new_pack.z6ht4r/_old 2023-09-28 00:38:36.677143898 +0200 +++ /var/tmp/diff_new_pack.z6ht4r/_new 2023-09-28 00:38:36.677143898 +0200 @@ -1,7 +1,7 @@ # # spec file for package maven-enforcer # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,39 +17,34 @@ Name: maven-enforcer -Version: 1.4.1 +Version: 3.4.1 Release: 0 Summary: A build rule execution framework License: Apache-2.0 Group: Development/Libraries/Java URL: https://maven.apache.org/enforcer Source0: https://repo1.maven.org/maven2/org/apache/maven/enforcer/enforcer/%{version}/enforcer-%{version}-source-release.zip -# TODO forward upstream -# https://issues.apache.org/jira/browse/MENFORCER-267 -Patch0: 0001-Port-to-Maven-3-API.patch -Patch1: 0002-Port-to-artifact-transfer-0.11.0.patch BuildRequires: fdupes BuildRequires: java-devel >= 1.8 BuildRequires: maven-local BuildRequires: unzip BuildRequires: mvn(com.google.code.findbugs:jsr305) -BuildRequires: mvn(commons-lang:commons-lang) -BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness) +BuildRequires: mvn(commons-codec:commons-codec) +BuildRequires: mvn(commons-io:commons-io) +BuildRequires: mvn(javax.annotation:javax.annotation-api) +BuildRequires: mvn(org.apache.commons:commons-lang3) BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) -BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) -BuildRequires: mvn(org.apache.maven.shared:maven-artifact-transfer) -BuildRequires: mvn(org.apache.maven.shared:maven-common-artifact-filters) -BuildRequires: mvn(org.apache.maven.shared:maven-dependency-tree) BuildRequires: mvn(org.apache.maven:maven-artifact) -BuildRequires: mvn(org.apache.maven:maven-compat) BuildRequires: mvn(org.apache.maven:maven-core) BuildRequires: mvn(org.apache.maven:maven-parent:pom:) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.beanshell:bsh) -BuildRequires: mvn(org.codehaus.plexus:plexus-container-default) -BuildRequires: mvn(org.codehaus.plexus:plexus-i18n) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) +BuildRequires: mvn(org.eclipse.aether:aether-api) +BuildRequires: mvn(org.eclipse.aether:aether-util) +BuildRequires: mvn(org.eclipse.sisu:sisu-maven-plugin) +BuildRequires: mvn(org.slf4j:slf4j-api) BuildArch: noarch %description @@ -82,30 +77,37 @@ Group: Development/Libraries/Java %description plugin -This component contains the standard Enforcer Rules. +The Enforcer plugin provides goals to control certain environmental +constraints such as Maven version, JDK version and OS family along +with many more built-in rules and user created rules. + +%package extension +Summary: Maven Enforcer Extension +Group: Development/Libraries/Java + +%description extension +The Enforcer Extension provides a way to globally define rules without +making use of pom inheritence. This way you don't have to adjust the +pom.xml, but you can enforce a set of rules. %prep %setup -q -n enforcer-%{version} -%patch0 -p1 -%patch1 -p1 -# Avoid dependency cycle -%pom_xpath_inject pom:build/pom:pluginManagement/pom:plugins " - <plugin> - <artifactId>maven-enforcer-plugin</artifactId> - <version>SYSTEM</version> - </plugin>" - -# Replace plexus-maven-plugin with plexus-component-metadata -sed -e "s|<artifactId>plexus-maven-plugin</artifactId>|<artifactId>plexus-component-metadata</artifactId>|" \ - -e "s|<goal>descriptor</goal>|<goal>generate-metadata</goal>|" \ - -i enforcer-{api,rules}/pom.xml +find -name '*.java' -exec sed -i 's/\r//' {} + + +%pom_remove_dep org.junit:junit-bom + +%pom_add_dep javax.annotation:javax.annotation-api maven-enforcer-plugin + +%pom_add_plugin org.eclipse.sisu:sisu-maven-plugin maven-enforcer-plugin %build %{mvn_build} -s -f -- \ %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} -Dmaven.compiler.release=8 \ %endif + -Dversion.maven-enforcer-plugin=SYSTEM \ + -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ -Dsource=8 %install @@ -124,6 +126,8 @@ %files plugin -f .mfiles-maven-enforcer-plugin +%files extension -f .mfiles-maven-enforcer-extension + %files javadoc -f .mfiles-javadoc %license LICENSE %doc NOTICE ++++++ enforcer-1.4.1-source-release.zip -> enforcer-3.4.1-source-release.zip ++++++ ++++ 49437 lines of diff (skipped)
participants (1)
-
Source-Sync