Skip to content

Commit

Permalink
fix: 排除 jaskson 依赖,解决报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LIlGG committed Oct 10, 2023
1 parent 72d345c commit a89b55c
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "io.freefair.lombok" version "8.0.0-rc2"
id "io.github.guqing.plugin-development" version "0.0.8-SNAPSHOT"
id "io.freefair.lombok" version "8.0.1"
id "run.halo.plugin.devtools" version "0.0.7"
id 'java'
}

Expand All @@ -12,23 +12,16 @@ repositories {
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}

jar {
enabled = true
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest.attributes(
'Plugin-Version': "${project.version}",
)
from {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
configurations.runtimeClasspath {
exclude group: 'com.fasterxml.jackson.core'
}

dependencies {
implementation 'com.theokanning.openai-gpt3-java:service:0.12.0'
implementation ('com.theokanning.openai-gpt3-java:service:0.12.0')

implementation platform('run.halo.tools.platform:plugin:2.9.0-SNAPSHOT')


implementation platform('run.halo.tools.platform:plugin:2.5.0-SNAPSHOT')
compileOnly 'run.halo.app:api'

testImplementation 'run.halo.app:api'
Expand All @@ -39,7 +32,15 @@ test {
useJUnitPlatform()
}

halo {
version = '2.10.0'
port = 8092
superAdminUsername = 'admin'
superAdminPassword = 'admin'
externalUrl = 'http://localhost:8092'
}

build {
// build frontend before build
tasks.getByName('compileJava')
}
}

0 comments on commit a89b55c

Please sign in to comment.