forked from danielkv7/jpa-basico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
41 lines (29 loc) · 1.52 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
plugins {
id 'java'
}
group 'org.example'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
// ======= Necessarios para a parte 1 do curso. =========
// Notar que essa API nao faz o programa rodar, apenas valida as annotations (pois sao so as especificacoes)
// https://mvnrepository.com/artifact/javax.persistence/javax.persistence-api
//compile group: 'javax.persistence', name: 'javax.persistence-api', version: '2.2'
// Drive JDBC que sera utilizado pelos frameworks que implementam o JPA
// https://mvnrepository.com/artifact/mysql/mysql-connector-java
implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.30+'
// === Necessarios para a parte 2 do curso. Essas sao as implementacoes do JPA (Hibernate e EclipseLink) e o automatizador de criacao de Metamodels ===
// Implementacao Hibernate
// https://mvnrepository.com/artifact/org.hibernate/hibernate-core
implementation group: 'org.hibernate', name: 'hibernate-core', version: '6.1.2.Final+'
// Implementacao EclipseLink
// https://mvnrepository.com/artifact/org.eclipse.persistence/eclipselink
//compile group: 'org.eclipse.persistence', name: 'eclipselink', version: '2.7.6'
// Automatizador de criacao de Metamodels
// https://mvnrepository.com/artifact/org.hibernate/hibernate-jpamodelgen
annotationProcessor('org.hibernate:hibernate-jpamodelgen:6.1.2.Final+')
testImplementation group: 'junit', name: 'junit', version: '4.13.2+'
}