-
Notifications
You must be signed in to change notification settings - Fork 46
/
build.gradle
97 lines (83 loc) · 2.35 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
97
plugins {
id 'org.springframework.boot' version '2.6.1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'com.github.sherter.google-java-format' version '0.8'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'org.example'
version = '1.0.0-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
maven { url "http://maven.aliyun.com/nexus/content/groups/public/"}
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://oss.sonatype.org/service/local/staging/deploy/maven2"}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
all {
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
def log4j_version="2.18.0"
List logger = [
"org.apache.logging.log4j:log4j-api:$log4j_version",
// "org.apache.logging.log4j:log4j-core:$log4j_version",
// "org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version",
"org.apache.logging.log4j:log4j-to-slf4j:$log4j_version",
// "org.apache.logging.log4j:log4j-web:$log4j_version"
]
dependencies {
implementation 'junit:junit:4.13.1'
compile logger
compile ('org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:3.0.0')
compile ('org.springframework.boot:spring-boot-starter-web')
compileOnly ('org.projectlombok:lombok')
annotationProcessor ('org.projectlombok:lombok')
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation ('org.junit.jupiter:junit-jupiter-api:5.6.1')
testRuntimeOnly ('org.junit.jupiter:junit-jupiter-engine:5.6.1')
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
}
test {
useJUnitPlatform()
}
bootJar {
destinationDir file('dist')
archiveName project.name + '-exec.jar'
doLast {
copy {
from file('src/main/resources')
into 'dist'
}
}
}
googleJavaFormat {
options style: 'AOSP'
source = sourceSets*.allJava
include '**/*.java'
}
clean {
println "delete ${projectDir}/dist"
delete "${projectDir}/dist"
}