29 lines
492 B
Groovy
29 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'
|
||
|
}
|