This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
104 lines (88 loc) · 3.01 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
97
98
99
100
101
102
103
104
allprojects {
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: "com.jfrog.artifactory"
apply plugin: 'maven-publish'
group 'munch-data'
version '5.0-SNAPSHOT'
ext.dockerRegistryUrl = '197547471367.dkr.ecr.ap-southeast-1.amazonaws.com/'
ext.dockerRegistryVersion = '5.0'
ext.jUnitVersion = '5.3.2'
ext.guiceVersion = '4.2.2'
ext.awsVersion = '1.11.508'
ext.restfulVersion = '3.0.9'
ext.ccVersion = '3.4-SNAPSHOT'
ext.fileVersion = '1.2.17'
ext.locationVersion = '1.2.1'
ext.tasteVersion = '1.0-SNAPSHOT'
sourceCompatibility = 1.9
targetCompatibility = 1.9
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId 'munch-data-' + project.name
from components.java
artifact(sourcesJar) {
classifier = 'sources'
}
}
}
}
configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }
dependencies {
testCompile group: 'org.easytesting', name: 'fest-assert', version: '1.4'
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: jUnitVersion
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: jUnitVersion
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: jUnitVersion
compile group: 'com.google.code.findbugs', name: 'annotations', version: '3.0.1u2'
compile group: 'munch.restful', name: 'restful-core', version: restfulVersion
compile group: 'com.google.inject', name: 'guice', version: guiceVersion
}
}
buildscript {
repositories {
maven {
url 'http://fx.artifactory.munchapp.co/artifactory/munch-repos'
credentials {
username = "${artifactory_user}"
password = "${artifactory_password}"
}
}
}
dependencies {
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4+"
classpath 'com.bmuschko:gradle-docker-plugin:3.6.2'
}
}
// https://www.jfrog.com/confluence/display/RTF/Gradle+Artifactory+Plugin
artifactory {
contextUrl = "${artifactory_contextUrl}"
publish {
repository {
repoKey = "munch-${project.version.endsWith('-SNAPSHOT') ? 'snapshot' : 'release'}"
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
defaults {
publications('mavenJava')
}
}
resolve {
repository {
repoKey = 'munch-repos'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
}
}