xpipe/gradle/gradle_scripts/commons.gradle
2023-09-27 00:47:51 +00:00

44 lines
1.6 KiB
Groovy

configurations {
dep
}
dependencies {
dep files("${project.layout.buildDirectory.get()}/generated-modules/commons-lang3-3.12.0.jar")
dep files("${project.layout.buildDirectory.get()}/generated-modules/commons-io-2.11.0.jar")
}
addDependenciesModuleInfo {
overwriteExistingFiles = true
jdepsExtraArgs = ['-q']
outputDirectory = file("${project.layout.buildDirectory.get()}/generated-modules")
modules {
module {
artifact 'org.apache.commons:commons-lang3:3.12.0'
moduleInfoSource = '''
module org.apache.commons.lang3 {
exports org.apache.commons.lang3;
exports org.apache.commons.lang3.function;
exports org.apache.commons.lang3.arch;
exports org.apache.commons.lang3.reflect;
exports org.apache.commons.lang3.builder;
exports org.apache.commons.lang3.text;
exports org.apache.commons.lang3.tuple;
exports org.apache.commons.lang3.math;
}
'''
}
module {
artifact 'commons-io:commons-io:2.11.0'
moduleInfoSource = '''
module org.apache.commons.io {
exports org.apache.commons.io;
exports org.apache.commons.io.file;
exports org.apache.commons.io.input;
exports org.apache.commons.io.filefilter;
exports org.apache.commons.io.output;
}
'''
}
}
}