plugins {
    id 'org.springframework.boot' version '2.1.3.RELEASE'
    id "io.freefair.lombok" version "3.1.4"
    id 'java'
}

apply plugin: 'io.spring.dependency-management'

group = 'run.halo.app'
archivesBaseName = 'halo'
version = '1.0.0'
sourceCompatibility = '1.8'
description = 'Halo, personal blog system developed in Java.'

repositories {
    mavenCentral()
}

configurations {
    implementation {
        exclude module: 'spring-boot-starter-tomcat'
    }

    developmentOnly
	runtimeClasspath {
		extendsFrom developmentOnly
	}
}

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'

    implementation 'io.github.biezhi:oh-my-email:0.0.4'
    implementation 'cn.hutool:hutool-core:4.5.0'
    implementation 'cn.hutool:hutool-crypto:4.5.0'
    implementation 'cn.hutool:hutool-extra:4.5.0'
    implementation 'com.upyun:java-sdk:4.0.1'
    implementation 'com.qiniu:qiniu-java-sdk:7.2.18'
    implementation 'com.aliyun.oss:aliyun-sdk-oss:3.4.2'
    implementation 'net.coobird:thumbnailator:0.4.8'
    implementation 'com.atlassian.commonmark:commonmark:0.12.1'
    implementation 'com.atlassian.commonmark:commonmark-ext-gfm-tables:0.12.1'
    implementation 'com.atlassian.commonmark:commonmark-ext-yaml-front-matter:0.12.1'
    implementation 'io.springfox:springfox-swagger2:2.9.2'
    implementation 'io.springfox:springfox-swagger-ui:2.9.2'
    implementation 'org.apache.commons:commons-lang3:3.8.1'
    implementation 'org.apache.httpcomponents:httpclient:4.5.7'
    implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.2'

    runtimeOnly 'com.h2database:h2'
    runtimeOnly 'mysql:mysql-connector-java'

    testImplementation 'org.springframework.boot:spring-boot-starter-test'

    developmentOnly 'org.springframework.boot:spring-boot-devtools'
}