加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.94 KB
一键复制 编辑 原始数据 按行查看 历史
chenluo 提交于 2018-04-04 09:43 . add data class
buildscript {
ext {
kotlinVersion = '1.2.31'
springBootVersion = '2.0.0.RELEASE'
}
repositories {
mavenLocal()
maven {
url 'http://repository.jboss.org/nexus/content/groups/public'
}
// maven {
// url 'http://maven.aliyun.com/nexus/content/groups/public'
// }
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
//apply plugin: 'maven'
apply plugin: 'kotlin-spring'
apply plugin: 'idea'
//apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.springboot2'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
}
}
repositories {
mavenLocal()
maven {
url 'http://repository.jboss.org/nexus/content/groups/public'
}
// maven {
// url 'http://maven.aliyun.com/nexus/content/groups/public'
// }
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-actuator')
// compile('org.springframework.boot:spring-boot-starter-data-jpa')
// compile('org.springframework.boot:spring-boot-starter-security')
compile('org.springframework.boot:spring-boot-starter-web')
compile('com.fasterxml.jackson.module:jackson-module-kotlin')
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.kotlin:kotlin-reflect")
runtime('org.springframework.boot:spring-boot-devtools')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('org.springframework.boot:spring-boot-starter-logging')
testCompile('org.springframework.security:spring-security-test')
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化