File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
test/java/org/example/coffee Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 50
50
<dependency >
51
51
<groupId >io.dinject</groupId >
52
52
<artifactId >dinject-generator</artifactId >
53
- <version >1.9 </version >
53
+ <version >1.10 </version >
54
54
<scope >test</scope >
55
55
</dependency >
56
56
Original file line number Diff line number Diff line change @@ -356,6 +356,11 @@ public BeanContext load() {
356
356
ServiceLoader .load (BeanContextFactory .class ).forEach (factoryOrder ::add );
357
357
358
358
Set <String > moduleNames = factoryOrder .orderFactories ();
359
+ if (moduleNames .isEmpty ()) {
360
+ throw new IllegalStateException ("No modules found suggests using Gradle and IDEA but with a setup issue?" +
361
+ " Review IntelliJ Settings / Build / Build tools / Gradle - 'Build and run using' value and set that to 'Gradle'. " +
362
+ " Refer to https://dinject.io/docs/gradle#idea" );
363
+ }
359
364
log .debug ("building context with modules {}" , moduleNames );
360
365
361
366
Builder rootBuilder = BuilderFactory .newRootBuilder (suppliedBeans , enrichBeans );
Original file line number Diff line number Diff line change 10
10
11
11
public class BootContextAddTest {
12
12
13
- @ Test
13
+ @ Test ( expected = IllegalStateException . class )
14
14
public void withModules_exludingThisOne () {
15
15
16
16
TDPump testDoublePump = new TDPump ();
You can’t perform that action at this time.
0 commit comments