赞
踩
Gradle 是用了一种基于 Groovy 的领域特定语言(DSL,Demain Specific Language)来声明项目设置,摒弃了 XML(如 ANT 和 Maven)的各种繁琐配置。
插入一个我的Eureka Service的项目结构图
构建脚本:build.gradle,需要注意的是,脚本内容的执行是有先后顺序的,一般来说按buildscript->plugins->repositories->dependencies->dependencyManagement,当然如果是其他的项目,比如java啦、C++啦,可能有其他的差别,本文以实用为宗旨,这里只介绍springboot项目
buildscript { repositories { maven { url 'https://maven.aliyun.com/nexus/content/groups/public' } } dependencies { classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.4.5' } } plugins { id 'org.springframework.boot' version '2.4.5' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java'
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。