forked from jayware/entity-essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
109 lines (93 loc) · 2.69 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
105
106
107
108
109
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.4.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
}
}
plugins {
id "com.github.hierynomus.license" version "0.13.1"
}
allprojects {
apply plugin: 'license'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.jfrog.artifactory'
group = "org.jayware"
repositories {
mavenCentral()
jcenter()
}
license {
header rootProject.file('HEADER.txt')
ext.year = Calendar.getInstance().get(Calendar.YEAR)
skipExistingHeaders = true
include "**/*.java"
}
bintray {
user = System.getProperty('bintray.user')
key = System.getProperty('bintray.key')
}
artifactory {
contextUrl = 'https://oss.jfrog.org/artifactory/'
publish {
repository {
repoKey = 'oss-snapshot-local'
username = System.getProperty('artifactory.user')
password = System.getProperty('artifactory.key')
}
publishBuildInfo = true
publishArtifacts = true
publishPom = true
}
resolve {
repository {
repoKey = 'jcenter'
maven = true
}
}
}
}
configure ([
project(':entity-essentials-api'),
project(':entity-essentials-impl'),
project(':entity-essentials-assertj')
]) {
project.apply plugin: 'java'
project.apply plugin: 'osgi'
project.apply plugin: 'maven'
project.apply plugin: 'maven-publish'
project.apply plugin: 'findbugs'
project.apply plugin: 'jacoco'
sourceCompatibility = 1.6
targetCompatibility = 1.6
findbugs {
toolVersion = "3.0.1"
sourceSets = [project.sourceSets.main]
}
task codeCoverageReport(type: JacocoReport, dependsOn: test) {
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
sourceDirectories = files(sourceSets.main.java)
classDirectories = files(sourceSets.main.output.classesDir)
reports {
html.enabled false
csv.enabled false
xml.enabled true
xml.destination "${buildDir}/reports/jacoco/report.xml"
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
}
artifactoryPublish.skip = true