This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
79 lines (65 loc) · 1.74 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.xtext:xtext-gradle-plugin:1.0.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
Properties properties = new Properties()
properties.load(project.rootProject.file('gradle-local.properties').newDataInputStream())
def bintrayUser = properties.getProperty('bintrayUser')
def bintrayPassword = properties.getProperty('bintrayPassword')
subprojects {
if (!it.name.endsWith('mickeydb.lib')) {
ext.xtextVersion = '2.10.0'
apply plugin: 'java'
apply plugin: 'org.xtext.xtend'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply from: "${rootDir}/gradle/source-layout.gradle"
apply from: "${rootDir}/gradle/maven-deployment.gradle"
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
repositories {
jcenter()
}
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
group = 'com.justeat.mickeydb'
version = '1.0.13'
configurations.all {
exclude group: 'asm'
}
publishing {
publications {
mavenJava(MavenPublication) {
if (plugins.hasPlugin('android-library')) {
artifact bundleRelease
} else {
from components.java
}
// artifact sourcesJar
// artifact javadocJar
}
}
}
bintray {
user = "${bintrayUser}"
key = "${bintrayPassword}"
publications = ['mavenJava'] //When uploading Maven-based publication files
publish = true
pkg {
repo = 'mickeydb'
name = 'mickeydb'
userOrg = user
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/justeat/mickeydb.git'
version {
name = project.version
}
}
}
}