2022-04-13 20:08:19 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'war'
|
|
|
|
id "org.wildfly.build.provision" version "0.0.11"
|
|
|
|
}
|
|
|
|
|
|
|
|
provision {
|
|
|
|
variables['wildfly.version'] = '11.0.0.Final'
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
war {
|
|
|
|
archiveName 'backend.war'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// Pour pouvoir faire l'API REST
|
|
|
|
compileOnly 'javax:javaee-api:8.0.1'
|
|
|
|
|
|
|
|
// Pour pouvoir parser le JSON
|
2022-04-14 07:53:29 +00:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.6'
|
2022-04-13 20:08:19 +00:00
|
|
|
|
2022-04-21 13:35:45 +00:00
|
|
|
implementation 'org.hibernate:hibernate-core:5.4.30.Final'
|
|
|
|
implementation 'mysql:mysql-connector-java:8.0.24'
|
2022-04-21 07:08:45 +00:00
|
|
|
|
|
|
|
// des fonctions pratiques
|
|
|
|
implementation 'org.apache.commons:commons-lang3:3.0'
|
2022-04-13 20:08:19 +00:00
|
|
|
|
|
|
|
// Pour les tests
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
|
2022-04-21 07:25:39 +00:00
|
|
|
|
|
|
|
// pour des getters/setters auto
|
|
|
|
compileOnly 'org.projectlombok:lombok:1.18.24'
|
|
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.24'
|
|
|
|
|
|
|
|
testCompileOnly 'org.projectlombok:lombok:1.18.24'
|
|
|
|
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
|
2022-04-13 20:08:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|