因此,我尝试使用github从heroku上线我的discord机器人(jda/gradle),它正在部署,但没有上线。我使用heroku logs -a APP检查了日志,它给出了很多关于导入的错误,我的理解是它没有使用jda/gradle库,这是我的build.gradle
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '7.0.0' }
mainClassName = 'com.xlol.testbot.TestBot'
group 'com.xlol' version '1.0'
sourceCompatibility = 16
repositories {
mavenCentral()
jcenter()
maven {
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
} }
task stage(dependsOn: ['build', 'clean']) build.mustRunAfter clean
dependencies {
implementation group: 'me.duncte123', name: 'botCommons', version: '1.0.45'
implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
implementation 'net.dv8tion:JDA:4.3.0_324'
implementation 'io.github.cdimascio:java-dotenv:5.1.1'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3' }
compileJava.options.encoding = 'UTF-8'发布于 2021-11-11 08:57:44
这个awnser似乎在Heroku java app won't stay online for more than 90 seconds中得到了解决。如果你设法解决了这个问题,请关闭这篇文章。
https://stackoverflow.com/questions/69618729
复制相似问题