Skip to content

Commit

Permalink
Update build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
kosaka-bun committed Dec 10, 2024
1 parent 89d778e commit ee787d8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ subprojects {
kotlin(rootProject)
//仅用于避免libs.versions.toml中产生version变量未使用的提示
libs.versions.kotlin.coroutines
compileOnly(libs.lombok.also {
libs.lombok.let {
compileOnly(it)
annotationProcessor(it)
testCompileOnly(it)
testAnnotationProcessor(it)
})
}
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
}
Expand Down
11 changes: 6 additions & 5 deletions qqrobot-spring-boot-starter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,21 @@ dependencyManagement {
}

dependencies {
implementationApi("de.honoka.sdk:honoka-spring-boot-starter:1.0.1-dev")
implementationApi("de.honoka.qqrobot:qqrobot-framework-api:2.0.0")
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-aop")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-websocket")
implementation("org.springframework.boot:spring-boot-configuration-processor".also {
annotationProcessor(it)
})
implementationApi("de.honoka.sdk:honoka-spring-boot-starter:1.0.1-dev")
implementationApi("de.honoka.qqrobot:qqrobot-framework-api:2.0.0")
compileOnly(libs.mirai.core)
compileOnly(libs.mirai.console.compiler.annotations)
implementation("com.github.houbb:opencc4j:1.6.0")
implementation("org.hibernate.validator:hibernate-validator")
implementation("com.h2database:h2:2.1.214")
"org.springframework.boot:spring-boot-configuration-processor".let {
implementation(it)
annotationProcessor(it)
}
}

tasks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ class RobotApplicationRunner(
}

fun bootFramework() {
if(basicProperties.isAutoBoot) framework.boot()
if(!basicProperties.isAutoBoot) return
runCatching {
framework.boot()
}.onFailure {
framework.stop()
throw it
}
}
}

0 comments on commit ee787d8

Please sign in to comment.