This repository has been archived by the owner on Feb 20, 2020. It is now read-only.
forked from SumoLogic/sumo-log4j-appender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (72 loc) · 2.15 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
group = "sumo-logback-appender"
version = "1.0.3.9"
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath('org.jfrog.buildinfo:build-info-extractor-gradle:4.4.9')
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.artifactory'
def artifactory_user = hasProperty('ARTIFACTORY_USER') ? ARTIFACTORY_USER : System.getenv('ARTIFACTORY_USER')
def artifactory_key = hasProperty('ARTIFACTORY_KEY') ? ARTIFACTORY_KEY : System.getenv('ARTIFACTORY_KEY')
def artifactory_deploy_user = hasProperty('ARTIFACTORY_DEPLOY_USER') ? ARTIFACTORY_DEPLOY_USER : System.getenv('ARTIFACTORY_DEPLOY_USER')
def artifactory_deploy_key = hasProperty('ARTIFACTORY_DEPLOY_KEY') ? ARTIFACTORY_DEPLOY_KEY : System.getenv('ARTIFACTORY_DEPLOY_KEY')
repositories {
maven {
url "http://packages.creditcards.com/artifactory/maven-private"
credentials {
username artifactory_user
password artifactory_key
}
}
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.apache.commons:commons-lang3:3.4'
compileOnly 'org.apache.httpcomponents:httpclient:4.5.2'
compileOnly 'ch.qos.logback:logback-classic:1.1.3'
compileOnly 'org.projectlombok:lombok:1.16.6'
}
publishing {
publications {
MainPublication(MavenPublication) {
from components.java
groupId project.group
artifactId 'sumo-logback-appender'
version project.version
artifact sourcesJar
}
}
}
artifactory {
publish {
contextUrl = 'https://packages.creditcards.com/artifactory'
repository {
repoKey = 'maven-private'
username = artifactory_deploy_user
password = artifactory_deploy_key
}
defaults {
publications('MainPublication')
publishArtifacts = true
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}