-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
96 lines (79 loc) · 2.3 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/6.7.1/samples
*/
buildscript {
repositories {
mavenCentral()
}
// dependencies {
// classpath 'io.spring.gradle:dependency-management-plugin:1.0.10.RELEASE'
// classpath "org.springframework.boot:spring-boot-gradle-plugin:2.4.1"
// }
}
allprojects {
group "icu.kyakya"
// apply plugin: "io.spring.dependency-management"
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'java-library'
// apply plugin: "org.springframework.boot"
ext {
// test
testcontainersVersion = "1.15.0"
// spring
springBootVersion = '2.4.2'
springDependencyManagement = '1.0.10.RELEASE'
}
// 下载源码
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
eclipse {
classpath {
downloadJavadoc = true
downloadSources = true
}
}
// 指定并安装对应版本的JDK
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(15))
}
}
// 测试适配成功与否
task isConfigure(dependsOn: 'properties') {
doLast {
println ">> custom properties"
println ">> project name: " + project.name
println ">> gradle version: " + wrapper.gradleVersion
println ">> download Javadoc: " + idea.module.isDownloadJavadoc()
println ">> download Source: " + idea.module.isDownloadSources()
}
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
gradlePluginPortal()
}
project.ext.dependencyStrings = {
}
// https://docs.gradle.org/current/userguide/gradle_wrapper.html#sec:adding_wrapper
wrapper {
// jarFile = file(System.getProperty( "user.dir") +'/gradle/wrapper/gradle-wrapper.jar')
gradleVersion = '6.7.1'
}
// https://docs.gradle.org/current/dsl/org.gradle.api.tasks.javadoc.Javadoc.html
javadoc {
source = sourceSets.main.allJava
// classpath = configurations.compile
failOnError = false
}
}