SHA256
1
0
forked from pool/byte-buddy

Accepting request 1076761 from home:urbic:java

Add forgotten entry to byte-buddy.changes

OBS-URL: https://build.opensuse.org/request/show/1076761
OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=1
This commit is contained in:
Fridrich Strba 2023-04-03 09:09:31 +00:00 committed by Git OBS Bridge
commit 3fcc569b67
11 changed files with 860 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

58
00-asm5.patch Normal file
View File

@ -0,0 +1,58 @@
diff -up byte-buddy-byte-buddy-1.14.3/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java.p00 byte-buddy-byte-buddy-1.14.3/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java
--- byte-buddy-byte-buddy-1.14.3/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java.p00 2023-04-02 19:44:27.558417800 +0300
+++ byte-buddy-byte-buddy-1.14.3/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java 2023-04-02 19:49:42.414681807 +0300
@@ -143,12 +143,12 @@ public class ClassFileVersion implements
/**
* The class file version of Java 20.
*/
- public static final ClassFileVersion JAVA_V20 = new ClassFileVersion(Opcodes.V20);
+ //public static final ClassFileVersion JAVA_V20 = new ClassFileVersion(Opcodes.V20);
/**
* The class file version of Java 21.
*/
- public static final ClassFileVersion JAVA_V21 = new ClassFileVersion(Opcodes.V21);
+ //public static final ClassFileVersion JAVA_V21 = new ClassFileVersion(Opcodes.V21);
/**
* A version locator for the executing JVM.
@@ -240,10 +240,10 @@ public class ClassFileVersion implements
return JAVA_V18;
} else if (javaVersionString.equals("1.19") || javaVersionString.equals("19")) {
return JAVA_V19;
- } else if (javaVersionString.equals("1.20") || javaVersionString.equals("20")) {
- return JAVA_V20;
- } else if (javaVersionString.equals("1.21") || javaVersionString.equals("21")) {
- return JAVA_V21;
+ //} else if (javaVersionString.equals("1.20") || javaVersionString.equals("20")) {
+ // return JAVA_V20;
+ //} else if (javaVersionString.equals("1.21") || javaVersionString.equals("21")) {
+ // return JAVA_V21;
} else {
if (OpenedClassReader.EXPERIMENTAL) {
try {
@@ -307,10 +307,10 @@ public class ClassFileVersion implements
return JAVA_V18;
case 19:
return JAVA_V19;
- case 20:
- return JAVA_V20;
- case 21:
- return JAVA_V21;
+ //case 20:
+ // return JAVA_V20;
+ //case 21:
+ // return JAVA_V21;
default:
if (OpenedClassReader.EXPERIMENTAL && javaVersion > 0) {
return new ClassFileVersion(BASE_VERSION + javaVersion);
@@ -326,7 +326,8 @@ public class ClassFileVersion implements
* @return The latest officially supported Java version.
*/
public static ClassFileVersion latest() {
- return ClassFileVersion.JAVA_V21;
+ //return ClassFileVersion.JAVA_V21;
+ return ClassFileVersion.JAVA_V19;
}
/**

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<flavor>bootstrap</flavor>
</multibuild>

3
byte-buddy-1.14.3.jar Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1db7ee74714ed852a2bd23c33d066e8a4f6031411cbd0ce75daa58b7670894ad
size 4190940

383
byte-buddy-1.14.3.pom Normal file
View File

@ -0,0 +1,383 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>byte-buddy-parent</artifactId>
<groupId>net.bytebuddy</groupId>
<version>1.14.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>byte-buddy</artifactId>
<name>Byte Buddy (without dependencies)</name>
<description>Byte Buddy is a Java library for creating Java classes at run time.
This artifact is a build of Byte Buddy with all ASM dependencies repackaged into its own name space.</description>
<build>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${version.plugin.javadoc}</version>
<configuration>
<includeDependencySources>true</includeDependencySources>
<dependencySourceIncludes>
<dependencySourceInclude>${project.groupId}:byte-buddy-dep</dependencySourceInclude>
</dependencySourceIncludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>${version.plugin.pitest}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${version.plugin.spotbugs}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>${version.plugin.jar}</version>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${version.plugin.bundle}</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
<configuration>
<instructions>
<Multi-Release>true</Multi-Release>
<Export-Package>${packages.list.external}</Export-Package>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>codes.rafael.modulemaker</groupId>
<artifactId>modulemaker-maven-plugin</artifactId>
<version>${version.plugin.modulemaker}</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>make-module</goal>
</goals>
<configuration>
<skip>${modulemaker.skip}</skip>
<name>${project.groupId}</name>
<version>${project.version}</version>
<multirelease>true</multirelease>
<packages>${packages.list.external},${packages.list.internal}</packages>
<exports>${packages.list.external}</exports>
<static-requires>java.instrument,
java.management,
jdk.unsupported,
net.bytebuddy.agent,
com.sun.jna,
com.sun.jna.platform</static-requires>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>${version.asm}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>extras</id>
<build>
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<skipSource>true</skipSource>
</configuration>
</execution>
</executions>
<configuration>
<skipSource>true</skipSource>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>shade-current</id>
<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>true</createDependencyReducedPom>
<createSourcesJar>true</createSourcesJar>
<shadeSourcesContent>true</shadeSourcesContent>
<relocations>
<relocation>
<pattern>org.objectweb.asm</pattern>
<shadedPattern>net.bytebuddy.jar.asm</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>net.bytebuddy:byte-buddy-dep:*</artifact>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
<filter>
<artifact>org.ow2.asm:*</artifact>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>**/module-info.class</exclude>
<exclude>**/LICENSE</exclude>
<exclude>**/NOTICE</exclude>
</excludes>
</filter>
<filter>
<artifact>org.ow2.asm:asm-commons</artifact>
<includes>
<include>org/objectweb/asm/commons/AnnotationRemapper.**</include>
<include>org/objectweb/asm/commons/ClassRemapper.**</include>
<include>org/objectweb/asm/commons/FieldRemapper.**</include>
<include>org/objectweb/asm/commons/MethodRemapper.**</include>
<include>org/objectweb/asm/commons/ModuleHashesAttribute.**</include>
<include>org/objectweb/asm/commons/ModuleRemapper.**</include>
<include>org/objectweb/asm/commons/RecordComponentRemapper.**</include>
<include>org/objectweb/asm/commons/Remapper.**</include>
<include>org/objectweb/asm/commons/SignatureRemapper.**</include>
<include>org/objectweb/asm/commons/SimpleRemapper.**</include>
</includes>
</filter>
</filters>
<transformers>
<transformer>
<mainClass>net.bytebuddy.build.Plugin$Engine$Default</mainClass>
</transformer>
<transformer>
<forShade>sources-jar</forShade>
<manifestEntries />
</transformer>
<transformer>
<resource>META-INF/LICENSE</resource>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>9.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>9.5</version>
<scope>compile</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>shade-legacy</id>
<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>${version.plugin.shade}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>true</createDependencyReducedPom>
<createSourcesJar>${bytebuddy.extras}</createSourcesJar>
<shadeSourcesContent>true</shadeSourcesContent>
<relocations>
<relocation>
<pattern>${shade.source}</pattern>
<shadedPattern>${shade.target}</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>net.bytebuddy:byte-buddy-dep:*</artifact>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
</excludes>
</filter>
<filter>
<artifact>org.ow2.asm:*</artifact>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>**/module-info.class</exclude>
<exclude>**/LICENSE</exclude>
<exclude>**/NOTICE</exclude>
</excludes>
</filter>
<filter>
<artifact>org.ow2.asm:asm-commons</artifact>
<includes>
<include>org/objectweb/asm/commons/AnnotationRemapper.**</include>
<include>org/objectweb/asm/commons/ClassRemapper.**</include>
<include>org/objectweb/asm/commons/FieldRemapper.**</include>
<include>org/objectweb/asm/commons/MethodRemapper.**</include>
<include>org/objectweb/asm/commons/ModuleHashesAttribute.**</include>
<include>org/objectweb/asm/commons/ModuleRemapper.**</include>
<include>org/objectweb/asm/commons/RecordComponentRemapper.**</include>
<include>org/objectweb/asm/commons/Remapper.**</include>
<include>org/objectweb/asm/commons/SignatureRemapper.**</include>
<include>org/objectweb/asm/commons/SimpleRemapper.**</include>
</includes>
</filter>
</filters>
<transformers>
<transformer>
<mainClass>net.bytebuddy.build.Plugin$Engine$Default</mainClass>
</transformer>
<transformer>
<resource>META-INF/LICENSE</resource>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>${version.asm}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>${version.asm}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>5.12.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
<version>5.12.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>findbugs-annotations</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
<japicmp.skip>true</japicmp.skip>
<packages.list.external>net.bytebuddy,
net.bytebuddy.agent.builder,
net.bytebuddy.asm,
net.bytebuddy.build,
net.bytebuddy.description,
net.bytebuddy.description.annotation,
net.bytebuddy.description.enumeration,
net.bytebuddy.description.field,
net.bytebuddy.description.method,
net.bytebuddy.description.modifier,
net.bytebuddy.description.type,
net.bytebuddy.dynamic,
net.bytebuddy.dynamic.loading,
net.bytebuddy.dynamic.scaffold,
net.bytebuddy.dynamic.scaffold.inline,
net.bytebuddy.dynamic.scaffold.subclass,
net.bytebuddy.implementation,
net.bytebuddy.implementation.attribute,
net.bytebuddy.implementation.auxiliary,
net.bytebuddy.implementation.bind,
net.bytebuddy.implementation.bind.annotation,
net.bytebuddy.implementation.bytecode,
net.bytebuddy.implementation.bytecode.assign,
net.bytebuddy.implementation.bytecode.assign.primitive,
net.bytebuddy.implementation.bytecode.assign.reference,
net.bytebuddy.implementation.bytecode.collection,
net.bytebuddy.implementation.bytecode.constant,
net.bytebuddy.implementation.bytecode.member,
net.bytebuddy.matcher,
net.bytebuddy.pool,
net.bytebuddy.utility,
net.bytebuddy.utility.nullability,
net.bytebuddy.utility.privilege,
net.bytebuddy.utility.visitor,
${shade.target},
${shade.target}.signature,
${shade.target}.commons</packages.list.external>
<shade.source>org.objectweb.asm</shade.source>
<shade.target>net.bytebuddy.jar.asm</shade.target>
<packages.list.internal>net.bytebuddy.utility.dispatcher</packages.list.internal>
</properties>
</project>

