2020-12-18 13:16:59 +01:00
|
|
|
/*
|
2024-09-24 09:42:07 +02:00
|
|
|
* Copyright (c) 2020 - present Cloudogu GmbH
|
2020-12-18 13:16:59 +01:00
|
|
|
*
|
2024-09-24 09:42:07 +02:00
|
|
|
* This program is free software: you can redistribute it and/or modify it under
|
|
|
|
|
* the terms of the GNU Affero General Public License as published by the Free
|
|
|
|
|
* Software Foundation, version 3.
|
2020-12-18 13:16:59 +01:00
|
|
|
*
|
2024-09-24 09:42:07 +02:00
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
|
|
|
* details.
|
2020-12-18 13:16:59 +01:00
|
|
|
*
|
2024-09-24 09:42:07 +02:00
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
* along with this program. If not, see https://www.gnu.org/licenses/.
|
2020-12-18 13:16:59 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
id 'java-library'
|
2021-01-06 11:41:13 +01:00
|
|
|
id 'org.scm-manager.java'
|
2020-12-18 13:16:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation platform(project(':'))
|
|
|
|
|
implementation project(':scm-annotations')
|
2020-12-18 14:14:07 +01:00
|
|
|
|
|
|
|
|
// injection
|
2021-01-04 15:07:20 +01:00
|
|
|
implementation libraries.guice
|
2020-12-18 14:14:07 +01:00
|
|
|
|
|
|
|
|
// rest api
|
2021-01-04 15:07:20 +01:00
|
|
|
implementation libraries.jaxRs
|
2020-12-18 14:14:07 +01:00
|
|
|
|
2022-04-04 12:02:16 +02:00
|
|
|
// cli
|
|
|
|
|
implementation libraries.picocli
|
|
|
|
|
|
2021-09-14 09:26:47 +02:00
|
|
|
// mapper
|
|
|
|
|
implementation libraries.mapstruct
|
|
|
|
|
|
2020-12-18 14:14:07 +01:00
|
|
|
// events
|
2021-01-04 15:07:20 +01:00
|
|
|
implementation libraries.legman
|
2020-12-18 14:14:07 +01:00
|
|
|
|
|
|
|
|
// utils
|
2021-01-04 15:07:20 +01:00
|
|
|
implementation libraries.guava
|
2020-12-18 13:16:59 +01:00
|
|
|
|
2025-04-01 16:18:04 +02:00
|
|
|
implementation "com.google.auto:auto-common:1.2.2"
|
|
|
|
|
|
|
|
|
|
implementation 'com.squareup:javapoet:1.13.0'
|
|
|
|
|
|
|
|
|
|
testImplementation "com.google.testing.compile:compile-testing:0.21.0"
|
|
|
|
|
testImplementation libraries.junitJupiterApi
|
|
|
|
|
testImplementation libraries.junitJupiterEngine
|
|
|
|
|
testImplementation libraries.assertj
|
|
|
|
|
|
2020-12-18 14:14:07 +01:00
|
|
|
// service registration
|
2021-01-04 15:07:20 +01:00
|
|
|
compileOnly libraries.metainfServices
|
|
|
|
|
annotationProcessor libraries.metainfServices
|
2025-04-01 16:18:04 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
test {
|
|
|
|
|
// See: https://github.com/google/compile-testing/issues/222
|
|
|
|
|
jvmArgs("--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED")
|
|
|
|
|
jvmArgs("--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED")
|
|
|
|
|
jvmArgs("--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED")
|
2020-12-18 13:16:59 +01:00
|
|
|
}
|