code simplification
This commit is contained in:
91
build.gradle
91
build.gradle
@@ -103,50 +103,6 @@ tasks.named(JavaPlugin.COMPILE_JAVA_TASK_NAME, JavaCompile) {
|
||||
options.javaModuleMainClass = mainClassName
|
||||
}
|
||||
|
||||
|
||||
//tasks.named(JavaPlugin.COMPILE_TEST_JAVA_TASK_NAME, JavaCompile) {
|
||||
// options.compilerArgs << '--patch-module' << 'net.woggioni.gbcs.test=' + project.sourceSets.test.output.asPath
|
||||
// classpath = configurations.testCompileClasspath + files(tasks.jar.archiveFile)
|
||||
// modularity.inferModulePath = true
|
||||
// javaModuleDetector
|
||||
//}
|
||||
|
||||
//tasks.named(JavaPlugin.TEST_TASK_NAME, JavaForkOptions) {
|
||||
// classpath = configurations.testRuntimeClasspath + project.files(tasks.jar.archiveFile) + project.sourceSets.test.output
|
||||
// jvmArgumentProviders << new CommandLineArgumentProvider() {
|
||||
// @CompileClasspath
|
||||
// def kotlinClassesMain = kotlin.sourceSets.main.collect { it.kotlin.classesDirectory }
|
||||
//
|
||||
// @CompileClasspath
|
||||
// def kotlinClassesTest = kotlin.sourceSets.main.collect { it.kotlin.classesDirectory }
|
||||
|
||||
// @Override
|
||||
// Iterable<String> asArguments() {
|
||||
// return [
|
||||
// "--patch-module",
|
||||
// 'net.woggioni.gbcs=' + kotlinClassesMain.collect { it.get().asFile.absolutePath },
|
||||
// "--patch-module",
|
||||
// 'net.woggioni.gbcs.test=' + project.sourceSets.test.output.asPath,
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
//configurations {
|
||||
// integrationTestImplementation {
|
||||
// attributes {
|
||||
// attribute(LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements.class, JAR))
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// integrationTestCompileClasspath {
|
||||
// attributes {
|
||||
// attribute(LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements.class, JAR))
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//
|
||||
|
||||
envelopeJar {
|
||||
mainModule = 'net.woggioni.gbcs'
|
||||
mainClass = mainClassName
|
||||
@@ -154,37 +110,6 @@ envelopeJar {
|
||||
extraClasspath = ["plugins"]
|
||||
}
|
||||
|
||||
//
|
||||
//testing {
|
||||
// suites {
|
||||
// test {
|
||||
// useJUnitJupiter(catalog.versions.junit.jupiter.get())
|
||||
// }
|
||||
//
|
||||
// integrationTest(JvmTestSuite) {
|
||||
// dependencies {
|
||||
// implementation project()
|
||||
// implementation catalog.bcprov.jdk18on
|
||||
// implementation catalog.bcpkix.jdk18on
|
||||
// annotationProcessor catalog.lombok
|
||||
// compileOnly catalog.lombok
|
||||
// implementation project('gbcs-base')
|
||||
// implementation project('gbcs-api')
|
||||
//
|
||||
// runtimeOnly project("gbcs-memcached")
|
||||
// }
|
||||
//
|
||||
// targets {
|
||||
// all {
|
||||
// testTask.configure {
|
||||
// shouldRunAfter(test)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
dependencies {
|
||||
implementation catalog.jwo
|
||||
implementation catalog.slf4j.api
|
||||
@@ -235,19 +160,3 @@ publishing {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//tasks.named('check') {
|
||||
// dependsOn(testing.suites.integrationTest)
|
||||
//}
|
||||
//
|
||||
//tasks.named("integrationTest", JavaForkOptions) {
|
||||
// jvmArgumentProviders << new CommandLineArgumentProvider() {
|
||||
// @Override
|
||||
// Iterable<String> asArguments() {
|
||||
// return [
|
||||
// "--patch-module",
|
||||
// 'net.woggioni.gbcs.test=' + project.sourceSets.integrationTest.output.asPath,
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
//}
|
Reference in New Issue
Block a user