3
byte-buddy-1.14.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:55925840aee37353bdcad86de37106e32e760d3863cbbe8c1c9e743a94e4a3c5
size 1996005

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d52c7d65b9fdac180f90612c377a39fc9b81e1d48f02aced9fbdcdfeda57659
size 52145

View File

@ -0,0 +1,216 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-parent</artifactId>
<version>1.14.3</version>
</parent>
<artifactId>byte-buddy-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Byte Buddy Maven plugin</name>
<description>A plugin for post-processing class files via Byte Buddy in a Maven build.</description>
<properties>
<version.maven>3.2.5</version.maven>
<version.maven.annotation>3.5.2</version.maven.annotation>
<version.maven.aether>1.1.0</version.maven.aether>
<version.maven.plexus-build-api>0.0.7</version.maven.plexus-build-api>
<version.maven.test>3.3.0</version.maven.test>
<version.slf4j>1.7.36</version.slf4j>
<version.maven.plexus-archiver>3.7.0</version.maven.plexus-archiver>
<version.maven.plexus-util>3.4.2</version.maven.plexus-util>
<version.commons-io>2.11.0</version.commons-io>
<version.commons-compress>1.21</version.commons-compress>
<version.guava>31.1-jre</version.guava>
<japicmp.skip>true</japicmp.skip>
</properties>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>byte-buddy</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${version.maven}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>${version.maven.annotation}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.aether</groupId>
<artifactId>aether-api</artifactId>
<version>${version.maven.aether}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${version.maven}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.aether</groupId>
<artifactId>aether-util</artifactId>
<version>${version.maven.aether}</version>
</dependency>
<dependency>
<groupId>org.sonatype.plexus</groupId>
<artifactId>plexus-build-api</artifactId>
<version>${version.maven.plexus-build-api}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${version.junit}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${version.mockito}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
</exclusion>
<exclusion>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-compat</artifactId>
<version>${version.maven}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-testing</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>${version.maven.test}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>${version.slf4j}</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-archiver</artifactId>
<version>${version.maven.plexus-archiver}</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>${version.maven.plexus-util}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${version.commons-io}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>${version.commons-compress}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${version.guava}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>..</directory>
<targetPath>META-INF</targetPath>
<filtering>true</filtering>
<includes>
<include>LICENSE</include>
<include>NOTICE</include>
</includes>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${version.plugin.javadoc}</version>
<configuration>
<offlineLinks>
<link>
<url>https://javadoc.io/doc/net.bytebuddy/byte-buddy/${project.version}</url>
<location>${project.basedir}/../byte-buddy/target/apidocs</location>
</link>
</offlineLinks>
<links>
<link>https://javadoc.io/doc/org.apache.maven/maven-core/${version.maven}</link>
<link>https://javadoc.io/doc/org.apache.maven.plugin-tools/maven-plugin-annotations/${version.maven.annotation}</link>
<link>https://javadoc.io/doc/org.eclipse.aether/aether-api/${version.maven.aether}</link>
<link>https://javadoc.io/doc/org.sonatype.plexus/plexus-build-api/${version.maven.plexus-build-api}</link>
</links>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<!-- Runs the build with compatibility for Java 6 JVMs. -->
<profile>
<id>java6-compatibility</id>
<activation>
<activeByDefault>false</activeByDefault>
<jdk>1.6</jdk>
</activation>
<properties>
<version.maven.plexus-archiver>2.1.1</version.maven.plexus-archiver>
<version.maven.plexus-util>3.3.1</version.maven.plexus-util>
<version.commons-io>2.5</version.commons-io>
<version.commons-compress>1.12</version.commons-compress>
<version.guava>20.0</version.guava>
</properties>
</profile>
<!-- Runs the build with compatibility for Java 7 JVMs. -->
<profile>
<id>java7-compatibility</id>
<activation>
<activeByDefault>false</activeByDefault>
<jdk>1.7</jdk>
</activation>
<properties>
<version.maven.plexus-archiver>2.11</version.maven.plexus-archiver>
<version.maven.plexus-util>3.3.1</version.maven.plexus-util>
<version.commons-io>2.6</version.commons-io>
<version.commons-compress>1.20</version.commons-compress>
<version.guava>16.0.1</version.guava>
<version.guava>20.0</version.guava>
</properties>
</profile>
</profiles>
</project>

