mirror of
https://github.com/halo-dev/plugin-starter.git
synced 2025-10-14 15:11:52 +00:00
52 lines
1.3 KiB
Groovy
52 lines
1.3 KiB
Groovy
plugins {
|
|
id 'org.springframework.boot' version '3.0.0-M3'
|
|
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
|
|
id 'java'
|
|
}
|
|
|
|
group 'io.github.guqing'
|
|
version '0.0.1-SNAPSHOT'
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
repositories {
|
|
maven {url 'https://s01.oss.sonatype.org/content/repositories/snapshots'}
|
|
maven { url 'https://repo.spring.io/milestone' }
|
|
mavenCentral()
|
|
}
|
|
|
|
bootJar {
|
|
enabled = false
|
|
}
|
|
|
|
jar {
|
|
enabled = true
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
manifest.attributes(
|
|
'Plugin-Version': "${project.version}",
|
|
)
|
|
from {
|
|
configurations.runtimeClasspath.collect {
|
|
it.isDirectory() ? it : zipTree(it)
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'io.github.guqing:pluggable-suite:0.0.1-SNAPSHOT'
|
|
compileOnly "io.swagger.core.v3:swagger-core-jakarta:2.2.0"
|
|
compileOnly 'org.springframework.boot:spring-boot-starter-webflux'
|
|
annotationProcessor 'io.github.guqing:pluggable-suite:0.0.1-SNAPSHOT'
|
|
|
|
compileOnly files("lib/halo-2.0.0-SNAPSHOT-plain.jar")
|
|
|
|
compileOnly 'org.projectlombok:lombok'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|