forked from kaklakariada/fritzbox-java-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
77 lines (67 loc) · 1.9 KB
/
build.gradle
File metadata and controls
77 lines (67 loc) · 1.9 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
plugins {
id "java"
id "maven-publish"
id "com.github.hierynomus.license" version "0.14.0"
id "com.jfrog.bintray" version "1.8.0"
}
repositories {
jcenter()
}
group 'com.github.kaklakariada'
version = '0.5.0'
sourceCompatibility = 1.8
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:all'
options.encoding = 'UTF-8'
}
test {
if(logger.infoEnabled) {
testLogging.showStandardStreams = true
}
jvmArgs '-XX:+HeapDumpOnOutOfMemoryError', '-enableassertions'
}
dependencies {
compile 'com.squareup.okhttp3:okhttp:3.9.1'
compile 'com.subshell.simpleframework:simple-xml:2.9.0'
compile 'org.slf4j:slf4j-api:1.7.25'
testRuntime 'ch.qos.logback:logback-classic:1.2.3'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.13.0'
}
license {
header = file('gradle/license-header.txt')
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
classifier "sources"
}
publishing {
publications {
BintrayPublication(MavenPublication) {
from components.java
artifact sourceJar
groupId project.group
artifactId project.name
version project.version
}
}
}
bintray {
def bintrayUser = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
def bintrayApiKey = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
user = bintrayUser
key = bintrayApiKey
publications = ['BintrayPublication']
pkg {
repo = 'maven'
name = project.name
userOrg = bintrayUser
licenses = ['GPL-3.0']
vcsUrl = 'https://github.com/kaklakariada/fritzbox-java-api.git'
version {
name = project.version
released = new Date()
vcsTag = project.version
}
}
}