This repository has been archived by the owner on Apr 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
71 lines (63 loc) · 2.14 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
group 'io.github.stekeblad'
version '1.4.6'
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
main {
resources {
srcDirs = ["src/main/java", "src/main/resources"]
includes = ["**/*.fxml",
"**/*.png",
"**/*.json",
"**/*.properties",
"**/*.css",
"**/*.pub",
"**/META-INF/**"
]
}
}
}
task generateVersionNumberFile(dependsOn: compileJava) {
inputs.property "version", project.version
outputs.dir "$buildDir/resources/main/generated"
doFirst {
def versionFile = file("$buildDir/resources/main/generated/CurrentVersion.properties")
versionFile.parentFile.mkdirs()
versionFile.text = "$project.version"
}
}
// Outputs to: build/libs/[baseName]-[version].jar
task makeMyJar(type: Jar, dependsOn: generateVersionNumberFile){
baseName = 'Stekeblads_Video_Uploader'
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
manifest {
attributes 'Main-Class': 'io.github.stekeblad.videouploader.main.Main'
}
with jar
}
repositories {
mavenCentral()
}
dependencies {
// The YouTube API and its requirements
compile 'com.google.api-client:google-api-client:1.32.1'
compile 'com.google.oauth-client:google-oauth-client-jetty:1.31.5'
compile 'com.google.apis:google-api-services-youtube:v3-rev20210811-1.32.1'
// For the metadata-related features
compile 'org.jcodec:jcodec:0.2.5'
// Verifying downloaded updates are real and not from someone else
compile 'com.google.crypto.tink:tink:1.5.0'
// A better HTTP-client than the one built into Java
compile 'com.squareup.okhttp3:okhttp:4.9.1'
}
// https://developers.google.com/api-client-library/java/apis/youtube/v3
// https://search.maven.org/#search%7Cgav%7C1%7Cg%3A"com.google.apis"%20AND%20a%3A"google-api-services-youtube"
//