-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (57 loc) · 1.81 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
plugins {
id 'java'
id 'idea'
id 'org.springframework.boot' version '2.2.2.RELEASE'
id "org.liquibase.gradle" version "2.0.2"
id "com.google.protobuf" version "0.8.10"
}
apply plugin: 'io.spring.dependency-management'
idea {
module{
sourceDirs += file('out/production/classes/generated')
}
}
group 'com.bootapp'
version '0.0.1'
sourceCompatibility = 1.8
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
mavenCentral()
}
sourceSets {
main {
proto { srcDir '../proto-core' }
}
}
def queryDslVersion = '4.2.2'
dependencies {
implementation 'org.mindrot:jbcrypt:0.4'
//jpa
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
//querydsl
compile "com.querydsl:querydsl-core:${queryDslVersion}"
compile "com.querydsl:querydsl-jpa:${queryDslVersion}"
annotationProcessor( //generating QFiles
"com.querydsl:querydsl-apt:${queryDslVersion}:jpa",
'javax.annotation:javax.annotation-api',
"org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final",
)
//grpc
implementation 'io.github.lognet:grpc-spring-boot-starter:3.5.0'
//jdbc
implementation 'mysql:mysql-connector-java'
//compile 'org.apache.shardingsphere:sharding-jdbc-spring-boot-starter:4.0.0-RC2'
implementation 'org.liquibase:liquibase-core'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
protobuf {
protoc {artifact = 'com.google.protobuf:protoc:3.11.1'}
plugins {
grpc { artifact = "io.grpc:protoc-gen-grpc-java:1.25.0" }
}
generateProtoTasks {
all()*.plugins { grpc {outputSubDir = "java"} }
}
generatedFilesBaseDir = "$projectDir/src/"
}