29
byte-buddy.changes Normal file
View File

@ -0,0 +1,29 @@
-------------------------------------------------------------------
Sun Apr 2 18:09:26 UTC 2023 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.14.3
* Changes of v1.14.3
+ Make MethodGraph.Compiler failsafe when processing incomplete
methods.
+ Update ASM.
-------------------------------------------------------------------
Mon Mar 20 13:10:06 UTC 2023 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.14.2
* Changes of v1.14.2
+ Fix offset mapping for local variable array remapping in
Advice.
+ Add possibility to specify an index for skipOn and repeatOn
which resolves the checked value from a returned array.
* Changes of 1.14.1
+ Add extended scope for Maven Byte Buddy plugin to include all
non-test-dependencies.
-------------------------------------------------------------------
Wed Mar 8 04:33:02 UTC 2023 - Anton Shvetz <shvetz.anton@gmail.com>
- Initial packaging with v1.14.0
- Add patch:
* 00-asm5.patch
~ asm5 does not support the Opcodes.V20 constant

138
byte-buddy.spec Normal file
View File

@ -0,0 +1,138 @@
#
# spec file for package byte-buddy
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global base_name byte-buddy
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "bootstrap"
%bcond_without bootstrap
%else
%bcond_with bootstrap
%endif
%if %{with bootstrap}
%global name %{base_name}-%{flavor}
%else
%global name %{base_name}
%endif
Name: %{name}
Version: 1.14.3
Release: 0
Summary: Runtime code generation for the Java virtual machine
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://bytebuddy.net/
Source0: https://github.com/raphw/%{base_name}/archive/refs/tags/%{base_name}-%{version}.tar.gz
Source1: https://repo1.maven.org/maven2/net/bytebuddy/%{base_name}-maven-plugin/%{version}/%{base_name}-maven-plugin-%{version}.jar
Source2: https://repo1.maven.org/maven2/net/bytebuddy/%{base_name}-maven-plugin/%{version}/%{base_name}-maven-plugin-%{version}.pom
Source3: https://repo1.maven.org/maven2/net/bytebuddy/%{base_name}/%{version}/%{base_name}-%{version}.jar
Source4: https://repo1.maven.org/maven2/net/bytebuddy/%{base_name}/%{version}/%{base_name}-%{version}.pom
BuildRequires: maven-local
BuildArch: noarch
%if %{without bootstrap}
Patch0: 00-asm5.patch
BuildRequires: %{base_name}-bootstrap
BuildRequires: mvn(cglib:cglib-nodep)
BuildRequires: mvn(codes.rafael.modulemaker:modulemaker-maven-plugin)
BuildRequires: mvn(net.java.dev.jna:jna)
BuildRequires: mvn(net.java.dev.jna:jna-platform)
BuildRequires: mvn(net.sourceforge.findbugs:annotations)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires: mvn(org.javassist:javassist)
BuildRequires: mvn(org.openjdk.jmh:jmh-core)
BuildRequires: mvn(org.openjdk.jmh:jmh-generator-annprocess)
%endif
%description
Byte Buddy is a code generation and manipulation library for creating and
modifying Java classes during the runtime of a Java application and without the
help of a compiler. Other than the code generation utilities that ship with the
Java Class Library, Byte Buddy allows the creation of arbitrary classes and is
not limited to implementing interfaces for the creation of runtime proxies.
Furthermore, Byte Buddy offers a convenient API for changing classes either
manually, using a Java agent or during a build.
%if %{without bootstrap}
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%endif
%prep
%if %{with bootstrap}
cp %{SOURCE2} %{SOURCE4} .
%pom_xpath_set 'pom:project/pom:artifactId' '%{base_name}-maven-plugin-bootstrap' \
%{base_name}-maven-plugin-%{version}.pom
%pom_xpath_set 'pom:project/pom:artifactId' '%{base_name}-bootstrap' \
%{base_name}-%{version}.pom
%pom_xpath_set 'pom:dependency/pom:artifactId[text()="%{base_name}"]' '%{base_name}-bootstrap' \
%{base_name}-maven-plugin-%{version}.pom
%else
%setup -q -n %{name}-%{name}-%{version}
%patch0 -p1
%pom_disable_module %{name}-android
%pom_disable_module %{name}-android-test
%pom_disable_module %{name}-benchmark
%pom_disable_module %{name}-gradle-plugin
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
%pom_remove_plugin com.mycila:license-maven-plugin
%pom_remove_dep com.google.code.findbugs:findbugs-annotations
%pom_add_dep net.sourceforge.findbugs:annotations
%pom_add_dep net.sourceforge.findbugs:annotations byte-buddy-dep
%pom_xpath_set 'pom:plugin/pom:artifactId[text()="byte-buddy-maven-plugin"]' \
'%{base_name}-maven-plugin-bootstrap' %{base_name}-dep
%pom_xpath_set 'pom:transformation/pom:artifactId[text()="byte-buddy"]' \
'%{base_name}-bootstrap' %{base_name}-dep
%pom_xpath_remove 'pom:forShade' %{base_name}
%endif
%build
%if %{without bootstrap}
%{mvn_build} -f -- -Dsource=8
%endif
%install
%if %{with bootstrap}
%{mvn_artifact} --skip-dependencies %{base_name}-maven-plugin-%{version}.pom %{SOURCE1}
%{mvn_artifact} --skip-dependencies %{base_name}-%{version}.pom %{SOURCE3}
%endif
%mvn_install
%files -f .mfiles
%if %{without bootstrap}
%license LICENSE NOTICE
%doc README.md
%endif
%if %{without bootstrap}
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE
%endif
%changelog