3.Gradle build.gradle文件详解

plugins {
	id 'org.springframework.boot' version '2.7.2'
	id 'io.spring.dependency-management' version '1.0.12.RELEASE'
	id 'com.vaadin' version '23.1.4'
	id 'java'
}

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

repositories {
	mavenCentral()
}

ext {
	set('vaadinVersion', "23.1.4")
}

dependencies {
	implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
	implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
	implementation 'org.springframework.boot:spring-boot-starter-web'
	implementation 'com.vaadin:vaadin-spring-boot-starter'
	implementation 'org.liquibase:liquibase-core'
	runtimeOnly 'mysql:mysql-connector-java'
	testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

dependencyManagement {
	imports {
		mavenBom "com.vaadin:vaadin-bom:${vaadinVersion}"
	}
}

tasks.named('test') {
	useJUnitPlatform()
}

原创文章,作者:huoxiaoqiang,如若转载,请注明出处:https://www.huoxiaoqiang.com/java/javaenv/16119.html

(0)
上一篇 2022年6月2日 20:53
下一篇 2022年6月3日 23:42

相关推荐

  • 1.JDK(Java Development Kit)17的安装和配置

    1.Windows操作系统 从Oracle官网下载windows操作系统最新的LTS(长期支持)版JDK。 假设JDK安装目录如下: 右击“计算机”-属性-高级系统设置-高级-环境变量-系统变量中添加如下内容: 在Path变量最前面添加如下路径: 2.APT 存储库(基于 .deb 的 Linux 发行版) 添加 Be…

    Java安装教程 2022年6月1日
    04.7K0
  • 2.Gradle构建工具的安装步骤(Ubuntu)

    Gradle 依赖Java JDK 8 或更高版本 1.Gradle Wrapper安装方式 此种安装方式适用于项目基于 Gradle Wrapper 构建。 请注意,无需先安装 Gradle 即可使用 Gradle Wrapper。 项目根目录下,打开终端,指定所需的 Gradle 版本。 通过运行Grad…

    Java安装教程 2022年6月2日
    03360
  • 5.Gradle常用命令一览表

    1.命令 可指定单个任务或多个任务,如果指定了多个任务,它们应该用空格分隔。 接受值的选项可以在选项和参数之间指定或不指定=;但是,建议使用= 。 2.任务 任务 详情 init 使用新的或现有项目创建新的 Gradle 构建 wrapper 调用Gradle Wrapper build 计算所有输出 run…

    Java安装教程 2022年6月5日
    01580

发表回复

登录后才能评论