-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
61 lines (49 loc) · 1.8 KB
/
build.gradle.kts
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
/*
* Copyright 2024 Novant. All Rights Reserved.
*/
plugins {
// Base Niagara plugin
id("com.tridium.niagara")
// The vendor plugin provides the vendor {} extension to set the default group
// for Maven publishing; the default vendor attribute for installable
// manifests; and the default module and dist version for their respective
// manifests
id("com.tridium.vendor")
// The signing plugin configures signing of all executables, modules, and
// dists. It also registers a factory only on the root project to avoid
// overhead from managing signing profiles on all subprojects
id("com.tridium.niagara-signing")
// The niagara_home repositories convention plugin configures !bin/ext and
// !modules as flat-file Maven repositories to allow modules to compile against
// Niagara
id("com.tridium.convention.niagara-home-repositories")
}
vendor {
// defaultVendor sets the "vendor" attribute on module and dist files; it's
// what's shown in Niagara when viewing a module or dist.
defaultVendor("Novant")
// defaultModuleVersion sets the "vendorVersion" attribute on all modules
defaultModuleVersion("0.17")
}
niagaraSigning {
// load secrets
var sec = HashMap<String, String>()
val f = rootProject.file("secrets/signing.secrets")
if (!f.exists()) throw Exception("ERR: signing secrets not found")
f.forEachLine {
if (it[0] != '#')
sec[it.split("=")[0]] = it.split("=")[1]
}
aliases.set(listOf(sec["key_alias"]))
signingProfileFile.set(
project.rootProject.layout.projectDirectory.file("niagara.signing.properties")
)
}
////////////////////////////////////////////////////////////////
// Dependencies and configurations... configuration
////////////////////////////////////////////////////////////////
subprojects {
repositories {
mavenCentral()
}
}