pl-sem/sem3/task-custom-make/Lab2/build.gradle
2023-08-18 01:08:53 +03:00

28 lines
492 B
Groovy

plugins {
id 'java'
}
group 'ru.erius'
version '1.0'
def pokemon = files('libs/Pokemon.jar')
def main_class = group + '.lab2.Lab2'
dependencies {
implementation pokemon
}
jar {
manifest {
attributes 'Manifest-Version': '1.0', 'Main-Class': main_class
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}