forked from odpi/egeria-database-connectors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
140 lines (109 loc) · 3.3 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright Contributors to the ODPi Egeria project.
*/
/*
* Used for Build scripts/plugins only
*/
buildscript {
repositories {
jcenter()
mavenCentral()
// snapshots of egeria core ie -SNAPSHOT
maven { url("https://odpi.jfrog.io/odpi/egeria-snapshot") }
}
dependencies {
classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:3.0.1'
}
}
/*
* Plugins for this parent module only - so just high level project related
*/
plugins {
//id "nebula.lint" version "16.9.0"
//id "nebula-aggregate-javadocs"
}
/* run './gradlew aggregateJavadocs' at top level to build all docs & output to build/docs/javadoc */
apply plugin: 'nebula-aggregate-javadocs'
/*
* Configuration for all projects - INCLUDING this one
*/
allprojects {
group = 'org.odpi.egeria'
version = '2.5-SNAPSHOT'
repositories {
jcenter()
mavenCentral()
// snapshots of egeria core ie -SNAPSHOT
maven { url("https://odpi.jfrog.io/odpi/egeria-snapshot") }
}
// This enforces version checking but is slow to process
//apply plugin: 'nebula.lint'
//gradleLint {
// rules = ['all-dependency'] // TODO: Change to criticalRules when ready to enforce
//
//}
}
/*
* Configuration for sub projects only
*/
apply plugin: 'java-library'
subprojects {
// Mostly java, so default to this for now
apply plugin: 'java'
// As we've migrated from maven - we'll assume all submodules publish directly to maven
apply plugin: 'maven-publish'
// Dependency Management - to fix versions. Pick up maven build settings for now
dependencies {
constraints {
// implementation("org.slf4j:slf4j-api:1.7.30")
implementation 'org.odpi.egeria:data-manager-client:3.5'
implementation 'org.odpi.egeria:data-manager-api:3.5'
implementation 'org.odpi.egeria:database-integrator-api:3.5'
implementation 'org.odpi.egeria:open-connector-framework:3.5'
// implementation 'org.slf4j:slf4j-api'
}
test {
useJUnitPlatform {
includeEngines 'junit-jupiter'
}
}
}
// sources required to publish a legitimate maven package for distribution
java {
withSourcesJar()
}
test {
useJUnitPlatform()
dependencies {
testCompile("org.junit.jupiter:junit-jupiter-api:5.7.0")
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.7.0"
testImplementation "org.junit.jupiter:junit-jupiter-params:5.7.0"
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.0")
}
testLogging {
events "passed", "skipped", "failed"
}
reports {
html.enabled = true
}
filter {
//include all unit tests
includeTestsMatching "*Test"
}
}
// publish maven package
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
// Java language settings
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
sourceCompatibility = "11"
targetCompatibility = "11"
}
}