mirror of https://github.com/halo-dev/halo
Refactor extra properties in build.gradle (#719)
* Upgrade gradle version to 6.3 * Upgrade gradle version to 6.3 Refactor extra properties configurationpull/725/head
parent
01e4e5e271
commit
e16f418167
164
build.gradle
164
build.gradle
|
@ -1,22 +1,22 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'org.springframework.boot' version '2.2.5.RELEASE'
|
id "org.springframework.boot" version "2.2.5.RELEASE"
|
||||||
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
|
id "io.spring.dependency-management" version "1.0.9.RELEASE"
|
||||||
id 'checkstyle'
|
id "checkstyle"
|
||||||
id 'java'
|
id "java"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'run.halo.app'
|
group = "run.halo.app"
|
||||||
version = '1.3.0'
|
version = "1.3.0"
|
||||||
description = 'Halo, An excellent open source blog publishing application.'
|
description = "Halo, An excellent open source blog publishing application."
|
||||||
|
|
||||||
java {
|
java {
|
||||||
archivesBaseName = 'halo'
|
archivesBaseName = "halo"
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url 'https://maven.aliyun.com/nexus/content/groups/public'
|
url "https://maven.aliyun.com/nexus/content/groups/public"
|
||||||
}
|
}
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
jcenter()
|
jcenter()
|
||||||
|
@ -24,8 +24,8 @@ repositories {
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
implementation {
|
implementation {
|
||||||
exclude module: 'spring-boot-starter-tomcat'
|
exclude module: "spring-boot-starter-tomcat"
|
||||||
exclude module: 'slf4j-log4j12'
|
exclude module: "slf4j-log4j12"
|
||||||
}
|
}
|
||||||
|
|
||||||
developmentOnly
|
developmentOnly
|
||||||
|
@ -41,93 +41,93 @@ configurations {
|
||||||
|
|
||||||
bootJar {
|
bootJar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Implementation-Title': 'Halo Application',
|
attributes("Implementation-Title": "Halo Application",
|
||||||
'Implementation-Version': archiveVersion)
|
"Implementation-Version": archiveVersion)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
set('hutoolVersion', "5.2.3")
|
hutoolVersion = "5.2.3"
|
||||||
set('upyunSdkVersion', "4.2.0")
|
upyunSdkVersion = "4.2.0"
|
||||||
set('qiniuSdkVersion', "7.2.28")
|
qiniuSdkVersion = "7.2.28"
|
||||||
set('aliyunSdkVersion', "3.8.1")
|
aliyunSdkVersion = "3.8.1"
|
||||||
set('baiduSdkVersion', "0.10.36")
|
baiduSdkVersion = "0.10.36"
|
||||||
set('qcloudSdkVersion', "5.6.18")
|
qcloudSdkVersion = "5.6.18"
|
||||||
set('swaggerVersion', "2.9.2")
|
swaggerVersion = "2.9.2"
|
||||||
set('commonsLangVersion', "3.9")
|
commonsLangVersion = "3.9"
|
||||||
set('httpclientVersion', "4.5.12")
|
httpclientVersion = "4.5.12"
|
||||||
set('dataformatYamlVersion', "2.10.3")
|
dataformatYamlVersion = "2.10.3"
|
||||||
set('jgitVersion', "5.7.0.202003110725-r")
|
jgitVersion = "5.7.0.202003110725-r"
|
||||||
set('flexmarkVersion', "0.60.2")
|
flexmarkVersion = "0.60.2"
|
||||||
set('thumbnailatorVersion', "0.4.11")
|
thumbnailatorVersion = "0.4.11"
|
||||||
set('image4jVersion', "0.7zensight1")
|
image4jVersion = "0.7zensight1"
|
||||||
set('flywayVersion', "6.3.1")
|
flywayVersion = "6.3.1"
|
||||||
set('h2Version', "1.4.196")
|
h2Version = "1.4.196"
|
||||||
set('levelDbVersion', "0.12")
|
levelDbVersion = "0.12"
|
||||||
set('jsonVersion', "20190722")
|
jsonVersion = "20190722"
|
||||||
set('fastJsonVersion', "1.2.66")
|
fastJsonVersion = "1.2.66"
|
||||||
set('annotationsVersion',"3.0.1")
|
annotationsVersion = "3.0.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
implementation "org.springframework.boot:spring-boot-starter-actuator"
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
implementation "org.springframework.boot:spring-boot-starter-web"
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-undertow'
|
implementation "org.springframework.boot:spring-boot-starter-undertow"
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-freemarker'
|
implementation "org.springframework.boot:spring-boot-starter-freemarker"
|
||||||
implementation "com.sun.mail:jakarta.mail"
|
implementation "com.sun.mail:jakarta.mail"
|
||||||
|
|
||||||
implementation "cn.hutool:hutool-core:${hutoolVersion}"
|
implementation "cn.hutool:hutool-core:$hutoolVersion"
|
||||||
implementation "cn.hutool:hutool-crypto:${hutoolVersion}"
|
implementation "cn.hutool:hutool-crypto:$hutoolVersion"
|
||||||
implementation "cn.hutool:hutool-extra:${hutoolVersion}"
|
implementation "cn.hutool:hutool-extra:$hutoolVersion"
|
||||||
implementation "com.upyun:java-sdk:${upyunSdkVersion}"
|
implementation "com.upyun:java-sdk:$upyunSdkVersion"
|
||||||
implementation "com.qiniu:qiniu-java-sdk:${qiniuSdkVersion}"
|
implementation "com.qiniu:qiniu-java-sdk:$qiniuSdkVersion"
|
||||||
implementation "com.aliyun.oss:aliyun-sdk-oss:${aliyunSdkVersion}"
|
implementation "com.aliyun.oss:aliyun-sdk-oss:$aliyunSdkVersion"
|
||||||
implementation "com.baidubce:bce-java-sdk:${baiduSdkVersion}"
|
implementation "com.baidubce:bce-java-sdk:$baiduSdkVersion"
|
||||||
implementation "com.qcloud:cos_api:${qcloudSdkVersion}"
|
implementation "com.qcloud:cos_api:$qcloudSdkVersion"
|
||||||
implementation "io.springfox:springfox-swagger2:${swaggerVersion}"
|
implementation "io.springfox:springfox-swagger2:$swaggerVersion"
|
||||||
implementation "io.springfox:springfox-swagger-ui:${swaggerVersion}"
|
implementation "io.springfox:springfox-swagger-ui:$swaggerVersion"
|
||||||
implementation "org.apache.commons:commons-lang3:${commonsLangVersion}"
|
implementation "org.apache.commons:commons-lang3:$commonsLangVersion"
|
||||||
implementation "org.apache.httpcomponents:httpclient:${httpclientVersion}"
|
implementation "org.apache.httpcomponents:httpclient:$httpclientVersion"
|
||||||
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${dataformatYamlVersion}"
|
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$dataformatYamlVersion"
|
||||||
implementation "org.eclipse.jgit:org.eclipse.jgit:${jgitVersion}"
|
implementation "org.eclipse.jgit:org.eclipse.jgit:$jgitVersion"
|
||||||
implementation "com.google.code.findbugs:annotations:${annotationsVersion}"
|
implementation "com.google.code.findbugs:annotations:$annotationsVersion"
|
||||||
|
|
||||||
implementation "com.vladsch.flexmark:flexmark:${flexmarkVersion}"
|
implementation "com.vladsch.flexmark:flexmark:$flexmarkVersion"
|
||||||
implementation "com.vladsch.flexmark:flexmark-ext-attributes:${flexmarkVersion}"
|
implementation "com.vladsch.flexmark:flexmark-ext-attributes:$flexmarkVersion"
|
||||||
implementation "com.vladsch.flexmark:flexmark-ext-autolink:${flexmarkVersion}"
|
implementation "com.vladsch.flexmark:flexmark-ext-autolink:$flexmarkVersion"
|
||||||
implementation "com.vladsch.flexmark:flexmark-ext-emoji:${flexmarkVersion}"
|
implementation "com.vladsch.flexmark:flexmark-ext-emoji:$flexmarkVersion"
|
||||||
implementation "com.vladsch.flexmark:flexmark-ext-escaped-character:${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-strikethrough:$flexmarkVersion"
|
||||||
implementation "com.vladsch.flexmark:flexmark-ext-gfm-tasklist:${flexmarkVersion}"
|
implementation "com.vladsch.flexmark:flexmark-ext-gfm-tasklist:$flexmarkVersion"
|
||||||
implementation "com.vladsch.flexmark:flexmark-ext-ins:${flexmarkVersion}"
|
implementation "com.vladsch.flexmark:flexmark-ext-ins:$flexmarkVersion"
|
||||||
implementation "com.vladsch.flexmark:flexmark-ext-media-tags:${flexmarkVersion}"
|
implementation "com.vladsch.flexmark:flexmark-ext-media-tags:$flexmarkVersion"
|
||||||
implementation "com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}"
|
implementation "com.vladsch.flexmark:flexmark-ext-tables:$flexmarkVersion"
|
||||||
implementation "com.vladsch.flexmark:flexmark-ext-toc:${flexmarkVersion}"
|
implementation "com.vladsch.flexmark:flexmark-ext-toc:$flexmarkVersion"
|
||||||
implementation "com.vladsch.flexmark:flexmark-ext-superscript:${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-yaml-front-matter:$flexmarkVersion"
|
||||||
implementation "com.vladsch.flexmark:flexmark-ext-gitlab:${flexmarkVersion}"
|
implementation "com.vladsch.flexmark:flexmark-ext-gitlab:$flexmarkVersion"
|
||||||
// implementation "com.vladsch.flexmark:flexmark-html-parser:${flexmarkVersion}"
|
// implementation "com.vladsch.flexmark:flexmark-html-parser:$flexmarkVersion"
|
||||||
|
|
||||||
implementation "net.coobird:thumbnailator:${thumbnailatorVersion}"
|
implementation "net.coobird:thumbnailator:$thumbnailatorVersion"
|
||||||
implementation "net.sf.image4j:image4j:${image4jVersion}"
|
implementation "net.sf.image4j:image4j:$image4jVersion"
|
||||||
implementation "org.flywaydb:flyway-core:${flywayVersion}"
|
implementation "org.flywaydb:flyway-core:$flywayVersion"
|
||||||
|
|
||||||
implementation "org.json:json:${jsonVersion}"
|
implementation "org.json:json:$jsonVersion"
|
||||||
implementation "com.alibaba:fastjson:${fastJsonVersion}"
|
implementation "com.alibaba:fastjson:$fastJsonVersion"
|
||||||
|
|
||||||
implementation "org.iq80.leveldb:leveldb:${levelDbVersion}"
|
implementation "org.iq80.leveldb:leveldb:$levelDbVersion"
|
||||||
runtimeOnly "com.h2database:h2:${h2Version}"
|
runtimeOnly "com.h2database:h2:$h2Version"
|
||||||
runtimeOnly 'mysql:mysql-connector-java'
|
runtimeOnly "mysql:mysql-connector-java"
|
||||||
|
|
||||||
|
|
||||||
compileOnly 'org.projectlombok:lombok'
|
compileOnly "org.projectlombok:lombok"
|
||||||
annotationProcessor 'org.projectlombok:lombok'
|
annotationProcessor "org.projectlombok:lombok"
|
||||||
|
|
||||||
testCompileOnly 'org.projectlombok:lombok'
|
testCompileOnly "org.projectlombok:lombok"
|
||||||
testAnnotationProcessor 'org.projectlombok:lombok'
|
testAnnotationProcessor "org.projectlombok:lombok"
|
||||||
|
|
||||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
testImplementation "org.springframework.boot:spring-boot-starter-test"
|
||||||
|
|
||||||
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
developmentOnly "org.springframework.boot:spring-boot-devtools"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
Loading…
Reference in New Issue