opentcs/gradle/guice-project.gradle
CaiXiang aa56926258
Some checks failed
Gradle Build / build (push) Has been cancelled
Initial commit
2024-11-30 18:36:13 +08:00

33 lines
866 B
Groovy

// SPDX-FileCopyrightText: The openTCS Authors
// SPDX-License-Identifier: MIT
sourceSets {
guiceConfig
}
configurations {
guiceConfigApi.extendsFrom api
guiceConfigImplementation.extendsFrom implementation
}
dependencies {
guiceConfigImplementation sourceSets.main.runtimeClasspath
}
// Attributes for the AsciiDoc documentation to include code from source files
ext.guiceSrcDir = sourceSets.guiceConfig.java.srcDirs[0]
compileGuiceConfigJava {
options.release = 21
options.compilerArgs << "-Werror"
options.compilerArgs << "-Xlint:all"
options.compilerArgs << "-Xlint:-serial"
}
jar {
from sourceSets.guiceConfig.output
// This merely tells NetBeans where to look for classes in case of other
// subprojects depending on this one. By default, it only scans 'main'.
ext.netBeansSourceSets = [sourceSets.guiceConfig, sourceSets.main]
}