37 lines
737 B
Groovy
37 lines
737 B
Groovy
|
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
|
||
|
// implementation 'com.google.code.gson:gson:2.8.6'
|
||
|
|
||
|
// implementation 'org.hibernate:hibernate-core:5.4.30.Final'
|
||
|
// implementation 'mysql:mysql-connector-java:8.0.24'
|
||
|
|
||
|
// Pour les tests
|
||
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
||
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
|
||
|
}
|
||
|
|
||
|
test {
|
||
|
useJUnitPlatform()
|
||
|
}
|