-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
74 lines (64 loc) · 1.74 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
plugins {
id "com.jfrog.bintray" version "1.8.3"
}
defaultTasks 'clean', 'build', 'publishToMavenLocal'
group 'sk.baka.slf4j'
version '1.7.28-SNAPSHOT'
ext.local = new Properties()
if (project.rootProject.file('local.properties').exists()) {
ext.local.load(project.rootProject.file('local.properties').newDataInputStream())
}
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
compileJava.options.encoding = 'UTF-8'
repositories {
jcenter()
}
dependencies {
compileOnly 'com.google.android:android:4.1.1.4'
compileOnly 'org.jetbrains:annotations:13.0'
testCompile 'junit:junit:4.11'
compile "org.slf4j:slf4j-api:1.7.25"
}
task sourceJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId 'slf4j-handroid'
version project.version
from components.java
artifact sourceJar {
classifier "sources"
}
}
}
}
// for Travis to record failures: http://stackoverflow.com/questions/28614865/how-to-read-test-result-reports-on-travis-ci/28617954#28617954
test {
testLogging {
events "failed"
exceptionFormat "full"
}
}
bintray {
user = local.getProperty('bintray.user')
key = local.getProperty('bintray.key')
pkg {
repo = 'sk.baka'
name = 'slf4j-handroid'
licenses = ['MIT']
vcsUrl = 'https://github.com/mvysny/slf4j-handroid'
publish = true
publications = ['mavenJava']
version {
name = project.version
released = new Date()
}
}
}