This repository was archived by the owner on Aug 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
76 lines (64 loc) · 2.48 KB
/
build.gradle.kts
File metadata and controls
76 lines (64 loc) · 2.48 KB
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.tasks.run.BootRun
plugins {
id("org.springframework.boot") version "2.1.8.RELEASE"
id("io.spring.dependency-management") version "1.0.8.RELEASE"
kotlin("jvm") version "1.2.71"
kotlin("plugin.spring") version "1.2.71"
}
group = "com.example"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
maven(url = "http://android-docs.arcblock.io/release")
mavenLocal()
}
dependencies {
implementation("io.arcblock.forge:core:1.0.9")
implementation("io.arcblock.forge:did:1.0.9")
implementation("io.arcblock.forge:abtdid-spring-boot-starter:1.0.9")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.10.1")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.1")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
//implementation("org.springframework.security:spring-security-jwt")
implementation("org.postgresql:postgresql")
implementation("io.grpc:grpc-netty:1.20.0")
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("io.jsonwebtoken:jjwt-api:0.10.7")
implementation("io.jsonwebtoken:jjwt-impl:0.10.7")
implementation("io.jsonwebtoken:jjwt-jackson:0.10.7")
implementation("io.github.harshilsharma63:controller-logger:1.2.0")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.springframework.boot:spring-boot-starter-aop")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
tasks.withType<BootRun> {
var newArgs = mutableListOf<String>()
if (project.hasProperty("args")){
newArgs.addAll((project.property("args") as String).split(","))
}
val envFilePath = System.getenv("ENV_FILE")?:""
if (envFilePath.isNotEmpty()){
File(envFilePath).readLines().forEach {
val kv = it.replace("\"","").split("=")
environment(kv[0],kv[1])
newArgs.add("--$it".replace("\"","").replace("POSTGRE_URI","spring.datasource.url"))
}
}
args=newArgs.toList()
}
allOpen {
annotation("javax.persistence.Entity")
annotation("javax.persistence.Embeddable")
annotation("javax.persistence.MappedSuperclass")
}