-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
54 lines (46 loc) · 1.24 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
plugins {
id "com.github.hierynomus.license" version "0.14.0" apply false
id "com.github.jk1.dependency-license-report" version "0.3.11" apply false
}
allprojects {
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: "com.github.jk1.dependency-license-report"
apply plugin: 'com.github.hierynomus.license'
sourceCompatibility = 1.8
targetCompatibility = 1.8
license {
header rootProject.file('codequality/HEADER')
exclude '**/*.txt'
}
if (project.path != ':') {
buildDir = new File(rootDir, 'build/' + project.path.replace(':', '-').substring(1))
} else {
buildDir = new File(rootDir, 'build/' + project.name)
}
group = 'com.linkedin.gradle.portal'
version = '0.0.1'
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'ivy-publish'
publishing {
publications {
ivyJava(IvyPublication) {
from components.java
}
}
repositories {
ivy {
url "${System.getProperty("user.home")}/local-repo"
layout('pattern') {
ivy "[organisation]/[module]/[revision]/[module]-[revision].ivy"
artifact "[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
m2compatible true
}
}
}
}
}