This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (67 loc) · 1.64 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
group 'de.de.x4fyr'
ext.major_version = 0
ext.minor_version = 3
ext.revision_number = 3
version "$major_version.$minor_version.$revision_number"
println("version: $version")
buildscript {
ext.kotlin_version = '1.2.60'
ext.dagger_version = '2.13'
repositories {
mavenCentral()
jcenter()
maven {
url 'https://maven.google.com'
}
maven {
url 'http://dl.bintray.com/kotlin/kotlin-eap/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:3.1.1'
classpath 'com.google.firebase:firebase-plugins:1.1.1'
}
}
apply plugin: 'idea'
task copyJavaFxApp(type: Copy) {
from('app/build/distributions') {
rename ".*.zip", "paiman-${version}.zip"
}
into 'archive/'
include "*.zip"
dependsOn "app:distZip"
}
task copyAndroidApp(type: Copy) {
from('android/build/outputs/apk/') {
rename ".*.apk", "paiman-${version}.apk"
}
into 'archive/'
include "*-release.apk"
dependsOn "android:assembleRelease"
}
task copyArtifacts() {
dependsOn "copyJavaFxApp", "copyAndroidApp"
}
allprojects {
repositories {
mavenCentral()
jcenter()
maven {
url 'https://maven.google.com'
}
maven {
url 'http://dl.bintray.com/kotlin/kotlin-eap/'
}
flatDir {
dirs 'libs'
}
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
}