File tree Expand file tree Collapse file tree 4 files changed +24
-2
lines changed
fish/cichlidmc/tinyjson/test/def Expand file tree Collapse file tree 4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ plugins {
44}
55
66group = " fish.cichlidmc"
7- version = " 2.0.0 "
7+ version = " 2.0.1 "
88
99repositories {
1010 mavenCentral()
@@ -22,6 +22,11 @@ java {
2222 }
2323}
2424
25+ tasks.compileJava {
26+ // sync module version so it can be read at runtime
27+ options.javaModuleVersion = provider { version as String }
28+ }
29+
2530tasks.test {
2631 useJUnitPlatform()
2732}
Original file line number Diff line number Diff line change 11open module fish .cichlidmc .tinyjson {
2- requires static org .jetbrains .annotations ;
2+ requires static transitive org .jetbrains .annotations ;
33
44 exports fish .cichlidmc .tinyjson ;
55 exports fish .cichlidmc .tinyjson .value ;
Original file line number Diff line number Diff line change 1+ package fish .cichlidmc .tinyjson .test .def ;
2+
3+ import fish .cichlidmc .tinyjson .TinyJson ;
4+ import org .junit .jupiter .api .Test ;
5+
6+ public final class MiscTests {
7+ @ Test
8+ public void checkModuleVersion () {
9+ TinyJson .class .getModule ().getDescriptor ().version ().orElseThrow ();
10+ }
11+ }
Original file line number Diff line number Diff line change 1+ // the test sourceSet must be a module for Gradle to treat the main sourceSet as a module.
2+ // we want that so we can verify that the metadata is set correctly.
3+ open module fish .cichlidmc .tinyjson .test {
4+ requires fish .cichlidmc .tinyjson ;
5+ requires org .junit .jupiter .api ;
6+ }
You can’t perform that action at this time.
0 commit comments