Skip to content

Commit

Permalink
Try to use test module-info.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ak-git committed Feb 9, 2025
1 parent 60f6f57 commit fd423f0
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 11 deletions.
2 changes: 0 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[versions]
javamodularity-moduleplugin = '1.8.15'
sonarqube = '6.0.1.5171'
jacocolog = '3.1.0'
spotbugs = '6.1.3'
Expand All @@ -16,7 +15,6 @@ slf4j = '2.1.0-alpha1'
logback = '1.5.16'

[plugins]
javamodularity-moduleplugin = { id = 'org.javamodularity.moduleplugin', version.ref = 'javamodularity-moduleplugin' }
sonarqube = { id = 'org.sonarqube', version.ref = 'sonarqube' }
jacocolog = { id = 'org.barfuin.gradle.jacocolog', version.ref = 'jacocolog' }
spotbugs = { id = 'com.github.spotbugs', version.ref = 'spotbugs' }
Expand Down
1 change: 0 additions & 1 deletion hello/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
id 'java-library'
id 'application'
alias(libs.plugins.johnrengelman.shadow)
alias(libs.plugins.javamodularity.moduleplugin)
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions hello/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
requires org.slf4j;

exports com.ak.app;
exports com.ak.builder;
}
9 changes: 9 additions & 0 deletions hello/src/test/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module test.ak.app {
requires com.ak.app;
requires org.jspecify;
requires org.assertj.core;
requires org.junit.jupiter.params;
opens test.ak.app to org.junit.platform.commons;
opens test.ak.builder to org.junit.platform.commons;
exports test.ak.app;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ak.app;
package test.ak.app;

import org.junit.jupiter.api.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.ak.app;
package test.ak.app;

import com.ak.app.MainApp;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThatNoException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@NullMarked
package com.ak.app;
package test.ak.app;

import org.jspecify.annotations.NullMarked;
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.ak.builder;
package test.ak.builder;

import com.ak.builder.Anthropomorphic;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.ak.builder;
package test.ak.builder;

import com.ak.builder.BloodPressure;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.ak.builder;
package test.ak.builder;

import com.ak.builder.Patient;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.ak.builder;
package test.ak.builder;

import com.ak.builder.Rates;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@NullMarked
package com.ak.builder;
package test.ak.builder;

import org.jspecify.annotations.NullMarked;

0 comments on commit fd423f0

Please sign in to comment.