forked from kaklakariada/fritzbox-java-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
96 lines (83 loc) · 2.29 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
plugins {
id "com.github.hierynomus.license" version "0.13.1"
id "com.jfrog.bintray" version "1.7.3"
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
repositories {
jcenter()
}
group 'com.github.kaklakariada'
version = '0.4.1'
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.okhttp:okhttp:2.7.5'
compile 'org.simpleframework:simple-xml:2.7.1'
compile 'org.slf4j:slf4j-api:1.7.24'
testRuntime 'ch.qos.logback:logback-classic:1.1.3'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.7.11'
}
license {
header = file('gradle/license-header.txt')
ext.year = 2017
ext.name = 'Christoph Pirkl'
ext.email = 'christoph at users.sourceforge.net'
}
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
}
}
}
eclipse {
classpath {
downloadSources = true
}
jdt.file {
beforeMerged { jdt ->
File defaultProperties = new File("${rootProject.projectDir}/gradle/defaultEclipseJdtPrefs.properties").absoluteFile
logger.info "Load defaults from $defaultProperties for $project"
jdt.load(defaultProperties)
}
}
}