2022-03-04 07:04:11 +00:00
|
|
|
plugins {
|
2022-07-22 03:13:50 +00:00
|
|
|
id 'org.springframework.boot' version '3.0.0-M4'
|
|
|
|
id 'io.spring.dependency-management' version '1.0.12.RELEASE'
|
2022-03-04 07:04:11 +00:00
|
|
|
id "checkstyle"
|
|
|
|
id 'java'
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "run.halo.app"
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
|
|
|
checkstyle {
|
|
|
|
toolVersion = "9.3"
|
|
|
|
showViolations = false
|
|
|
|
ignoreFailures = false
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven { url 'https://maven.aliyun.com/repository/public/' }
|
|
|
|
maven { url 'https://maven.aliyun.com/repository/spring/' }
|
|
|
|
maven { url 'https://repo.spring.io/milestone' }
|
2022-06-07 02:20:12 +00:00
|
|
|
|
2022-03-04 07:04:11 +00:00
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
2022-06-07 02:20:12 +00:00
|
|
|
|
2022-03-04 07:04:11 +00:00
|
|
|
}
|
|
|
|
|
2022-06-07 02:20:12 +00:00
|
|
|
|
2022-03-04 07:04:11 +00:00
|
|
|
configurations {
|
|
|
|
implementation {
|
|
|
|
exclude module: "spring-boot-starter-tomcat"
|
|
|
|
exclude module: "slf4j-log4j12"
|
|
|
|
exclude module: 'junit'
|
|
|
|
}
|
|
|
|
compileOnly {
|
|
|
|
extendsFrom annotationProcessor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bootJar {
|
|
|
|
manifest {
|
|
|
|
attributes "Implementation-Title": "Halo Application",
|
|
|
|
"Implementation-Version": archiveVersion
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ext['h2.version'] = '2.1.210'
|
2022-04-13 11:38:34 +00:00
|
|
|
ext {
|
|
|
|
commonsLang3 = "3.12.0"
|
2022-05-27 06:26:37 +00:00
|
|
|
base62 = "0.1.3"
|
2022-05-31 04:06:10 +00:00
|
|
|
pf4j = "3.6.0"
|
2022-04-13 11:38:34 +00:00
|
|
|
}
|
2022-03-04 07:04:11 +00:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-mail'
|
2022-06-07 02:20:12 +00:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-webflux'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
|
|
|
|
|
|
// Spring Security
|
2022-03-04 07:04:11 +00:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
2022-04-13 09:08:34 +00:00
|
|
|
implementation 'org.springframework.security:spring-security-oauth2-jose'
|
2022-06-07 02:20:12 +00:00
|
|
|
implementation 'org.springframework.security:spring-security-oauth2-resource-server'
|
2022-05-11 08:06:11 +00:00
|
|
|
|
2022-06-07 02:20:12 +00:00
|
|
|
implementation 'org.springdoc:springdoc-openapi-starter-webflux-ui:2.0.0-M3'
|
2022-08-03 03:34:14 +00:00
|
|
|
implementation 'org.openapi4j:openapi-schema-validator:1.0.7'
|
2022-03-04 07:04:11 +00:00
|
|
|
implementation "org.flywaydb:flyway-core"
|
|
|
|
implementation "org.flywaydb:flyway-mysql"
|
2022-07-22 03:13:50 +00:00
|
|
|
implementation "net.bytebuddy:byte-buddy"
|
2022-04-13 11:38:34 +00:00
|
|
|
|
|
|
|
implementation "org.apache.commons:commons-lang3:$commonsLang3"
|
2022-05-27 06:26:37 +00:00
|
|
|
implementation "io.seruco.encoding:base62:$base62"
|
2022-05-31 04:06:10 +00:00
|
|
|
implementation "org.pf4j:pf4j:$pf4j"
|
2022-08-03 03:34:14 +00:00
|
|
|
|
2022-03-04 07:04:11 +00:00
|
|
|
compileOnly 'org.projectlombok:lombok'
|
2022-07-29 05:22:14 +00:00
|
|
|
testCompileOnly 'org.projectlombok:lombok'
|
2022-03-04 07:04:11 +00:00
|
|
|
|
2022-04-13 09:08:34 +00:00
|
|
|
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
|
|
|
|
|
2022-03-04 07:04:11 +00:00
|
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
|
|
|
|
|
|
runtimeOnly "com.h2database:h2"
|
|
|
|
runtimeOnly 'mysql:mysql-connector-java'
|
|
|
|
runtimeOnly 'org.postgresql:postgresql'
|
|
|
|
|
|
|
|
annotationProcessor 'org.projectlombok:lombok'
|
2022-07-29 05:22:14 +00:00
|
|
|
testAnnotationProcessor 'org.projectlombok:lombok'
|
2022-03-04 07:04:11 +00:00
|
|
|
|
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
2022-06-07 02:20:12 +00:00
|
|
|
testImplementation 'io.projectreactor:reactor-test'
|
2022-03-04 07:04:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named('test') {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|