forked from Leon406/SubCrawler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
42 lines (38 loc) · 1.18 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.7.0'
id "com.diffplug.spotless" version "6.7.2"
id "io.gitlab.arturbosch.detekt" version "1.19.0"
}
group 'me.leon'
version '1.1.0'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.2'
implementation 'com.google.code.gson:gson:2.9.0'
//for yaml 1.1
implementation 'org.yaml:snakeyaml:1.30'
//mmdb格式
implementation 'com.maxmind.geoip2:geoip2:3.0.1'
//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.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
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 spotlessCheck
echo "run code smell check"
./gradlew detekt
"""