forked from pgjdbc/pgjdbc
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
67 lines (55 loc) · 1.84 KB
/
build.gradle.kts
File metadata and controls
67 lines (55 loc) · 1.84 KB
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
/*
* Copyright (c) 2019, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
plugins {
id("build-logic.repositories")
id("build-logic.build-params")
id("build-logic.root-build")
id("org.nosphere.gradle.github.actions")
// IDE configuration
id("com.github.vlsi.ide")
// Release
id("com.github.vlsi.gradle-extensions")
id("jacoco")
}
buildscript {
configurations.classpath {
exclude("xerces")
}
}
ide {
// TODO: set copyright to PostgreSQL Global Development Group
ideaInstructionsUri =
uri("https://github.com/pgjdbc/pgjdbc")
doNotDetectFrameworks("android", "jruby")
}
val String.v: String get() = rootProject.extra["$this.version"] as String
val buildVersion = "pgjdbc".v + if (buildParameters.release) "" else "-SNAPSHOT"
println("Building pgjdbc $buildVersion")
val isReleaseVersion = buildParameters.release
dependencies {
// nmcpAggregation declares the list of projects should be published to Central Portal
// Currently we publish a single project only, however, if we add more, we need to add them here
// as well.
nmcpAggregation(projects.postgresql)
}
jacoco {
toolVersion = "0.8.14"
providers.gradleProperty("jacoco.version")
.takeIf { it.isPresent }
?.let { toolVersion = it.get() }
}
val jacocoReport by tasks.registering(JacocoReport::class) {
group = "Coverage reports"
description = "Generates an aggregate report from all subprojects"
}
allprojects {
group = "org.postgresql"
version = buildVersion
}
val parameters by tasks.registering {
group = HelpTasksPlugin.HELP_GROUP
description = "Displays build parameters (i.e. -P flags) that can be used to customize the build"
dependsOn(gradle.includedBuild("build-logic").task(":build-parameters:parameters"))
}