This repository was archived by the owner on Sep 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
50 lines (42 loc) · 1.66 KB
/
build.gradle
File metadata and controls
50 lines (42 loc) · 1.66 KB
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
group 'com.africastalking.example'
version '1.0.0'
apply plugin: 'application'
apply plugin: 'de.fuerstenau.buildconfig'
mainClassName = "com.africastalking.example.App"
sourceCompatibility = 1.8
targetCompatibility = 1.8
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
def sdkVersion = properties.getProperty("bintray.version")
buildConfig {
appName = project.name // sets value of NAME field
version = project.version // sets value of VERSION field,
// 'unspecified' if project.version is not set
buildConfigField 'String', 'USERNAME', properties.getProperty("api.username")
buildConfigField 'String', 'API_KEY', properties.getProperty("api.key")
clsName = 'BuildConfig' // sets the name of the BuildConfig class
packageName = project.group // sets the package of the BuildConfig class,
// 'de.fuerstenau.buildconfig' if project.group is not set
charset = 'UTF-8' // sets charset of the generated class,
// 'UTF-8' if not set otherwise
}
repositories {
jcenter()
maven {
url "http://dl.bintray.com/africastalking/java"
}
}
dependencies {
compile 'org.slf4j:slf4j-simple:1.7.21'
compile 'com.sparkjava:spark-core:2.5.4'
compile 'com.sparkjava:spark-template-handlebars:2.3'
compile 'com.google.code.gson:gson:2.8.0'
// compile "com.africastalking:core:$sdkVersion"
compile project(":core")
testCompile 'junit:junit:4.11'
}
task runApp(type: JavaExec, dependsOn: classes){
description = "Simple App Server"
main = "com.africastalking.example.App"
classpath = sourceSets.main.runtimeClasspath
}