Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade dependencies #545

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision :shell, inline: "apt-get update && apt-get install openjdk-8-jdk maven make gcc-4.7 gcc-4.7-plugin-dev gfortran-4.7 g++-4.7 gcc-4.7.multilib g++-4.7-multilib unzip libz-dev -y"
config.vm.synced_folder ".", "/home/ubuntu/renjin"

# So we can do ./gradlew publishToMavenLocal and also save some disk space
config.vm.synced_folder "~/.m2", "/home/vagrant/.m2"

config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
Expand Down
6 changes: 3 additions & 3 deletions appengine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ apply from: "../gradle/maven.gradle"

dependencies {
compile project(':script-engine')
compileOnly 'javax.servlet:javax.servlet-api:3.0.1'
testCompile 'org.easymock:easymock:3.3'
testCompile 'javax.servlet:javax.servlet-api:3.0.1'
compileOnly 'javax.servlet:javax.servlet-api:4.0.1'
testCompile 'org.easymock:easymock:4.3'
testCompile 'javax.servlet:javax.servlet-api:4.0.1'

}
4 changes: 2 additions & 2 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ dependencies {
compile 'org.apache.commons:commons-math:2.2'
compile 'com.github.fommil.netlib:core:1.1.2'
compile 'org.apache.commons:commons-vfs2:2.0'
compile 'org.apache.commons:commons-compress:1.18'
compile 'org.tukaani:xz:1.8'
compile 'org.apache.commons:commons-compress:1.21'
compile 'org.tukaani:xz:1.9'

compile libraries.asm
compile libraries.guava
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/org/renjin/primitives/files/Files.java
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public static String dirname(String path) {
* @return true if the operation succeeded for each of the files attempted.
* Using a missing value for a path name will always be regarded as a failure.
* returns false if the directory already exists
* @throws FileSystemException
* @throws FileSystemException if FileObject.createFolder failed
*/
@Internal("dir.create")
public static SEXP dirCreate(@Current Context context, String path, boolean showWarnings, boolean recursive, int mode) throws FileSystemException {
Expand All @@ -395,7 +395,7 @@ public static SEXP dirCreate(@Current Context context, String path, boolean show
* Checks if input directory exists.

* @param context the current call Context
* @param paths character vectors containing file or directory paths.
* @param uri character vectors containing file or directory paths.
* Tilde expansion (see ‘path.expand’) is done.
* @return true if the operation succeeded for each of the directory attempted.
* Using a missing value for a path name will always be regarded as a failure.
Expand Down
8 changes: 4 additions & 4 deletions gradle/libraries.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ ext {
asm: "org.renjin:renjin-asm:5.0.4b",
airline: 'io.airlift:airline:0.9',
slf4j: [
api: 'org.slf4j:slf4j-api:1.6.1',
impl: 'org.slf4j:slf4j-jdk14:1.6.1'
api: 'org.slf4j:slf4j-api:1.7.35',
impl: 'org.slf4j:slf4j-jdk14:1.7.35'
],

junit: 'junit:junit:4.13.1',
junit: 'junit:junit:4.13.2',
hamcrest: 'org.hamcrest:hamcrest-library:1.3',
easymock: 'org.easymock:easymock:3.1'
easymock: 'org.easymock:easymock:4.3'
]
}

2 changes: 1 addition & 1 deletion packages/grDevices/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
compile project(':core')
compile project(':tools:gnur-runtime')

compile 'org.jfree:jfreesvg:3.3'
compile 'org.jfree:jfreesvg:3.4.2'

testCompile project(':packages:hamcrest')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static Ptr newDevice(Ptr deviceClassPtr, SEXP deviceOptions) {

String deviceClassName = Stdlib.nullTerminatedString(deviceClassPtr);

Class deviceClass;
Class<?> deviceClass;
try {
deviceClass = Class.forName(deviceClassName);
} catch (ClassNotFoundException e) {
Expand All @@ -53,7 +53,7 @@ public static Ptr newDevice(Ptr deviceClassPtr, SEXP deviceOptions) {

GraphicsDevice device;
try {
Constructor constructor = deviceClass.getConstructor(Session.class, ListVector.class);
Constructor<?> constructor = deviceClass.getConstructor(Session.class, ListVector.class);
Session session = Native.currentContext().getSession();
device = (GraphicsDevice) constructor.newInstance(session, deviceOptions);
} catch (Exception e) {
Expand Down
8 changes: 4 additions & 4 deletions tools/aether-package-loader/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

def aetherVersion = "1.0.2.v20150114"
def mavenVersion = "3.1.0"
def wagonVersion = "1.0"
def aetherVersion = "1.1.0"
def mavenVersion = "3.3.9"

dependencies {
compile project(":core")
Expand All @@ -14,5 +13,6 @@ dependencies {
compile "org.eclipse.aether:aether-transport-http:${aetherVersion}"
compile "org.apache.maven:maven-aether-provider:${mavenVersion}"
compile "org.apache.maven:maven-settings-builder:${mavenVersion}"
compile "org.json:json:20180130"
compile "org.eclipse.sisu:org.eclipse.sisu.plexus:0.3.5"
compile "org.json:json:20211205"
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@
public class MavenSettingsDecrypter implements SettingsDecrypter {

// Copied from Maven as there was no constructor to set the security Dispatcher

private SecDispatcher securityDispatcher = new MavenSecDispatcher();

private final SecDispatcher securityDispatcher = new MavenSecDispatcher();

public SettingsDecryptionResult decrypt(SettingsDecryptionRequest request) {
List<SettingsProblem> problems = new ArrayList<SettingsProblem>();
List<SettingsProblem> problems = new ArrayList<>();

List<Server> servers = new ArrayList<Server>();
List<Server> servers = new ArrayList<>();

for (Server server : request.getServers()) {
server = server.clone();
Expand All @@ -64,7 +62,7 @@ public SettingsDecryptionResult decrypt(SettingsDecryptionRequest request) {
}
}

List<Proxy> proxies = new ArrayList<Proxy>();
List<Proxy> proxies = new ArrayList<>();

for (Proxy proxy : request.getProxies()) {
proxy = proxy.clone();
Expand Down Expand Up @@ -97,9 +95,9 @@ class DefaultSettingsDecryptionResult
private List<SettingsProblem> problems;

public DefaultSettingsDecryptionResult(List<Server> servers, List<Proxy> proxies, List<SettingsProblem> problems) {
this.servers = (servers != null) ? servers : new ArrayList<Server>();
this.proxies = (proxies != null) ? proxies : new ArrayList<Proxy>();
this.problems = (problems != null) ? problems : new ArrayList<SettingsProblem>();
this.servers = (servers != null) ? servers : new ArrayList<>();
this.proxies = (proxies != null) ? proxies : new ArrayList<>();
this.problems = (problems != null) ? problems : new ArrayList<>();
}

public Server getServer() {
Expand Down
4 changes: 2 additions & 2 deletions tools/gcc-bridge/compiler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ dependencies {
compile project(':tools:gcc-bridge:runtime')
compile libraries.guava
compile libraries.asm
compile 'com.fasterxml.jackson.core:jackson-databind:2.8.11.1'
compile('org.soot-oss:soot:4.2.1') {
compile 'com.fasterxml.jackson.core:jackson-databind:2.13.1'
compile('org.soot-oss:soot:4.3.0') {
exclude group: 'org.smali', module: 'dexlib2'
}
implementation libraries.airline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ private String findClasspath() {
paths.add(url.toString());
}
}
return paths.stream().collect(Collectors.joining(":"));
return String.join(":", paths);
}


Expand Down
6 changes: 3 additions & 3 deletions tools/gcc-bridge/maven-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@


dependencies {
compile 'org.apache.maven:maven-plugin-api:2.0'
compile 'org.apache.maven:maven-plugin-api:3.3.9'
compile 'org.apache.maven:maven-project:2.2.1'
compileOnly 'org.apache.maven.plugin-tools:maven-plugin-annotations:3.4'
compile 'org.codehaus.plexus:plexus-compiler-api:${plexusCompilerVersion}'
compileOnly 'org.apache.maven.plugin-tools:maven-plugin-annotations:3.6.4'
compile 'org.codehaus.plexus:plexus-compiler-api:2.9.0'
compile 'org.renjin:gcc-bridge-compiler:${project.version}'
testCompile libraries.junit
}
2 changes: 1 addition & 1 deletion tools/gcc-bridge/maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion tools/gnur-compiler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

dependencies {
compile libraries.guava
compile 'com.google.code.findbugs:jsr305:3.0.0'
compile 'com.google.code.findbugs:jsr305:3.0.2'
compile project(':tools:gnur-runtime')
compile project(':tools:gcc-bridge:gcc-bridge-compiler')
compile libraries.airline
Expand Down
10 changes: 5 additions & 5 deletions tools/maven-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ dependencies {
compile project(':tools:gnur-compiler')
compile project(':tools:packager')

compile 'org.apache.maven:maven-plugin-api:2.0'
compile 'org.apache.maven:maven-model:2.0'
compile 'org.apache.maven:maven-plugin-api:3.3.9'
compile 'org.apache.maven:maven-model:3.3.9'
compile 'org.apache.maven:maven-project:2.2.1'
compile 'org.apache.maven.surefire:surefire-api:2.13'
compile 'org.apache.maven:maven-core:3.0.4'
compileOnly 'org.apache.maven.plugin-tools:maven-plugin-annotations:3.4'
compile 'org.apache.maven.surefire:surefire-api:2.22.2'
compile 'org.apache.maven:maven-core:3.3.9'
compile 'org.apache.maven.plugin-tools:maven-plugin-annotations:3.6.4'

testCompile libraries.junit
}
Expand Down
14 changes: 7 additions & 7 deletions tools/maven-plugin/src/main/resources/META-INF/maven/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,13 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<type>jar</type>
<version>1.18</version>
<version>1.21</version>
</dependency>
<dependency>
<groupId>org.tukaani</groupId>
<artifactId>xz</artifactId>
<type>jar</type>
<version>1.8</version>
<version>1.9</version>
</dependency>
<dependency>
<groupId>org.renjin</groupId>
Expand Down Expand Up @@ -486,19 +486,19 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<type>jar</type>
<version>2.8.11.1</version>
<version>2.13.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<type>jar</type>
<version>2.8.0</version>
<version>2.13.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<type>jar</type>
<version>2.8.10</version>
<version>2.13.1</version>
</dependency>
<dependency>
<groupId>io.airlift</groupId>
Expand Down Expand Up @@ -570,13 +570,13 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<type>jar</type>
<version>1.7.5</version>
<version>1.7.35</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<type>jar</type>
<version>1.7.5</version>
<version>1.7.35</version>
</dependency>
<dependency>
<groupId>org.renjin</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ private String getCurrentClassPath() {

private File testFile(String name) {
URL resource = Resources.getResource(name);
return new File(resource.getFile());
File file = new File(resource.getFile());
assertTrue(name + " does not exist", file.exists());
return file;
}

public void assertTestCaseSucceeded(File file, boolean expectSuccess) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ public void fileComplete() {


private void printResultsBanner(PrintStream out) {
out.println(format("Tests run: %d, Failures: %d, Errors: %d, Skipped: %d, Time elapsed: %.3f %s",
out.printf("Tests run: %d, Failures: %d, Errors: %d, Skipped: %d, Time elapsed: %.3f %s%n",
currentSuite.getResults().size(),
currentSuite.countOutcomes(TestOutcome.FAILURE),
currentSuite.countOutcomes(TestOutcome.ERROR),
currentSuite.countOutcomes(TestOutcome.SKIPPED),
currentSuite.getTime(),
currentSuite.hasFailures() ? " << FAILURE!" : ""));
currentSuite.hasFailures() ? " << FAILURE!" : "");
}

public void testCaseStarting(String name) {
Expand All @@ -105,14 +105,19 @@ public void testCaseStarting(String name) {


public void timeout(long timeoutLengthMs) {
if (currentCase == null) {
System.err.println("currentCase is null, testCaseStarting was not called before timeout");
testCaseStarting("unknown");
}

currentCase.setOutcome(TestOutcome.ERROR);
currentCase.setErrorMessage("Timed out after " + timeoutLengthMs + " ms");
if (currentCase.isRootScript()) {
System.err.println(format("Evaluation of %s timed out", currentSuite.getScriptFile().getName()));
System.err.printf("Evaluation of %s timed out%n", currentSuite.getScriptFile().getName());
} else {
System.err.println(format("%s() in %s timed out",
System.err.printf("%s() in %s timed out%n",
currentCase.getName(),
currentSuite.getScriptFile().getName()));
currentSuite.getScriptFile().getName());
}
functionComplete();
}
Expand All @@ -130,12 +135,12 @@ public void testCaseFailed(String message) {
currentCase.setErrorMessage(message);
currentCase.setOutcome(TestOutcome.ERROR);
if(currentCase.isRootScript()) {
System.err.println(format("Evaluation of %s failed",
currentSuite.getScriptFile().getName()));
System.err.printf("Evaluation of %s failed%n",
currentSuite.getScriptFile().getName());
} else {
System.err.println(format("%s() in %s failed",
System.err.printf("%s() in %s failed%n",
currentCase.getName(),
currentSuite.getScriptFile().getName()));
currentSuite.getScriptFile().getName());
}
functionComplete();
}
Expand Down