dependencies

Base64 dependencies issue in Android Studio

≯℡__Kan透↙ 提交于 2019-12-10 15:06:19
问题 We're using Android Studio 0.6.1 with Gradle plugin 0.11.+ in our current project, and we're running into a dependency issue with commons-codec . We're pulling in a dependency class from our local Artifactory instance that contains a "crypto" service that uses the following two lines of code: byte[] encryptedOutput = cipherFactory.getEncryptCipher().doFinal(plaintext.getBytes()); byte[] encryptedCipherText = Base64.encodeBase64URLSafe(encryptedOutput); The problem is that even if we define a

Gradle dependency json-simple error

心已入冬 提交于 2019-12-10 14:53:23
问题 I'm fairly new to Gradle so I'm trying to build a Java project and not sure about the dependencies. I have never gotten Gradle configured to be able to do my tests or now a jar file to compile and run. My build.gradle : apply plugin: 'java' apply plugin: 'maven' repositories { jcenter() } dependencies { compile 'org.slf4j:slf4j-api:1.7.25' compile 'org.json:json:20160212' testCompile 'junit:junit:4.12' } And this is what I get on the console stating that it doesn't see my import: error:

Conditionally installing importlib on python2.6

拈花ヽ惹草 提交于 2019-12-10 14:42:34
问题 I have a python library that has a dependency on importlib . importlib is in the standard library in Python 2.7, but is a third-party package for older pythons. I typically keep my dependencies in a pip-style requirements.txt. Of course, if I put importlib in here, it will fail if installed on 2.7. How can I conditionally install importlib only if it's not available in the standard lib? 回答1: I don't think this is possible with pip and a single requirements file. I can think of two options I'd

How to put maven zip dependency on classpath for Java tests

别说谁变了你拦得住时间么 提交于 2019-12-10 14:14:18
问题 I have a Java project entirely consisting of junit/integration tests which is managed by maven. One of the dependencies is a zip archive, the contents of which I would like to be available on the classpath when the tests are run. Since maven does not put the content of a zip dependency on the classpath I have had to come up with what I consider to be a hacky workaround. I unpack the zip archive to a temp directory then copy one of the resulting directories into the /test-classes folder. I

How to handle dependencies when using git topic branch workflow?

柔情痞子 提交于 2019-12-10 14:11:31
问题 In our project we try to stay close to the "official" git workflow as it is suggested here: http://www.kernel.org/pub/software/scm/git/docs/gitworkflows.html We use a master and next branch, start our topic branches off from master , regularly do test integration into next , and if a branch is complete, we merge it into master . Now sometimes it happens, that there's some development on topic-X . A developer creates somefile.c and adds code there that he needs for his topic. After a while

Keep specific dependencies order for Android Studio

折月煮酒 提交于 2019-12-10 13:43:20
问题 I'm trying to run unit tests with Robolectric in Android Studio. I'm almost there - I see: !!! JUnit version 3.8 or later expected: java.lang.RuntimeException: Stub! at junit.runner.BaseTestRunner.<init>(BaseTestRunner.java:5) at junit.textui.TestRunner.<init>(TestRunner.java:54) at junit.textui.TestRunner.<init>(TestRunner.java:48) at junit.textui.TestRunner.<init>(TestRunner.java:41) at com.intellij.rt.execution.junit.JUnitStarter.junitVersionChecks(JUnitStarter.java:185) ... I see also all

Which jars exactly are needed to embed Neo4j?

僤鯓⒐⒋嵵緔 提交于 2019-12-10 13:31:13
问题 EDIT This question is not about how to solve dependencies using Ant / Maven / Gradle or whatnots. I'm trying to use Neo4j and I'm a bit confused by the docs as to what I need to embed a very simple "Hello, world!" Neo4j example in an app. I've read in several places that Neo4j was lightweight and that only one (and now two) jars where needed. For example here: http://highscalability.com/neo4j-graph-database-kicks-buttox we can read: "Small footprint. Neo4j is a single <500k jar with one

Two objects with dependencies for each other. Is that bad?

微笑、不失礼 提交于 2019-12-10 12:58:22
问题 I am learning a lot about design patterns when I am building my own system for my projects. And I want to ask you about a design question that I can't find an answer to. Currently I am building a little Chat-server using sockets, with multiple Clients. Right now I have three classes: Person-class which holds information like nick, age and a Room-object. Room-class which holds information like room-name, topic and a list of Persons currently in that room. Hotel-class which have a list of

The POM for org.springframework.security:org.springframework.security.web:jar:3.0.5.RELEASE is missing, no dependency information available

偶尔善良 提交于 2019-12-10 12:57:02
问题 When including into pom.xml <dependency> <groupId>org.springframework.security</groupId> <artifactId>org.springframework.security.web</artifactId> <version>3.0.5.RELEASE</version> </dependency> with repositories <repository> <id>com.springsource.repository.bundles.milestone</id> <name>EBR Spring Milestone Repository</name> <url>http://repository.springsource.com/maven/bundles/milestone</url> </repository> <repository> <id>org.springframework.maven.milestone</id> <name>Maven Central Compatible

How to exclude a Maven test-scoped dependency from Eclipse (but keep it in the path for unit tests)

邮差的信 提交于 2019-12-10 12:45:54
问题 I am having some problems getting Eclipse to honour a test-scoped Maven dependency - it is showing up on the build path and messing with eclipse's compilation / javadoc resolution. An example with Java EE libs I have been using the javaee-api-6.0 library to compile my Java EE application against. However, for unit testing purposes, I wanted to have access to more than just the api - I needed an implementation. So I included the embedded glassfish libs with a test scope like so: <repositories>