-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathbuild.gradle
More file actions
111 lines (98 loc) · 2.87 KB
/
build.gradle
File metadata and controls
111 lines (98 loc) · 2.87 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
buildscript {
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0'
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.1'
}
}
plugins {
id "com.jfrog.bintray" version "1.8.0"
}
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'org.sonarqube'
group 'com.fooock'
version '0.4.9'
sourceCompatibility = 1.7
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
repositories {
mavenCentral()
jcenter()
}
bintray {
user = project.hasProperty('username') ? project.property('username') : System.getenv('BINTRAY_USER')
key = project.hasProperty('password') ? project.property('password') : System.getenv('BINTRAY_API_KEY')
publications = ['mavenJava']
pkg {
repo = 'maven'
name = 'jShodan'
userOrg = 'fooock'
licenses = ['MIT']
vcsUrl = 'https://github.com/fooock/jshodan.git'
issueTrackerUrl = 'https://github.com/fooock/jshodan/issues'
version {
name = '0.4.9'
gpg {
sign = true
passphrase = project.hasProperty('gpgpassword') ? project.property('gpgpassword') : System.getenv('BINTRAY_GPG')
}
}
}
}
def pomConfig = {
scm {
connection 'scm:git:https://github.com/fooock/jshodan.git'
url 'https://github.com/fooock/jshodan.git'
}
licenses {
license {
name "MIT"
url "https://github.com/fooock/jshodan/blob/master/LICENSE"
distribution "repo"
}
}
developers {
developer {
id "fooock"
name "newhouse"
email "nhitbh@gmail.com"
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId groupId
artifactId 'jshodan'
pom.withXml {
def root = asNode()
root.appendNode('description', 'jShodan is a powerfull Shodan client writen in Java')
root.appendNode('name', 'jShodan')
root.appendNode('url', 'https://github.com/fooock/jshodan')
root.appendNode('packaging', 'jar')
root.children().last() + pomConfig
}
}
}
}
dependencies {
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
compile "io.reactivex.rxjava2:rxjava:2.1.8"
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
testCompile 'junit:junit:4.12'
testCompile "org.mockito:mockito-core:2.9.0"
testCompile 'com.squareup.retrofit2:retrofit-mock:2.3.0'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.1'
}