2019-04-09 06:48:16 +00:00
|
|
|
plugins {
|
2019-11-23 14:56:14 +00:00
|
|
|
id 'org.springframework.boot' version '2.2.1.RELEASE'
|
2019-06-10 17:22:00 +00:00
|
|
|
id "io.freefair.lombok" version "3.6.6"
|
2019-11-17 21:50:21 +00:00
|
|
|
// id 'war'
|
2019-04-09 06:48:16 +00:00
|
|
|
id 'java'
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
|
|
|
|
group = 'run.halo.app'
|
|
|
|
archivesBaseName = 'halo'
|
2019-12-23 09:13:47 +00:00
|
|
|
version = '1.2.0-beta.2'
|
2019-04-09 06:48:16 +00:00
|
|
|
sourceCompatibility = '1.8'
|
|
|
|
description = 'Halo, personal blog system developed in Java.'
|
|
|
|
|
|
|
|
repositories {
|
2019-05-12 15:55:14 +00:00
|
|
|
maven {
|
|
|
|
url 'https://maven.aliyun.com/nexus/content/groups/public'
|
|
|
|
}
|
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 {
|
|
|
|
exclude module: 'spring-boot-starter-tomcat'
|
2019-07-25 16:18:10 +00:00
|
|
|
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
|
|
|
|
}
|
2019-04-09 06:48:16 +00:00
|
|
|
}
|
|
|
|
|
2019-05-07 03:15:48 +00:00
|
|
|
bootJar {
|
|
|
|
manifest {
|
|
|
|
attributes('Implementation-Title': 'Halo Application',
|
|
|
|
'Implementation-Version': version)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-01 13:31:51 +00:00
|
|
|
ext {
|
|
|
|
ohMyEmailVersion = '0.0.4'
|
2019-10-29 12:33:35 +00:00
|
|
|
hutoolVersion = '5.0.3'
|
2019-09-01 13:31:51 +00:00
|
|
|
upyunSdkVersion = '4.0.1'
|
|
|
|
qiniuSdkVersion = '7.2.18'
|
|
|
|
aliyunSdkVersion = '3.4.2'
|
|
|
|
baiduSdkVersion = '0.10.36'
|
|
|
|
qcloudSdkVersion = '5.5.7'
|
|
|
|
swaggerVersion = '2.9.2'
|
|
|
|
commonsLangVersion = '3.8.1'
|
|
|
|
httpclientVersion = '4.5.7'
|
|
|
|
dataformatYamlVersion = '2.9.2'
|
|
|
|
jgitVersion = '5.3.0.201903130848-r'
|
|
|
|
flexmarkVersion = '0.42.12'
|
2019-09-10 04:02:42 +00:00
|
|
|
thumbnailatorVersion = '0.4.8'
|
2019-10-30 16:48:31 +00:00
|
|
|
image4jVersion = '0.7zensight1'
|
2019-12-02 04:53:15 +00:00
|
|
|
flywayVersion = '6.1.0'
|
2019-12-07 12:37:40 +00:00
|
|
|
h2Version = '1.4.196'
|
2019-09-01 13:31:51 +00:00
|
|
|
}
|
|
|
|
|
2019-04-09 06:48:16 +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-web'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-undertow'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-freemarker'
|
|
|
|
|
2019-09-01 13:31:51 +00:00
|
|
|
implementation "io.github.biezhi:oh-my-email:$ohMyEmailVersion"
|
|
|
|
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"
|
|
|
|
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"
|
2019-04-09 06:48:16 +00:00
|
|
|
|
2019-09-01 13:31:51 +00:00
|
|
|
implementation "com.vladsch.flexmark:flexmark:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-attributes:$flexmarkVersion"
|
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-autolink:$flexmarkVersion"
|
2019-12-13 10:59:40 +00:00
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-anchorlink:$flexmarkVersion"
|
2019-09-01 13:31:51 +00:00
|
|
|
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-yaml-front-matter:$flexmarkVersion"
|
2019-12-13 10:59:40 +00:00
|
|
|
implementation "com.vladsch.flexmark:flexmark-ext-gitlab:$flexmarkVersion"
|
2019-09-01 13:31:51 +00:00
|
|
|
implementation "com.vladsch.flexmark:flexmark-html-parser:$flexmarkVersion"
|
2019-06-27 15:29:54 +00:00
|
|
|
|
2019-09-10 04:02:42 +00:00
|
|
|
implementation "net.coobird:thumbnailator:$thumbnailatorVersion"
|
2019-10-30 16:48:31 +00:00
|
|
|
implementation "net.sf.image4j:image4j:$image4jVersion"
|
2019-12-02 04:53:15 +00:00
|
|
|
implementation "org.flywaydb:flyway-core:$flywayVersion"
|
2019-11-17 21:32:56 +00:00
|
|
|
|
2019-12-07 12:37:40 +00:00
|
|
|
runtimeOnly "com.h2database:h2:$h2Version"
|
2019-04-09 06:48:16 +00:00
|
|
|
runtimeOnly 'mysql:mysql-connector-java'
|
|
|
|
|
2019-12-02 04:53:15 +00:00
|
|
|
|
2019-06-04 07:55:51 +00:00
|
|
|
compileOnly 'org.projectlombok:lombok'
|
|
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
|
|
|
2019-04-09 06:48:16 +00:00
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
|
|
|
|
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
2019-10-30 16:48:31 +00:00
|
|
|
}
|