T C
T C

Reputation: 23

add glassfish javax.persistence to gradle project

i getting this error

% gradle build [ant:javac] Hello.java:2: error: package javax.persistence does not exist Hello.java:2: import javax.persistence.*;

what should i add to gradle.build to include

/opt/glassfish3/glassfish/modules/javax.persistence.jar

thx

Upvotes: 2

Views: 5972

Answers (1)

jspcal
jspcal

Reputation: 51914

Try adding

compile group: 'javax.persistence', name: 'persistence-api', version: '1.0'

to your dependencies.

Upvotes: 5

Related Questions