build.gradle templates

plugins {
    id 'org.springframework.boot' version '2.5.0'
    id 'io.spring.dependency-management' version '1.0.11.RELEASE'
    id 'java'
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'

configurations {
    compileOnly {
        extendsFrom annotationProcessor
    }
}

repositories {
    maven {url 'https://maven.aliyun.com/repository/public'}
    maven {
        url 'http://192.168.10.204:8081/repository/maven-public/'
        allowInsecureProtocol true
    }
    mavenCentral()
}

dependencies {
    // jpa
    implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
    // swagger
    mplementation 'io.springfox:springfox-boot-starter:3.0.0'
    // webservice
    implementation 'org.springframework.boot:spring-boot-starter-web-services'
    // druid
    implementation 'com.alibaba:druid-spring-boot-starter:1.2.5'
    // mybatis and plus
    implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.4'
    implementation 'com.baomidou:mybatis-plus-boot-starter:3.4.2'
    // mybatis dynamic DataSource 多数据源
    implementation 'com.baomidou:dynamic-datasource-spring-boot-starter:3.3.2'
    // rabbitmq
    implementation 'org.springframework.boot:spring-boot-starter-amqp'
    testImplementation 'org.springframework.amqp:spring-rabbit-test'
    // jsoup java spider 爬虫框架
    implementation 'org.jsoup:jsoup:1.13.1'
    // spring mail
    implementation 'org.springframework.boot:spring-boot-starter-mail'
    // activemq
    implementation 'org.springframework.boot:spring-boot-starter-activemq'
    // activemq next
    implementation 'org.springframework.boot:spring-boot-starter-artemis'
    // redis
    implementation 'org.springframework.boot:spring-boot-starter-data-redis'
    // thymeleaf
    implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
    // web
    implementation 'org.springframework.boot:spring-boot-starter-web'
    // web without tomcat and with undertow
    implementation ('org.springframework.boot:spring-boot-starter-web'){
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
    }
    implementation 'org.springframework.boot:spring-boot-starter-undertow'
    // common lang3
    implementation 'org.apache.commons:commons-lang3:3.12.0'
    // common codec
    implementation 'commons-codec:commons-codec:1.15'
    // fastjson
    implementation 'com.alibaba:fastjson:1.2.76'
    // ok http
    implementation 'com.squareup.okhttp3:okhttp:4.9.1'
    compileOnly 'org.projectlombok:lombok'
    developmentOnly 'org.springframework.boot:spring-boot-devtools'
    // oracle
    implementation 'com.oracle.database.nls:orai18n:21.1.0.0'
    runtimeOnly 'com.oracle.database.jdbc:ojdbc8'
    // mysql
    runtimeOnly 'mysql:mysql-connector-java'
    annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
    annotationProcessor 'org.projectlombok:lombok'
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

test {
    useJUnitPlatform()
}