-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
102 lines (80 loc) · 2.68 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.5.21'
}
apply plugin: 'kotlin-kapt'
group 'com.theapache64.gpm'
version '1.0.5'
repositories {
mavenCentral()
google()
maven { url "https://jitpack.io" }
}
kapt {
arguments {
arg("project", "${project.group}/${project.name}")
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21"
// Picocli
def picocli_version = '4.6.1'
implementation "info.picocli:picocli:$picocli_version"
kapt "info.picocli:picocli-codegen:$picocli_version"
// Retrofit
def retrofit_version = '2.9.0'
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-moshi:$retrofit_version"
implementation "com.squareup.retrofit2:converter-scalars:$retrofit_version"
implementation 'com.squareup.moshi:moshi-kotlin:1.12.0'
// Inquirer
implementation 'com.github.kotlin-inquirer:kotlin-inquirer:v0.0.2-alpha'
// Dagger
def dagger_version = "2.38.1"
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
// Coroutines
def coroutines_version = "1.5.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
// Junit
testImplementation group: 'junit', name: 'junit', version: '4.12'
// ExpeKt
testImplementation 'com.winterbe:expekt:0.5.0'
// Mockito inline
testImplementation('org.mockito:mockito-inline:3.11.2')
// Mockito-koltin
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
// Apache commons text
implementation 'org.apache.commons:commons-text:1.9'
// DaggerMock
def dagger_mock_version = '0.8.5'
testImplementation "com.github.fabioCollini.daggermock:daggermock:$dagger_mock_version"
testImplementation "com.github.fabioCollini.daggermock:daggermock-kotlin:$dagger_mock_version"
// Truth Core:Truth Core
testImplementation 'com.google.truth:truth:1.1.3'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
// Include dependent libraries in archive.
jar {
manifest {
attributes "Main-Class": "com.theapache64.gpm.MainKt"
}
}
task fatJar(type: Jar) {
manifest.from jar.manifest
archiveFileName.value("gpm.main.jar")
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
with jar
}