proglab2/build.gradle

29 lines
492 B
Groovy
Raw Permalink Normal View History

2021-10-21 18:54:49 +00:00
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'
}