Skip to content
Commits on Source (2)
sudo: false
language: java
before_script:
- echo "MAVEN_OPTS='-Xmx512m -Dgpg.skip=true'" > ~/.mavenrc
- if [[ "x$JDK" == *'x9'* ]]; then remove_dir_from_path $JAVA_HOME/bin; export JAVA_HOME=/usr/lib/jvm/java-9-oracle; export PATH=$JAVA_HOME/bin:$PATH; java -Xmx32m -version; fi
cache:
directories:
- '$HOME/.m2/repository'
before_cache:
# No sense in caching current build artifacts
rm -rf $HOME/.m2/repository/cglib
before_script:
- wget https://archive.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip
- unzip -qq apache-maven-3.2.5-bin.zip
- export M2_HOME="$PWD/apache-maven-3.2.5"
- export PATH="$M2_HOME/bin:$PATH"
- echo "MAVEN_OPTS='-Xmx512m -Dgpg.skip=true'" > ~/.mavenrc
- if [[ "x$JDK" == *'x9'* ]]; then remove_dir_from_path $JAVA_HOME/bin; export JAVA_HOME=/usr/lib/jvm/java-9-oracle; export PATH=$JAVA_HOME/bin:$PATH; java -Xmx32m -version; fi
# Skip default "mvn install" issued by Travis
install: true
script:
- mvn test -B -V
- mvn -Dgpg.skip=true -B -V test
matrix:
include:
- jdk: openjdk8
env: JDK8
- jdk: openjdk9
env: JDK=9
- jdk: oraclejdk11
env: JDK=11
fast_finish: true
allow_failures:
- env: JDK=9
include:
- jdk: oraclejdk8
- jdk: oraclejdk8
addons:
apt:
packages:
- oracle-java9-installer
env: JDK=9
- jdk: openjdk7
- env: JDK=11
branches:
only:
- master
......@@ -9,7 +9,7 @@
<parent>
<groupId>cglib</groupId>
<artifactId>cglib-parent</artifactId>
<version>3.2.10</version>
<version>3.2.12</version>
</parent>
<!-- ====================================================================== -->
......
......@@ -7,7 +7,7 @@
<parent>
<artifactId>cglib-parent</artifactId>
<groupId>cglib</groupId>
<version>3.2.10</version>
<version>3.2.12</version>
</parent>
<modelVersion>4.0.0</modelVersion>
......
......@@ -9,7 +9,7 @@
<parent>
<groupId>cglib</groupId>
<artifactId>cglib-parent</artifactId>
<version>3.2.10</version>
<version>3.2.12</version>
</parent>
<!-- ====================================================================== -->
......@@ -23,6 +23,17 @@
<!-- ====================================================================== -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>net.sf.cglib</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>jarjar-maven-plugin</artifactId>
......
......@@ -9,7 +9,7 @@
<parent>
<groupId>cglib</groupId>
<artifactId>cglib-parent</artifactId>
<version>3.2.10</version>
<version>3.2.12</version>
</parent>
<!-- ====================================================================== -->
......
......@@ -9,7 +9,7 @@
<parent>
<groupId>cglib</groupId>
<artifactId>cglib-parent</artifactId>
<version>3.2.10</version>
<version>3.2.12</version>
</parent>
<!-- ====================================================================== -->
......@@ -64,6 +64,7 @@
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<optional>true</optional>
</dependency>
<dependency>
......
......@@ -849,10 +849,10 @@ public class CodeEmitter extends LocalVariablesSorter {
Signature sig = method.getSignature();
if (sig.getName().equals(Constants.CONSTRUCTOR_NAME)) {
invoke_constructor(type, sig);
} else if (TypeUtils.isInterface(classInfo.getModifiers())) {
invoke_interface(type, sig);
} else if (TypeUtils.isStatic(method.getModifiers())) {
invoke_static(type, sig);
} else if (TypeUtils.isInterface(classInfo.getModifiers())) {
invoke_interface(type, sig);
} else {
invoke_virtual(virtualType, sig);
}
......
......@@ -14,7 +14,7 @@
<!-- ====================================================================== -->
<groupId>cglib</groupId>
<artifactId>cglib-parent</artifactId>
<version>3.2.10</version>
<version>3.2.12</version>
<packaging>pom</packaging>
<name>Code Generation Library</name>
......@@ -54,7 +54,7 @@
<java.version.source>1.5</java.version.source>
<java.version.target>1.5</java.version.target>
<asm.version>7.0</asm.version>
<asm.version>7.1</asm.version>
<ant.version>1.10.3</ant.version>
<jmh.version>1.21</jmh.version>
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
......@@ -232,7 +232,6 @@
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>${ant.version}</version>
<optional>true</optional>
</dependency>
<dependency>
......