36 lines
690 B
Groovy
36 lines
690 B
Groovy
|
plugins {
|
||
|
id 'java'
|
||
|
id 'war'
|
||
|
}
|
||
|
|
||
|
group 'ru.erius'
|
||
|
version '1.0'
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
ext {
|
||
|
junitVersion = '5.8.2'
|
||
|
}
|
||
|
|
||
|
sourceCompatibility = '1.8'
|
||
|
targetCompatibility = '1.8'
|
||
|
|
||
|
tasks.withType(JavaCompile) {
|
||
|
options.encoding = 'UTF-8'
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
compileOnly('javax.persistence:javax.persistence-api:2.2')
|
||
|
compileOnly('javax.faces:javax.faces-api:2.3')
|
||
|
compileOnly('javax.enterprise:cdi-api:2.0.SP1')
|
||
|
compileOnly('org.primefaces:primefaces:11.0.0')
|
||
|
|
||
|
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
|
||
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
|
||
|
}
|
||
|
|
||
|
test {
|
||
|
useJUnitPlatform()
|
||
|
}
|