proglab3/build.gradle

43 lines
693 B
Groovy
Raw Normal View History

2021-11-23 22:57:03 +00:00
plugins {
id 'java'
}
group 'ru.erius'
version '1.1'
def main_class = group + '.lab3.Lab3'
def dest = file('../Lab4/libs')
jar {
manifest {
attributes(
'Manifest-Version': '1.0',
'Main-Class': main_class
)
}
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
useJUnitPlatform()
}
task deploy(type: Copy) {
from 'build/libs'
into '../Lab4/libs'
include '*.jar'
}