2023-03-23 08:02:33 +00:00
|
|
|
plugins {
|
|
|
|
id 'java-library'
|
2023-04-18 06:28:23 +00:00
|
|
|
id 'halo.publish'
|
2023-11-15 07:14:55 +00:00
|
|
|
id 'jacoco'
|
2024-03-15 10:34:07 +00:00
|
|
|
id "io.freefair.lombok"
|
2023-03-23 08:02:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group = 'run.halo.app'
|
|
|
|
description = 'API of halo project, connecting by other projects.'
|
|
|
|
|
2024-03-12 07:44:07 +00:00
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
}
|
|
|
|
|
2023-11-12 04:30:08 +00:00
|
|
|
compileJava.options.encoding = "UTF-8"
|
|
|
|
compileTestJava.options.encoding = "UTF-8"
|
|
|
|
javadoc.options.encoding = "UTF-8"
|
|
|
|
|
2023-03-23 08:02:33 +00:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2023-05-09 04:31:43 +00:00
|
|
|
maven { url 'https://repo.spring.io/milestone' }
|
2023-11-15 03:04:09 +00:00
|
|
|
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
|
2023-03-23 08:02:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
api platform(project(':platform:application'))
|
|
|
|
|
|
|
|
api 'org.springframework.boot:spring-boot-starter-actuator'
|
|
|
|
api 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
|
|
api 'org.springframework.boot:spring-boot-starter-mail'
|
|
|
|
api 'org.springframework.boot:spring-boot-starter-thymeleaf'
|
|
|
|
api 'org.springframework.boot:spring-boot-starter-webflux'
|
|
|
|
api 'org.springframework.boot:spring-boot-starter-validation'
|
|
|
|
api 'org.springframework.boot:spring-boot-starter-data-r2dbc'
|
2024-04-23 07:21:24 +00:00
|
|
|
api 'org.springframework.session:spring-session-core'
|
2023-03-23 08:02:33 +00:00
|
|
|
|
|
|
|
// Spring Security
|
|
|
|
api 'org.springframework.boot:spring-boot-starter-security'
|
|
|
|
api 'org.springframework.security:spring-security-oauth2-jose'
|
|
|
|
api 'org.springframework.security:spring-security-oauth2-client'
|
|
|
|
api 'org.springframework.security:spring-security-oauth2-resource-server'
|
|
|
|
|
2023-06-26 14:38:00 +00:00
|
|
|
// Cache
|
|
|
|
api "org.springframework.boot:spring-boot-starter-cache"
|
|
|
|
api "com.github.ben-manes.caffeine:caffeine"
|
|
|
|
|
2023-03-23 08:02:33 +00:00
|
|
|
api "org.springdoc:springdoc-openapi-starter-webflux-ui"
|
|
|
|
api 'org.openapi4j:openapi-schema-validator'
|
|
|
|
api "net.bytebuddy:byte-buddy"
|
|
|
|
|
|
|
|
// Apache Lucene
|
|
|
|
api "org.apache.lucene:lucene-core"
|
|
|
|
api "org.apache.lucene:lucene-queryparser"
|
|
|
|
api "org.apache.lucene:lucene-highlighter"
|
|
|
|
api "org.apache.lucene:lucene-backward-codecs"
|
2023-08-25 15:46:12 +00:00
|
|
|
api 'org.apache.lucene:lucene-analysis-common'
|
2023-03-23 08:02:33 +00:00
|
|
|
|
|
|
|
api "org.apache.commons:commons-lang3"
|
|
|
|
api "io.seruco.encoding:base62"
|
|
|
|
api "org.pf4j:pf4j"
|
|
|
|
api "com.google.guava:guava"
|
|
|
|
api "org.jsoup:jsoup"
|
|
|
|
api "io.github.java-diff-utils:java-diff-utils"
|
|
|
|
api "org.springframework.integration:spring-integration-core"
|
|
|
|
api "com.github.java-json-tools:json-patch"
|
|
|
|
api "org.thymeleaf.extras:thymeleaf-extras-springsecurity6"
|
|
|
|
|
2023-06-16 04:50:12 +00:00
|
|
|
api "io.github.resilience4j:resilience4j-spring-boot3"
|
|
|
|
api "io.github.resilience4j:resilience4j-reactor"
|
|
|
|
|
2024-01-15 07:22:06 +00:00
|
|
|
api "com.j256.two-factor-auth:two-factor-auth"
|
|
|
|
|
2023-03-23 08:02:33 +00:00
|
|
|
runtimeOnly 'io.r2dbc:r2dbc-h2'
|
|
|
|
runtimeOnly 'org.postgresql:postgresql'
|
|
|
|
runtimeOnly 'org.postgresql:r2dbc-postgresql'
|
|
|
|
runtimeOnly 'org.mariadb:r2dbc-mariadb'
|
2023-05-31 06:41:03 +00:00
|
|
|
runtimeOnly 'io.asyncer:r2dbc-mysql'
|
2023-03-23 08:02:33 +00:00
|
|
|
|
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
|
|
|
testImplementation 'io.projectreactor:reactor-test'
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named('test') {
|
|
|
|
useJUnitPlatform()
|
2023-11-15 07:14:55 +00:00
|
|
|
finalizedBy jacocoTestReport
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named('jacocoTestReport') {
|
|
|
|
reports {
|
|
|
|
xml.required = true
|
|
|
|
html.required = false
|
|
|
|
}
|
2023-03-23 08:02:33 +00:00
|
|
|
}
|