-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
56 lines (47 loc) · 1.81 KB
/
build.gradle.kts
File metadata and controls
56 lines (47 loc) · 1.81 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
plugins {
id("java-library")
id("maven-publish")
id("de.espirit.firstspirit-module") version "7.0.0"
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.release.set(Integer.parseInt(project.property("java.languageLevel") as String))
}
group = project.property("groupId") ?: error("groupId not set")
repositories {
maven(url = "https://artifactory.e-spirit.hosting/artifactory/repo/") {
credentials {
// Do NOT edit these lines since the credentials will be read from the local Gradle configuration.
username = property("artifactory_hosting_username") as String
password = property("artifactory_hosting_password") as String
}
}
}
val fsRuntimeVersion = project.property("firstSpirit.version") as String
dependencies {
compileOnly(group = "de.espirit.firstspirit", name = "fs-isolated-runtime", version = fsRuntimeVersion)
fsModuleCompile(group = "com.fasterxml.jackson.core", name = "jackson-databind", version = "2.20.0")
}
/*
* FirstSpirit Module Plugin configuration
*/
firstSpiritModule {
moduleName = project.property("firstSpiritModule.moduleName") as String
displayName = project.property("firstSpiritModule.displayName") as String
description = project.property("firstSpiritModule.description") as String
vendor = project.property("firstSpiritModule.vendor") as String
}
/**
* Ensure compliance with FirstSpirit Module build
*/
tasks.check {
dependsOn(tasks.checkCompliance)
}
/*
* Verify gradle.properties values
*/
listOf("firstSpiritModule.moduleName", "firstSpiritModule.displayName", "firstSpiritModule.vendor").forEach {
if (!project.hasProperty(it) || (project.property(it) as String).isBlank()) {
throw GradleException("Property '$it' in gradle.properties must not be empty!")
}
}