!12 Speed up class loading of groovy-all files

From: @ultra_planet
Reviewed-by: @wangchong1995924
Signed-off-by: @wangchong1995924
This commit is contained in:
openeuler-ci-bot 2021-08-09 02:48:48 +00:00 committed by Gitee
commit 104c692d3b
2 changed files with 28 additions and 2 deletions

View File

@ -0,0 +1,22 @@
From f8a3b45b926bf2c969c633f2aea44f4c8f007d62 Mon Sep 17 00:00:00 2001
From: sunlan <sunlan@apache.org>
Date: Fri, 8 Dec 2017 08:01:10 +0800
Subject: [PATCH] Speed up class loading of groovy-all files
---
gradle/assemble.gradle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gradle/assemble.gradle b/gradle/assemble.gradle
index 20d74d6efd5..42e9e2b76a0 100644
--- a/gradle/assemble.gradle
+++ b/gradle/assemble.gradle
@@ -397,7 +397,7 @@ task jarAll(type: Jar, dependsOn: replaceJarWithJarJar) {
ant {
copy(file: archivePathTmp, tofile: archivePath)
- jar(destfile: archivePath, update:true, manifest: manifestPath) {
+ jar(destfile: archivePath, update: true, index: true, manifest: manifestPath) {
zipfileset(src: jar.archivePath, excludes:'META-INF')
}
delete(file: archivePathTmp, quiet: true, deleteonexit: true)

View File

@ -1,6 +1,6 @@
Name: groovy
Version: 2.4.8
Release: 9
Release: 10
Summary: Dynamic language for the Java Platform
License: ASL 2.0 and BSD and EPL-1.0 and Public Domain and ANTLR-PD and MIT
URL: http://groovy-lang.org
@ -18,6 +18,7 @@ Patch4: 0005-Update-to-QDox-2.0.patch
Patch5: 0006-Disable-artifactory-publish.patch
Patch6: 0007-Fix-missing-extension-definitions.patch
Patch7: CVE-2020-17521.patch
Patch8: Speed-up-class-loading-of-groovy-all-files.patch
BuildRequires: gradle-local >= 2.1-0.9 javapackages-local java-devel >= 1.8 ant antlr-tool ant-antlr
BuildRequires: aqute-bnd gpars multiverse apache-parent testng jline apache-commons-cli apache-commons-beanutils
@ -190,7 +191,10 @@ EOF
%doc LICENSE NOTICE README.adoc
%changelog
* Thu Feb 04 2021 wangyue <wangyue92@huawei.com> 2.4.8-9
* Mon Aug 09 2021 lingsheng <lingsheng@huawei.com> - 2.4.8-10
- Speed up class loading of groovy-all files
* Thu Feb 04 2021 wangyue <wangyue92@huawei.com> - 2.4.8-9
- fix CVE-2020-17521
* Thu Dec 7 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.4.8-8