buildscript { repositories { mavenCentral() } dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:5.0.0' } } plugins { id 'java' } group 'cc.sukazyo' version '0.2.0' repositories { mavenCentral() } dependencies { implementation 'com.github.pengrad:java-telegram-bot-api:5.3.0' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' } test { useJUnitPlatform() } tasks.withType(JavaCompile) { options.encoding = "UTF-8" } tasks.withType(Javadoc) { options.encoding = 'UTF-8' options.docEncoding = 'UTF-8' options.charSet = 'UTF-8' } tasks.test { useJUnitPlatform() } apply plugin: 'com.github.johnrengelman.shadow' apply plugin: 'application' shadowJar { mainClassName = 'cc.sukazyo.cono.morny.MornyCoeur' archiveBaseName.set("Morny_Coeur") archiveVersion.set(version) }