-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
95 lines (86 loc) · 2.86 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
buildscript {
repositories {
jcenter()
}
}
plugins {
id "com.jfrog.bintray" version "1.8.3"
}
allprojects {
repositories {
jcenter()
}
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
}
dependencies {
api group:'org.eclipse.jetty.websocket', name:'websocket-client', version:'9.4.32.v20200930'
implementation group:'org.apache.commons', name:'commons-lang3', version:'3.9'
implementation group:'ch.qos.logback', name:'logback-classic', version:'1.2.3'
implementation group:'com.fasterxml.jackson.core', name:'jackson-databind', version:'2.9.8'
implementation group:'com.fasterxml.jackson.dataformat', name:'jackson-dataformat-yaml', version:'2.9.8'
implementation group:'javax.inject', name:'javax.inject', version:'1'
implementation group:'org.bouncycastle', name:'bcprov-jdk15on', version:'1.66'
implementation group:'org.bouncycastle', name:'bcpkix-jdk15on', version:'1.66'
implementation group:'org.apache.httpcomponents', name:'httpclient', version:'4.5.12'
implementation group:'junit', name:'junit', version:'4.13'
}
String binGroupId = 'it.unimore.dipi'
String binLibName = 'openness-connector'
String binVer = '0.0.5'
group = binGroupId
version = binVer
// Create the pom configuration:
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 3.0"
url "http://www.apache.org/licenses/LICENSE-3.0.txt"
distribution "repo"
}
}
developers {
developer {
id "smarianimore"
name "Stefano Mariani"
email "stefano.mariani@unimore.it"
}
}
scm {
url "https://gitlab.com/SteMore/openness-connector.git"
}
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId binGroupId
artifactId binLibName
version binVer
pom.withXml {
def root = asNode()
root.appendNode('description', 'Openness connector library')
root.appendNode('name', binLibName)
root.appendNode('url', 'https://gitlab.com/SteMore/openness-connector.git')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
configurations = ['archives']
publications = ['MyPublication']
pkg {
repo = binLibName
name = binLibName
licenses = ['AGPL-V3']
vcsUrl = 'https://gitlab.com/SteMore/openness-connector.git'
version {
name = binVer
released = new Date()
}
}
}