This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
83 lines (67 loc) · 2.24 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
/*
* Copyright (c) 2021 Gigadrive UG, Mehdi Baaboura
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* https://gigadrivegroup.com
* https://github.com/Gigadrive/google-drive-upload-cli
*/
plugins {
id "java"
id "org.jetbrains.kotlin.jvm" version "1.5.10"
id "com.github.johnrengelman.shadow" version "6.0.0"
}
group "com.gigadrivegroup"
version "1.0.0"
def javaVersion = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
maven { url "https://gitlab.com/api/v4/projects/23841941/packages/maven" }
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "com.gigadrivegroup:kotlin-commons:1.2"
implementation "com.xenomachina:kotlin-argparser:2.0.7"
implementation "com.google.api-client:google-api-client:1.23.0"
implementation "com.google.oauth-client:google-oauth-client-jetty:1.23.0"
implementation "com.google.apis:google-api-services-drive:v3-rev110-1.23.0"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.6.0"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
}
kotlin {
explicitApi()
}
// configures both compileKotlin and compileTestKotlin
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
kotlinOptions.jvmTarget = javaVersion.toString()
}
java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
withJavadocJar()
withSourcesJar()
}
jar {
manifest {
attributes "Main-Class": "com.gigadrivegroup.googledriveuploadcli.Bootstrap"
}
}
tasks.shadowJar {
minimize() // only shades the classes that are actually needed
}
tasks.build {
dependsOn(shadowJar)
}
test {
useJUnitPlatform()
}