2019-04-09 06:48:16 +00:00
|
|
|
plugins {
|
2020-04-28 02:20:10 +00:00
|
|
|
id "org.springframework.boot" version "2.2.6.RELEASE"
|
2020-03-27 05:53:32 +00:00
|
|
|
id "io.spring.dependency-management" version "1.0.9.RELEASE"
|
|
|
|
id "checkstyle"
|
|
|
|
id "java"
|
2019-04-09 06:48:16 +00:00
|
|
|
}
|
|
|
|
|
2020-03-27 05:53:32 +00:00
|
|
|
group = "run.halo.app"
|
2020-04-12 05:32:36 +00:00
|
|
|
version = "1.3.2"
|
2020-03-27 05:53:32 +00:00
|
|
|
description = "Halo, An excellent open source blog publishing application."
|
2019-04-09 06:48:16 +00:00
|
|
|
|
2020-03-19 09:01:17 +00:00
|
|
|
java {
|
2020-03-27 05:53:32 +00:00
|
|
|
archivesBaseName = "halo"
|
2020-03-19 09:01:17 +00:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
2019-04-09 06:48:16 +00:00
|
|
|
repositories {
|
2019-05-12 15:55:14 +00:00
|
|
|
maven {
|
2020-03-27 05:53:32 +00:00
|
|
|
url "https://maven.aliyun.com/nexus/content/groups/public"
|
2019-05-12 15:55:14 +00:00
|
|
|
}
|
2019-04-09 06:48:16 +00:00
|
|
|
mavenCentral()
|
2019-05-12 15:55:14 +00:00
|
|
|
jcenter()
|
2019-04-09 06:48:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
implementation {
|
2020-03-27 05:53:32 +00:00
|
|
|
exclude module: "spring-boot-starter-tomcat"
|
|
|
|
exclude module: "slf4j-log4j12"
|
2019-04-09 06:48:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
developmentOnly
|
2019-06-04 07:55:51 +00:00
|
|
|
|
2019-04-19 05:57:28 +00:00
|
|
|
runtimeClasspath {
|
|
|
|
extendsFrom developmentOnly
|
|
|
|
}
|
2020-03-17 15:56:24 +00:00
|
|
|
|
|
|
|
compileOnly {
|
|
|
|
extendsFrom annotationProcessor
|
|
|
|
}
|
2019-04-09 06:48:16 +00:00
|
|
|
}
|
|
|
|
|
2020-03-28 06:33:23 +00:00
|
|
|
|
|
|
|
springBoot {
|
|
|
|
buildInfo()
|
|
|
|
}
|
|
|
|
|
|
|
|
// gradle 的 Property Expansion 的占位符 ${..} 与 springboot 的占位符 冲突, springboot 的需要转义 \${..}
|
|
|
|
processResources {
|
|
|
|
filesMatching("application.yaml") {
|
|
|
|
expand(project.properties)
|
2019-05-07 03:15:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-01 13:31:51 +00:00
|
|
|
ext {
|
2020-05-07 05:28:19 +00:00
|
|
|
hutoolVersion = "5.3.3"
|
2020-03-27 05:53:32 +00:00
|
|
|
upyunSdkVersion = "4.2.0"
|
|
|
|
qiniuSdkVersion = "7.2.28"
|
2020-04-28 05:49:34 +00:00
|
|
|
aliyunSdkVersion = "3.9.1"
|
2020-04-28 02:45:45 +00:00
|
|
|
baiduSdkVersion = "0.10.106"
|
2020-04-30 03:02:18 +00:00
|
|
|
qcloudSdkVersion = "5.6.22"
|
2020-03-27 05:53:32 +00:00
|
|
|
swaggerVersion = "2.9.2"
|
2020-04-29 06:37:47 +00:00
|
|
|
commonsLangVersion = "3.10"
|
2020-03-27 05:53:32 +00:00
|
|
|
httpclientVersion = "4.5.12"
|
2020-04-28 02:47:02 +00:00
|
|
|
dataformatYamlVersion = "2.11.0"
|
2020-03-27 05:53:32 +00:00
|
|
|
jgitVersion = "5.7.0.202003110725-r"
|
2020-05-07 05:28:39 +00:00
|
|
|
flexmarkVersion = "0.61.26"
|
2020-03-27 05:53:32 +00:00
|
|
|
thumbnailatorVersion = "0.4.11"
|
|
|
|
image4jVersion = "0.7zensight1"
|
2020-05-01 07:25:07 +00:00
|
|
|
flywayVersion = "6.4.1"
|
2020-03-27 05:53:32 +00:00
|
|
|
h2Version = "1.4.196"
|
|
|
|
levelDbVersion = "0.12"
|
|
|
|
jsonVersion = "20190722"
|
2020-04-29 00:53:45 +00:00
|
|
|
fastJsonVersion = "1.2.68"
|
2020-04-28 02:48:49 +00:00
|
|
|
annotationsVersion = "3.0.1u2"
|
2020-05-07 05:28:55 +00:00
|
|
|
jedisVersion= '3.3.0'
|
2020-04-04 11:41:22 +00:00
|
|
|
zxingVersion = "3.4.0"
|
2020-04-09 02:03:37 +00:00
|
|
|
huaweiObsVersion = "3.19.7"
|
2019-09-01 13:31:51 +00:00
|
|
|
}
|
|
|
|
|
2019-04-09 06:48:16 +00:00
|
|
|
dependencies {
|
2020-03-27 05:53:32 +00:00
|
|
|
implementation "org.springframework.boot:spring-boot-starter-actuator"
|
|
|
|
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
|
|
|
|
implementation "org.springframework.boot:spring-boot-starter-web"
|
|
|
|
implementation "org.springframework.boot:spring-boot-starter-undertow"
|
2020-05-01 06:43:01 +00:00
|
|
|
implementation "redis.clients:jedis:$jedisVersion"
|
2020-03-27 05:53:32 +00:00
|
|
|
implementation "org.springframework.boot:spring-boot-starter-freemarker"
|
2020-02-21 13:21:28 +00:00
|
|
|
implementation "com.sun.mail:jakarta.mail"
|
2019-04-09 06:48:16 +00:00
|
|
|
|
2020-03-27 05:53:32 +00:00
|
|
|
implementation "cn.hutool:hutool-core:$hutoolVersion"
|
|
|
|
implementation "cn.hutool:hutool-crypto:$hutoolVersion"
|
|
|
|
implementation "cn.hutool:hutool-extra:$hutoolVersion"
|
|
|
|
implementation "com.upyun:java-sdk:$upyunSdkVersion"
|
|
|
|
implementation "com.qiniu:qiniu-java-sdk:$qiniuSdkVersion"
|
|
|
|
implementation "com.aliyun.oss:aliyun-sdk-oss:$aliyunSdkVersion"
|
|
|
|
implementation "com.baidubce:bce-java-sdk:$baiduSdkVersion"
|
|
|
|
implementation "com.qcloud:cos_api:$qcloudSdkVersion"
|
2020-04-09 02:03:37 +00:00
|
|
|
implementation "com.huaweicloud:esdk-obs-java:$huaweiObsVersion"
|
2020-03-27 05:53:32 +00:00
|
|
|
implementation "io.springfox:springfox-swagger2:$swaggerVersion"
|
|
|
|
implementation "io.springfox:springfox-swagger-ui:$swaggerVersion"
|
|
|
|
implementation "org.apache.commons:commons-lang3:$commonsLangVersion"
|
|
|
|
implementation "org.apache.httpcomponents:httpclient:$httpclientVersion"
|
|
|
|
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$dataformatYamlVersion"
|
|
|
|
implementation "org.eclipse.jgit:org.eclipse.jgit:$jgitVersion"
|
|
|
|
implementation "com.google.code.findbugs:annotations:$annotationsVersion"
|
|
|
|
|
|
|
|
implementation "com.vladsch.flexmark:flexmark:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-attributes:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-autolink:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-emoji:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-escaped-character:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-gfm-tasklist:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-ins:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-media-tags:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-tables:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-toc:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-superscript:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-yaml-front-matter:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-gitlab:$flexmarkVersion"
|
|
|
|
// implementation "com.vladsch.flexmark:flexmark-html-parser:$flexmarkVersion"
|
|
|
|
|
|
|
|
implementation "net.coobird:thumbnailator:$thumbnailatorVersion"
|
|
|
|
implementation "net.sf.image4j:image4j:$image4jVersion"
|
|
|
|
implementation "org.flywaydb:flyway-core:$flywayVersion"
|
|
|
|
|
|
|
|
implementation "org.json:json:$jsonVersion"
|
|
|
|
implementation "com.alibaba:fastjson:$fastJsonVersion"
|
|
|
|
|
2020-04-04 11:41:22 +00:00
|
|
|
implementation "com.google.zxing:core:$zxingVersion"
|
|
|
|
|
2020-03-27 05:53:32 +00:00
|
|
|
implementation "org.iq80.leveldb:leveldb:$levelDbVersion"
|
|
|
|
runtimeOnly "com.h2database:h2:$h2Version"
|
|
|
|
runtimeOnly "mysql:mysql-connector-java"
|
|
|
|
|
|
|
|
|
|
|
|
compileOnly "org.projectlombok:lombok"
|
|
|
|
annotationProcessor "org.projectlombok:lombok"
|
|
|
|
|
|
|
|
testCompileOnly "org.projectlombok:lombok"
|
|
|
|
testAnnotationProcessor "org.projectlombok:lombok"
|
|
|
|
|
|
|
|
testImplementation "org.springframework.boot:spring-boot-starter-test"
|
|
|
|
|
|
|
|
developmentOnly "org.springframework.boot:spring-boot-devtools"
|
2020-05-01 06:43:01 +00:00
|
|
|
}
|