This repository has been archived by the owner on May 11, 2023. It is now read-only.
forked from cookpad/onesky-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
59 lines (52 loc) · 1.52 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.50'
repositories {
google()
jcenter()
maven {
url uri("./repo")
}
maven { url 'https://repo.gradle.org/gradle/repo' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.novoda:bintray-release:0.8.1'
}
}
apply plugin: 'kotlin'
allprojects {
repositories {
google()
jcenter()
maven {
url uri("./repo")
}
maven { url 'https://repo.gradle.org/gradle/repo' }
}
}
task customClean(type: Delete) {
delete rootProject.buildDir
}
clean.dependsOn customClean
repositories {
mavenCentral()
maven {
url uri("./repo")
}
maven { url 'https://repo.gradle.org/gradle/repo' }
google()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
def fileCredentials = new File('credentials.gradle')
if (!fileCredentials.exists()){
fileCredentials.createNewFile()
fileCredentials.append("// https://easypark.oneskyapp.com/admin/site/settings\n")
fileCredentials.append("ext.oneskyApiKey = '<api-key>'\n")
fileCredentials.append("ext.oneskyApiSecret = '<api-secret>'\n")
fileCredentials.append("ext.oneskyProjectId = 123456789\n")
}
apply from: rootProject.file('credentials.gradle')