1 Star 0 Fork 1

疯狂创客圈/gradle-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
coder001 提交于 2022-11-22 16:46 . first commit
plugins {
id 'org.springframework.boot' version '2.4.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
//repositories {
// mavenCentral()
//}
repositories {
mavenLocal()
// mavenCentral()
maven {url 'https://maven.aliyun.com/repository/public/';}
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
}
subprojects{
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
repositories {
mavenLocal()
// mavenCentral()
maven {url 'https://maven.aliyun.com/repository/public/';}
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
test {
useJUnitPlatform()
}
}
task hello {
doLast {
println 'Hello world!'
}
}
task foo {
println 'crazy maker circle!'
}
task bar(dependsOn: foo) {
println " a good circle"
}
task myTask {
ext.myProperty = "myValue"
}
task printTaskProperties{
println myTask.myProperty
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/crazymaker/gradle-demo.git
[email protected]:crazymaker/gradle-demo.git
crazymaker
gradle-demo
gradle-demo
master

搜索帮助