forked from eclipse-edc/Virtual-Connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
59 lines (50 loc) · 1.82 KB
/
build.gradle.kts
File metadata and controls
59 lines (50 loc) · 1.82 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
/*
* Copyright (c) 2025 Metaform Systems, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* Metaform Systems, Inc. - initial API and implementation
*
*/
plugins {
`java-library`
alias(libs.plugins.edc.build)
}
val edcVersion = libs.versions.edc
buildscript {
dependencies {
val edcVersion = libs.versions.edc.get()
classpath("org.eclipse.edc.autodoc:org.eclipse.edc.autodoc.gradle.plugin:$edcVersion")
}
}
val edcBuildId = libs.plugins.edc.build.get().pluginId
allprojects {
apply(plugin = edcBuildId)
apply(plugin = "org.eclipse.edc.autodoc")
// configure which version of the annotation processor to use. defaults to the same version as the plugin
configure<org.eclipse.edc.plugins.autodoc.AutodocExtension> {
processorVersion.set(edcVersion)
outputDirectory.set(project.layout.buildDirectory.asFile)
}
configure<org.eclipse.edc.plugins.edcbuild.extensions.BuildExtension> {
pom {
scmUrl.set("https://github.com/OWNER/REPO.git")
scmConnection.set("scm:git:git@github.com:OWNER/REPO.git")
developerName.set("yourcompany")
developerEmail.set("admin@yourcompany.com")
projectName.set("your cool project based on EDC")
projectUrl.set("www.coolproject.com")
description.set("your description")
licenseUrl.set("https://opensource.org/licenses/MIT")
}
}
configure<CheckstyleExtension> {
configFile = rootProject.file("config/checkstyle/checkstyle.xml")
configDirectory.set(rootProject.file("config/checkstyle"))
}
}