Reputation: 760
I'm using Neo4J in a Grails project.
It comes with a test class (http://neo4j.com/docs/2.1.5/tutorials-java-unit-testing.html):
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-kernel</artifactId>
<version>2.1.5</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
In the Grails BuildConfig.groovy I'm not having any luck specifying that dependency:
dependencies {
...
test group: 'org.neo4j',
name: 'neo4j-kernel',
type: 'test-jar',
version: '2.1.5'
...
}
It's ignoring the type property:
Test.142=/Users/me/.m2/repository/org/neo4j/neo4j-kernel/2.1.5/neo4j-kernel-2.1.5.jar
I can't find anything in the grails or Aether docs to suggest how I incorporate the <type/>.
Can it be done?
Upvotes: 0
Views: 218
Reputation: 39925
you need to use the classifier
for this:
test group:"org.neo4j",
name:"neo4j-kernel",
version: "2.1.5",
classifier:"tests"
Upvotes: 4