/
build.gradle
45 lines (38 loc) · 1009 Bytes
/
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
plugins {
id 'java'
}
apply plugin: 'java'
apply plugin: 'maven'
group 'com.github.dayan888'
version '0.4'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile("com.fasterxml.jackson.core:jackson-databind:2.9.10.+")
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: 'file:/tmp/myrepo')
// repository(url: 'http://host/repositories/json') {
// authentication(userName: "admin", password: "admin123")
// }
}
}
}
[install.repositories.mavenInstaller, uploadArchives.repositories.mavenDeployer]*.pom*.whenConfigured { pom ->
pom.project {
inceptionYear '2019'
packaging 'jar'
licenses {
license {
name 'The MIT License'
url 'https://opensource.org/licenses/mit-license.php'
distribution 'repo'
}
}
}
}