1 Star 0 Fork 0

huvz/KotlinBoot_Sqlite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
huvz 提交于 2023-07-01 16:48 . 升级到springboot3
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.springframework.boot' version '3.1.1'
id 'io.spring.dependency-management' version '1.1.0'
id 'org.jetbrains.kotlin.jvm' version '1.6.21'
id 'org.jetbrains.kotlin.plugin.spring' version '1.6.21'
}
group = 'com.bridge'
version = '0.0.1-DEMO'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.springframework.boot', name: 'spring-boot-starter', version: '3.1.1'
//验权 Shiro
implementation group: 'org.apache.shiro', name: 'shiro-spring', version: '1.11.0'
// https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc
implementation group: 'com.baomidou', name: 'mybatis-plus-boot-starter', version: '3.5.3.1'
implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.42.0.0'
//Spring boot Web
implementation 'org.springframework.boot:spring-boot-starter-web'
//lombok 自动生成<getter><setter>
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.28'
//Kotlin
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
compileOnly group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.withType(KotlinCompile) {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '17'
}
}
tasks.named('test') {
useJUnitPlatform()
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Kotlin
1
https://gitee.com/huvz/kotlinboot_sqlite.git
git@gitee.com:huvz/kotlinboot_sqlite.git
huvz
kotlinboot_sqlite
KotlinBoot_Sqlite
master

搜索帮助