美文网首页
gradle 打包 springboot

gradle 打包 springboot

作者: JoeyTsai | 来源:发表于2018-03-09 20:52 被阅读0次

    layout: post

    title: gradle 打包 springboot

    categories: Spring Boot

    description: gradle 打包 springboot

    keywords: Spring Boot

    gradle bootRepackage

    buildscript {
        ext.kotlin_version = '1.2.21'
        ext {
            springBootVersion = '1.5.10.RELEASE'
        }
        repositories {
            mavenCentral()
        }
        dependencies {
            classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
            classpath 'org.springframework:springloaded:1.2.7.RELEASE'
            classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        }
    }
    
    apply plugin: 'java'
    apply plugin: 'kotlin'
    apply plugin: 'idea'
    apply plugin: 'org.springframework.boot'
    
    group = 'com.zyblog'
    version = '0.0.1-SNAPSHOT'
    sourceCompatibility = 1.8
    
    repositories {
        mavenCentral()
    }
    
    configurations {
        providedRuntime
    }
    
    dependencies {
        compile('org.springframework.boot:spring-boot-starter-web')
        testCompile('org.springframework.boot:spring-boot-starter-test')
        compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
        compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.17'
    // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa
        compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '1.5.7.RELEASE'
    // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-thymeleaf
        compile group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf', version: '1.5.7.RELEASE'
    
    }
    compileKotlin {
        kotlinOptions {
            jvmTarget = "1.8"
        }
    }
    compileTestKotlin {
        kotlinOptions {
            jvmTarget = "1.8"
        }
    }
    

    相关文章

      网友评论

          本文标题:gradle 打包 springboot

          本文链接:https://www.haomeiwen.com/subject/hvlsfftx.html