mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2024-11-25 20:47:38 +08:00
56 lines
896 B
Groovy
56 lines
896 B
Groovy
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)
|
|
}
|