Tang Cheng | 2273131 | 2019-07-12 11:19:30 +0800 | [diff] [blame] | 1 | plugins { |
| 2 | id 'java' |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 3 | id 'org.springframework.boot' version '2.1.6.RELEASE' apply false |
Tang Cheng | 2273131 | 2019-07-12 11:19:30 +0800 | [diff] [blame] | 4 | id 'org.jetbrains.kotlin.jvm' version '1.3.31' |
| 5 | id 'org.jetbrains.kotlin.plugin.spring' version '1.3.31' |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 6 | id 'org.jetbrains.kotlin.plugin.jpa' version '1.3.31' apply false |
Tang Cheng | 2273131 | 2019-07-12 11:19:30 +0800 | [diff] [blame] | 7 | id "com.palantir.git-version" version "0.12.0-rc2" |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 8 | id 'com.palantir.docker' version '0.22.1' apply false |
Tang Cheng | 2273131 | 2019-07-12 11:19:30 +0800 | [diff] [blame] | 9 | } |
| 10 | |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 11 | group = 'com.supwisdom' |
| 12 | |
Tang Cheng | 9eb1bea | 2019-07-08 09:15:47 +0800 | [diff] [blame] | 13 | allprojects { |
| 14 | repositories { |
| 15 | jcenter() |
| 16 | mavenCentral() |
| 17 | } |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 18 | ext { |
| 19 | set('junit_jupiter_version', "5.5.2") |
| 20 | set("junit_platform_version", "1.5.2") |
| 21 | set("mockitoVersion", "3.1.0") |
| 22 | } |
Tang Cheng | 31a5b2a | 2019-11-25 22:01:48 +0800 | [diff] [blame] | 23 | |
Tang Cheng | 31a5b2a | 2019-11-25 22:01:48 +0800 | [diff] [blame] | 24 | apply plugin: 'java' |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 25 | apply plugin: 'io.spring.dependency-management' |
| 26 | |
| 27 | sourceCompatibility = JavaVersion.VERSION_1_8 |
| 28 | targetCompatibility = JavaVersion.VERSION_1_8 |
| 29 | |
| 30 | compileKotlin { |
| 31 | kotlinOptions { |
| 32 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 33 | jvmTarget = jdkVersion |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | compileTestKotlin { |
| 38 | kotlinOptions { |
| 39 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 40 | jvmTarget = jdkVersion |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | version = gitVersion() |
| 45 | ext { |
| 46 | details = versionDetails() |
Tang Cheng | 31a5b2a | 2019-11-25 22:01:48 +0800 | [diff] [blame] | 47 | } |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 48 | } |
Tang Cheng | 40993e1 | 2019-07-08 16:38:51 +0800 | [diff] [blame] | 49 | |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 50 | |
| 51 | subprojects { |
| 52 | |
| 53 | ext { |
| 54 | set('springCloudVersion', "Hoxton.RELEASE") |
| 55 | } |
| 56 | |
| 57 | dependencies { |
| 58 | ext { |
| 59 | slf4jVersion = '1.7.26' |
| 60 | beanutilsVersion = '1.9.3' |
| 61 | codecVersion = '1.13' |
| 62 | lang3Version = '3.9' |
| 63 | commonCodecVersion = '1.12' |
| 64 | lombokVersion = '1.18.8' |
| 65 | javaELVersion = '3.0.0' |
| 66 | shedlockVersion = '2.5.0' |
| 67 | jose4jVersion = '0.6.5' |
| 68 | jcabiManifestsVersion = '1.1' |
| 69 | kotlnLogVersion = '1.6.26' |
| 70 | slf4jVersion = '1.7.26' |
| 71 | gsonVersion = '2.8.5' |
| 72 | dbcpVersion = '1.4' |
| 73 | log4jVersion = '1.2.17' |
| 74 | alibabFastjsonVerison = '1.2.60' |
| 75 | beanutilsVersion = '1.9.3' |
| 76 | alipaySDKVersion = '3.7.110.ALL' |
| 77 | lombokVersion = '1.18.8' |
| 78 | resetAssuredVersion = '3.3.0' |
| 79 | hamcrestVersion = '2.1' |
| 80 | mockkVersion = '1.9.3' |
| 81 | commonNetVersion = '3.6' |
| 82 | kaptchaVersion = '2.3.2' |
| 83 | jerseyClientVersion = '1.19' |
| 84 | javaxWSRSVersion = '2.1.1' |
| 85 | dom4jVersion = '2.1.1' |
| 86 | springSocialVersion = '1.1.6.RELEASE' |
| 87 | springKafkaVersion = '2.2.8.RELEASE' |
| 88 | postgresVersion = '42.2.5' |
| 89 | } |
| 90 | implementation "org.jetbrains.kotlin:kotlin-reflect" |
| 91 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" |
| 92 | |
| 93 | implementation "org.springframework.boot:spring-boot-starter-data-jpa" |
| 94 | implementation "org.springframework.boot:spring-boot-starter-data-redis" |
| 95 | implementation "org.springframework.boot:spring-boot-starter-validation" |
| 96 | |
| 97 | implementation "javax.validation:validation-api" |
| 98 | implementation "com.jcabi:jcabi-manifests:${jcabiManifestsVersion}" |
| 99 | implementation "org.slf4j:slf4j-parent:${slf4jVersion}" |
| 100 | implementation "org.slf4j:slf4j-api:${slf4jVersion}" |
| 101 | implementation "org.postgresql:postgresql:${postgresVersion}" |
| 102 | implementation "io.github.microutils:kotlin-logging:${kotlnLogVersion}" |
| 103 | implementation "org.slf4j:slf4j-parent:${slf4jVersion}" |
| 104 | implementation "com.google.code.gson:gson:${gsonVersion}" |
| 105 | implementation "commons-dbcp:commons-dbcp:${dbcpVersion}" |
| 106 | implementation "commons-codec:commons-codec:${commonCodecVersion}" |
| 107 | implementation "log4j:log4j:${log4jVersion}" |
| 108 | implementation "com.alibaba:fastjson:${alibabFastjsonVerison}" |
| 109 | implementation "com.fasterxml.jackson.module:jackson-module-kotlin" |
| 110 | |
| 111 | |
| 112 | annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" |
| 113 | annotationProcessor "org.projectlombok:lombok:${lombokVersion}" |
| 114 | compileOnly "org.projectlombok:lombok:${lombokVersion}" |
| 115 | |
| 116 | // implementation "javax.el:javax.el-api:${javaELVersion}" |
| 117 | // implementation "javax.servlet:javax.servlet-api:4.0.1" |
| 118 | // testImplementation 'org.springframework:spring-test' |
| 119 | // testImplementation 'org.springframework.boot:spring-boot-test' |
| 120 | // implementation "javax.servlet:jstl:1.2" |
| 121 | // implementation "taglibs:standard:1.1.2" |
| 122 | testImplementation "org.springframework.boot:spring-boot-starter-test" |
| 123 | testImplementation "org.junit.jupiter:junit-jupiter-api:${junit_jupiter_version}" |
| 124 | testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_version}" |
| 125 | testRuntimeOnly "org.junit.platform:junit-platform-launcher:${junit_platform_version}" |
| 126 | testImplementation "io.mockk:mockk:${mockkVersion}" |
| 127 | testImplementation "org.hamcrest:hamcrest:${hamcrestVersion}" |
| 128 | testImplementation "io.rest-assured:rest-assured:${resetAssuredVersion}" |
| 129 | testImplementation "io.rest-assured:spring-mock-mvc:${resetAssuredVersion}" |
| 130 | } |
| 131 | |
| 132 | test { |
| 133 | useJUnitPlatform() |
| 134 | testLogging { |
| 135 | events "passed", "skipped", "failed" |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | dependencyManagement { |
| 140 | imports { |
| 141 | mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" |
| 142 | } |
| 143 | } |
Tang Cheng | 8beabcd | 2019-07-12 11:48:01 +0800 | [diff] [blame] | 144 | } |
| 145 | |
Tang Cheng | 91ca277 | 2019-12-16 08:59:52 +0800 | [diff] [blame] | 146 | |