-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (71 loc) · 2.01 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
sourceCompatibility = 1.8
group = 'com.colasoft.csf'
def lastVersion = "1.0.0.RELEASE"
def csfVersion = version = "1.4.0.4326-SNAPSHOT"
def artifactId = "java_learning"
ext.lastJarName = artifactId + "-" + lastVersion + ".jar"
ext.jarName = artifactId + "-" + "$csfVersion" + ".jar"
buildscript {
ext.springBootVersion = "2.3.0.RELEASE"
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/spring/' }
mavenLocal()
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/spring/' }
mavenLocal()
mavenCentral()
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
}
artifacts {
archives sourceJar
archives javadocJar
archives jar
}
dependencies {
compile('org.springframework:spring-core')
compile 'commons-io:commons-io:2.6'
compile 'commons-lang:commons-lang:2.6'
compile 'com.alibaba:fastjson:1.2.56'
testCompile 'junit:junit:4.1'
}
jar {
enabled = true
manifest {
attributes 'Manifest-Version': "$csfVersion"
attributes 'Build-Time': new Date()
attributes 'Built-With': 'gradle-4.2.1'
attributes 'Built-On': 'ISDV161716L.local/172.16.3.14'
attributes 'Built-By': 'shilong.jiang-PC'
attributes 'Java-Version': '1.8.0_131'
attributes 'Application-Title': 'java_learning'
}
}
javadoc {
options {
encoding "UTF-8"
charSet "UTF-8"
author true
version true
}
}