Skip to content

Commit

Permalink
refactor: update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
guqing committed Dec 1, 2022
1 parent 3dab7ab commit 6185f98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
with:
name: plugin-starter
path: |
build/libs/*-plain.jar
build/libs/*.jar
retention-days: 1

github-release:
Expand Down Expand Up @@ -102,4 +102,4 @@ jobs:
release_id: releaseId,
name: artifactName,
data: await fs.readFile(artifactPathName)
});
});
17 changes: 5 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
plugins {
id 'org.springframework.boot' version '3.0.0-M3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id "com.github.node-gradle.node" version "3.3.0"
id "io.github.guqing.plugin-development" version "0.0.5-SNAPSHOT"
id "io.github.guqing.plugin-development" version "0.0.6-SNAPSHOT"
id 'java'
}

group 'run.halo.starter'
sourceCompatibility = JavaVersion.VERSION_17

repositories {
maven { url 'https://s01.oss.sonatype.org/content/repositories/releases' }
maven { url 'https://repo.spring.io/milestone' }
mavenCentral()
}

bootJar {
enabled = false
}

jar {
enabled = true
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
Expand All @@ -32,14 +27,12 @@ jar {
}

dependencies {
compileOnly "io.swagger.core.v3:swagger-core-jakarta:2.2.0"
compileOnly 'org.springframework.boot:spring-boot-starter-webflux'
compileOnly 'org.pf4j:pf4j:3.6.0'
compileOnly platform("run.halo.dependencies:halo-dependencies:1.0.0")

compileOnly files("lib/halo-2.0.0-SNAPSHOT-plain.jar")

compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
Expand Down

0 comments on commit 6185f98

Please sign in to comment.