Skip to content

Commit

Permalink
fix: enable JPMS and deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed Jun 20, 2024
1 parent d6a144a commit 5d123a8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# cmdpipe
# cmdpipe(Deprecated)

### Deprecated, don't use

[![Maven Central](https://img.shields.io/maven-central/v/space.iseki.cmdpipe/cmdpipe)](https://mvnrepository.com/artifact/space.iseki.cmdpipe/cmdpipe)

Expand Down
13 changes: 13 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,16 @@ afterEvaluate {
publishing.publications.forEach { sign(it) }
}
}

project.tasks.named("compileJava", JavaCompile::class.java) {
options.compilerArgumentProviders.add(CommandLineArgumentProvider {
// Provide compiled Kotlin classes to javac – needed for Java/Kotlin mixed sources to work
listOf("--patch-module", "space.iseki.cmdpipe=${sourceSets["main"].output.asPath}")
})
}
//project.tasks.named("javadoc", Javadoc::class.java) {
// options {
// this as CoreJavadocOptions
// addStringOption("-patch-module", "$module=${sourceSets["main"].output.asPath}")
// }
//}
7 changes: 7 additions & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module space.iseki.cmdpipe {
requires kotlin.stdlib;
requires static org.slf4j;
requires static org.jetbrains.annotations;
requires static org.checkerframework.checker.qual;
exports space.iseki.cmdpipe;
}

0 comments on commit 5d123a8

Please sign in to comment.