2021-11-09 17:33:56 +08:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:5.0.0'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-07 20:50:59 +08:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
}
|
|
|
|
|
|
|
|
group 'cc.sukazyo'
|
2021-11-09 17:27:11 +08:00
|
|
|
version '0.2.0'
|
2021-10-07 20:50:59 +08:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-11-06 20:43:56 +08:00
|
|
|
|
|
|
|
implementation 'com.github.pengrad:java-telegram-bot-api:5.3.0'
|
|
|
|
|
2021-10-07 20:50:59 +08:00
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
|
2021-11-06 20:43:56 +08:00
|
|
|
|
2021-10-07 20:50:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2021-11-09 17:33:56 +08:00
|
|
|
|
|
|
|
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)
|
|
|
|
}
|