forked from Leon406/SubCrawler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (38 loc) · 1.2 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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.5.31'
id "com.diffplug.spotless" version "5.15.0"
id "io.gitlab.arturbosch.detekt" version "1.18.1"
}
group 'me.leon'
version '1.1.0'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.5.31'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2'
implementation 'com.google.code.gson:gson:2.8.8'
//for yaml 1.1
implementation 'org.yaml:snakeyaml:1.29'
//mmdb格式
implementation 'com.maxmind.geoip2:geoip2:2.15.0'
//dat格式
// implementation 'com.maxmind.geoip:geoip-api:1.3.1'
// implementation 'com.maxmind.db:maxmind-db:1.2.0'
//for yaml 1.2
// implementation "org.snakeyaml:snakeyaml-engine:2.3"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
test {
useJUnitPlatform()
}
apply from: "$rootProject.projectDir/config/codeQuality.gradle"
def hook = new File("$rootProject.projectDir/.git/hooks/pre-commit")
hook.text = """#!/bin/bash
echo "run code format"
./gradlew spotlessJCh spotlessKCh
echo "run code smell check"
./gradlew detekt
"""